pub struct EventArgs {
pub path: String,
pub root: YuiNode,
pub screen_w: u32,
pub screen_h: u32,
pub event: String,
pub x: f32,
pub y: f32,
}Fields§
§path: String§root: YuiNode§screen_w: u32§screen_h: u32§event: StringA Yog UI event: click:X:Y, drag:X:Y, release:X:Y, scroll:DY, move:X:Y (hover only).
x: f32The cursor, for the wheel (which carries no position).
y: f32Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventArgs
impl<'de> Deserialize<'de> for EventArgs
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
Auto Trait Implementations§
impl Freeze for EventArgs
impl RefUnwindSafe for EventArgs
impl Send for EventArgs
impl Sync for EventArgs
impl Unpin for EventArgs
impl UnsafeUnpin for EventArgs
impl UnwindSafe for EventArgs
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