pub struct UiRegion {
pub id: UiId,
pub bounds: Aabb2,
pub enabled: bool,
pub focusable: bool,
pub draggable: bool,
}Expand description
Hit region in reference UI units. Last listed region wins overlapping hits, including disabled regions, which block clicks reaching lower regions.
Fields§
§id: UiIdStable identity, independent of region order.
bounds: Aabb2Resolved bounds using the current viewport’s logical size.
enabled: boolDisabled regions cannot activate, focus, or begin dragging.
focusable: boolEligible for pointer and keyboard focus.
draggable: boolStarts a drag immediately on pointer press; does not activate on release.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiRegion
impl RefUnwindSafe for UiRegion
impl Send for UiRegion
impl Sync for UiRegion
impl Unpin for UiRegion
impl UnsafeUnpin for UiRegion
impl UnwindSafe for UiRegion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more