pub struct DebugSlot {
pub child: u64,
pub offset: DebugOffset,
pub size: DebugSize,
pub absolute: DebugRect,
}Expand description
Parent-assigned child slot in local and absolute logical coordinates.
§Examples
use ailloli_ui_devtools_core::{DebugOffset, DebugRect, DebugSize, DebugSlot};
let slot = DebugSlot { child: 7, offset: DebugOffset { x: 2.0, y: 3.0 },
size: DebugSize { w: 10.0, h: 20.0 },
absolute: DebugRect { x: 12.0, y: 13.0, w: 10.0, h: 20.0 } };
assert_eq!(slot.child, 7);Fields§
§child: u64Numeric child element ID.
offset: DebugOffsetOffset from the parent’s absolute origin, in logical pixels.
size: DebugSizeAssigned width and height in logical pixels.
absolute: DebugRectSlot translated into viewport coordinates.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DebugSlot
impl<'de> Deserialize<'de> for DebugSlot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DebugSlot
Auto Trait Implementations§
impl Freeze for DebugSlot
impl RefUnwindSafe for DebugSlot
impl Send for DebugSlot
impl Sync for DebugSlot
impl Unpin for DebugSlot
impl UnwindSafe for DebugSlot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.