wgui: pass motion events further, add consume_mouse_events parameter to widgets (Closes #306), always reverse iter events

This commit is contained in:
Aleksander
2025-12-18 22:02:17 +01:00
parent 5463b6490d
commit 9dbd86db39
12 changed files with 124 additions and 61 deletions

View File

@@ -127,7 +127,7 @@ impl Color {
}
#[must_use]
pub fn with_alpha(&self, n: f32) -> Self {
pub const fn with_alpha(&self, n: f32) -> Self {
Self {
r: self.r,
g: self.g,
@@ -267,7 +267,7 @@ fn draw_widget(
let mut widget_state = widget.state();
if widget_state.new_pass {
if widget_state.flags.new_pass {
state.primitives.push(RenderPrimitive::NewPass);
}