pub struct WndMsg {
pub msg_id: WM,
pub wparam: usize,
pub lparam: isize,
}
Available on crate feature
user
only.Expand description
Generic
window message
parameters: WPARAM
and LPARAM
.
All message types can be converted to WndMsg
via the
as_generic_wm
method.
Return type: isize
.
Fields§
§msg_id: WM
The co::WM
constant that identifies the window
message.
wparam: usize
First message parameter.
lparam: isize
Second message parameter.
Implementations§
Trait Implementations§
source§impl MsgSend for WndMsg
impl MsgSend for WndMsg
source§fn convert_ret(&self, v: isize) -> Self::RetType
fn convert_ret(&self, v: isize) -> Self::RetType
Converts the generic
isize
return value to the specific type returned
by the message.source§fn as_generic_wm(&mut self) -> Self
fn as_generic_wm(&mut self) -> Self
Converts the specific message parameters struct into the generic
WndMsg
message struct.source§impl MsgSendRecv for WndMsg
impl MsgSendRecv for WndMsg
source§fn from_generic_wm(p: Self) -> Self
fn from_generic_wm(p: Self) -> Self
Converts the generic
WndMsg
parameters struct
into the specific message struct.impl Copy for WndMsg
Auto Trait Implementations§
impl Freeze for WndMsg
impl RefUnwindSafe for WndMsg
impl Send for WndMsg
impl Sync for WndMsg
impl Unpin for WndMsg
impl UnwindSafe for WndMsg
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