Struct winsafe::msg::WndMsg[][src]

pub struct WndMsg {
    pub msg_id: WM,
    pub wparam: usize,
    pub lparam: isize,
}
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.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The specific type of the value returned by the message.

Converts the generic isize return value to the specific type returned by the message. Read more

Converts the specific message parameters struct into the generic WndMsg message struct. Read more

Converts the generic WndMsg parameters struct into the specific message struct. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.