pub struct WindowMessage {
pub msg: u32,
pub wparam: WParam,
pub lparam: LParam,
}Expand description
Windows message structure.
Fields§
§msg: u32Message identifier
wparam: WParamWPARAM parameter
lparam: LParamLPARAM parameter
Implementations§
Source§impl WindowMessage
impl WindowMessage
Sourcepub const fn new(msg: u32, wparam: WParam, lparam: LParam) -> Self
pub const fn new(msg: u32, wparam: WParam, lparam: LParam) -> Self
Creates a new window message.
Sourcepub fn mouse_move(x: i16, y: i16, modifiers: KeyModifiers) -> Self
pub fn mouse_move(x: i16, y: i16, modifiers: KeyModifiers) -> Self
Creates a mouse movement message.
Creates a mouse button message.
Trait Implementations§
Source§impl Clone for WindowMessage
impl Clone for WindowMessage
Source§fn clone(&self) -> WindowMessage
fn clone(&self) -> WindowMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowMessage
impl Debug for WindowMessage
impl Copy for WindowMessage
Auto Trait Implementations§
impl Freeze for WindowMessage
impl RefUnwindSafe for WindowMessage
impl Send for WindowMessage
impl Sync for WindowMessage
impl Unpin for WindowMessage
impl UnwindSafe for WindowMessage
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