This commit is contained in:
galister
2025-12-24 00:58:40 +09:00
parent 6672fb71e4
commit 3f5a363136
23 changed files with 484 additions and 430 deletions

View File

@@ -8,7 +8,7 @@ use crate::{
globals::Globals,
layout::WidgetID,
renderer_vk::text::custom_glyph::CustomGlyphData,
widget::{util::WLength, WidgetStateFlags},
widget::{WidgetStateFlags, util::WLength},
};
use super::{WidgetObj, WidgetState};

View File

@@ -206,11 +206,7 @@ impl EventResult {
#[must_use]
pub fn merge(self, other: Self) -> Self {
if self > other {
self
} else {
other
}
if self > other { self } else { other }
}
}

View File

@@ -4,7 +4,7 @@ use crate::{
drawing::{self, GradientMode, PrimitiveExtent},
event::CallbackDataCommon,
layout::WidgetID,
widget::{util::WLength, WidgetStateFlags},
widget::{WidgetStateFlags, util::WLength},
};
use super::{WidgetObj, WidgetState};

View File

@@ -9,8 +9,8 @@ use crate::{
globals::Globals,
layout::WidgetID,
renderer_vk::text::{
custom_glyph::{CustomGlyph, CustomGlyphData},
DEFAULT_METRICS,
custom_glyph::{CustomGlyph, CustomGlyphData},
},
widget::WidgetStateFlags,
};