Struct WM

Source
pub struct WM(/* private fields */);
Available on crate features kernel and user only.
Expand description

Window message codes (u32).

Note: Control-specific messages have their own types, which are convertible to WM.

Implementations§

Source§

impl WM

Source

pub const unsafe fn as_mut(&mut self) -> &mut u32

Returns a mutable reference to the underlying raw value.

§Safety

Be sure the integer being set is meaningful for the actual type.

Source

pub const unsafe fn from_raw(v: u32) -> Self

Constructs a new object by wrapping the given integer value.

§Safety

Be sure the given value is meaningful for the actual type.

Source

pub const fn raw(&self) -> u32

Returns the primitive integer underlying value.

This method is similar to Into, but it is const, therefore it can be used in const contexts.

Source§

impl WM

Source

pub const NULL: Self

Source

pub const CREATE: Self

Source

pub const DESTROY: Self

Source

pub const MOVE: Self

Source

pub const SIZE: Self

Source

pub const ACTIVATE: Self

Source

pub const SETFOCUS: Self

Source

pub const KILLFOCUS: Self

Source

pub const ENABLE: Self

Source

pub const SETREDRAW: Self

Source

pub const SETTEXT: Self

Source

pub const GETTEXT: Self

Source

pub const GETTEXTLENGTH: Self

Source

pub const PAINT: Self

Source

pub const CLOSE: Self

Source

pub const QUERYENDSESSION: Self

Source

pub const QUERYOPEN: Self

Source

pub const ENDSESSION: Self

Source

pub const QUIT: Self

Source

pub const ERASEBKGND: Self

Source

pub const SYSCOLORCHANGE: Self

Source

pub const SHOWWINDOW: Self

Source

pub const WININICHANGE: Self

Source

pub const DEVMODECHANGE: Self

Source

pub const ACTIVATEAPP: Self

Source

pub const FONTCHANGE: Self

Source

pub const TIMECHANGE: Self

Source

pub const CANCELMODE: Self

Source

pub const SETCURSOR: Self

Source

pub const MOUSEACTIVATE: Self

Source

pub const CHILDACTIVATE: Self

Source

pub const QUEUESYNC: Self

Source

pub const GETMINMAXINFO: Self

Source

pub const PAINTICON: Self

Source

pub const ICONERASEBKGND: Self

Source

pub const NEXTDLGCTL: Self

Source

pub const SPOOLERSTATUS: Self

Source

pub const DRAWITEM: Self

Source

pub const MEASUREITEM: Self

Source

pub const DELETEITEM: Self

Source

pub const VKEYTOITEM: Self

Source

pub const CHARTOITEM: Self

Source

pub const SETFONT: Self

Source

pub const GETFONT: Self

Source

pub const SETHOTKEY: Self

Source

pub const GETHOTKEY: Self

Source

pub const QUERYDRAGICON: Self

Source

pub const COMPAREITEM: Self

Source

pub const GETOBJECT: Self

Source

pub const COPYDATA: Self

Source

pub const COMPACTING: Self

Source

pub const COMMNOTIFY: Self

Source

pub const WINDOWPOSCHANGING: Self

Source

pub const WINDOWPOSCHANGED: Self

Source

pub const POWER: Self

Source

pub const NOTIFY: Self

Source

pub const INPUTLANGCHANGEREQUEST: Self

Source

pub const INPUTLANGCHANGE: Self

Source

pub const TCARD: Self

Source

pub const HELP: Self

Source

pub const USERCHANGED: Self

Source

pub const NOTIFYFORMAT: Self

Source

pub const CONTEXTMENU: Self

Source

pub const STYLECHANGING: Self

Source

pub const STYLECHANGED: Self

Source

pub const DISPLAYCHANGE: Self

Source

pub const GETICON: Self

Source

pub const SETICON: Self

Source

pub const NCCREATE: Self

Source

pub const NCDESTROY: Self

Source

pub const NCCALCSIZE: Self

Source

pub const NCHITTEST: Self

Source

pub const NCPAINT: Self

Source

pub const NCACTIVATE: Self

Source

pub const GETDLGCODE: Self

Source

pub const SYNCPAINT: Self

Source

pub const NCMOUSEMOVE: Self

Source

pub const NCLBUTTONDOWN: Self

Source

pub const NCLBUTTONUP: Self

Source

pub const NCLBUTTONDBLCLK: Self

Source

pub const NCRBUTTONDOWN: Self

Source

pub const NCRBUTTONUP: Self

Source

pub const NCRBUTTONDBLCLK: Self

Source

pub const NCMBUTTONDOWN: Self

Source

pub const NCMBUTTONUP: Self

Source

pub const NCMBUTTONDBLCLK: Self

Source

pub const NCXBUTTONDOWN: Self

Source

pub const NCXBUTTONUP: Self

Source

pub const NCXBUTTONDBLCLK: Self

Source

pub const INPUT_DEVICE_CHANGE: Self

Source

pub const INPUT: Self

Source

pub const KEYFIRST: Self

Source

pub const KEYDOWN: Self

Source

pub const KEYUP: Self

Source

pub const CHAR: Self

Source

pub const DEADCHAR: Self

Source

pub const SYSKEYDOWN: Self

Source

pub const SYSKEYUP: Self

Source

pub const SYSCHAR: Self

Source

pub const SYSDEADCHAR: Self

Source

pub const UNICHAR: Self

Source

pub const KEYLAST: Self

Source

pub const IME_STARTCOMPOSITION: Self

Source

pub const IME_ENDCOMPOSITION: Self

Source

pub const IME_COMPOSITION: Self

Source

pub const IME_KEYLAST: Self

Source

pub const INITDIALOG: Self

Source

pub const COMMAND: Self

Source

pub const SYSCOMMAND: Self

Source

pub const TIMER: Self

Source

pub const HSCROLL: Self

Source

pub const VSCROLL: Self

Source

pub const INITMENU: Self

Source

pub const INITMENUPOPUP: Self

Source

pub const GESTURE: Self

Source

pub const GESTURENOTIFY: Self

Source

pub const MENUSELECT: Self

Source

pub const MENUCHAR: Self

Source

pub const ENTERIDLE: Self

Source

pub const MENURBUTTONUP: Self

Source

pub const MENUDRAG: Self

Source

pub const MENUGETOBJECT: Self

Source

pub const UNINITMENUPOPUP: Self

Source

pub const MENUCOMMAND: Self

Source

pub const CHANGEUISTATE: Self

Source

pub const UPDATEUISTATE: Self

Source

pub const QUERYUISTATE: Self

Source

pub const CTLCOLORMSGBOX: Self

Source

pub const CTLCOLOREDIT: Self

Source

pub const CTLCOLORLISTBOX: Self

Source

pub const CTLCOLORBTN: Self

Source

pub const CTLCOLORDLG: Self

Source

pub const CTLCOLORSCROLLBAR: Self

Source

pub const CTLCOLORSTATIC: Self

Source

pub const MN_GETHMENU: Self

Originally has no WM prefix.

Source

pub const MOUSEFIRST: Self

Source

pub const MOUSEMOVE: Self

Source

pub const LBUTTONDOWN: Self

Source

pub const LBUTTONUP: Self

Source

pub const LBUTTONDBLCLK: Self

Source

pub const RBUTTONDOWN: Self

Source

pub const RBUTTONUP: Self

Source

pub const RBUTTONDBLCLK: Self

Source

pub const MBUTTONDOWN: Self

Source

pub const MBUTTONUP: Self

Source

pub const MBUTTONDBLCLK: Self

Source

pub const MOUSEWHEEL: Self

Source

pub const MOUSEHWHEEL: Self

Source

pub const XBUTTONDOWN: Self

Source

pub const XBUTTONUP: Self

Source

pub const XBUTTONDBLCLK: Self

Source

pub const MOUSELAST: Self

Source

pub const PARENTNOTIFY: Self

Source

pub const ENTERMENULOOP: Self

Source

pub const EXITMENULOOP: Self

Source

pub const NEXTMENU: Self

Source

pub const SIZING: Self

Source

pub const CAPTURECHANGED: Self

Source

pub const MOVING: Self

Source

pub const POWERBROADCAST: Self

Source

pub const DEVICECHANGE: Self

Source

pub const MDICREATE: Self

Source

pub const MDIDESTROY: Self

Source

pub const MDIACTIVATE: Self

Source

pub const MDIRESTORE: Self

Source

pub const MDINEXT: Self

Source

pub const MDIMAXIMIZE: Self

Source

pub const MDITILE: Self

Source

pub const MDICASCADE: Self

Source

pub const MDIICONARRANGE: Self

Source

pub const MDIGETACTIVE: Self

Source

pub const MDISETMENU: Self

Source

pub const ENTERSIZEMOVE: Self

Source

pub const EXITSIZEMOVE: Self

Source

pub const DROPFILES: Self

Source

pub const MDIREFRESHMENU: Self

Source

pub const POINTERDEVICECHANGE: Self

Source

pub const POINTERDEVICEINRANGE: Self

Source

pub const POINTERDEVICEOUTOFRANGE: Self

Source

pub const TOUCH: Self

Source

pub const NCPOINTERUPDATE: Self

Source

pub const NCPOINTERDOWN: Self

Source

pub const NCPOINTERUP: Self

Source

pub const POINTERUPDATE: Self

Source

pub const POINTERDOWN: Self

Source

pub const POINTERUP: Self

Source

pub const POINTERENTER: Self

Source

pub const POINTERLEAVE: Self

Source

pub const POINTERACTIVATE: Self

Source

pub const POINTERCAPTURECHANGED: Self

Source

pub const TOUCHHITTESTING: Self

Source

pub const POINTERWHEEL: Self

Source

pub const POINTERHWHEEL: Self

Source

pub const DM_POINTERHITTEST: Self

Originally has no WM prefix.

Source

pub const POINTERROUTEDTO: Self

Source

pub const POINTERROUTEDAWAY: Self

Source

pub const POINTERROUTEDRELEASED: Self

Source

pub const IME_SETCONTEXT: Self

Source

pub const IME_NOTIFY: Self

Source

pub const IME_CONTROL: Self

Source

pub const IME_COMPOSITIONFULL: Self

Source

pub const IME_SELECT: Self

Source

pub const IME_CHAR: Self

Source

pub const IME_REQUEST: Self

Source

pub const IME_KEYDOWN: Self

Source

pub const IME_KEYUP: Self

Source

pub const MOUSEHOVER: Self

Source

pub const MOUSELEAVE: Self

Source

pub const NCMOUSEHOVER: Self

Source

pub const NCMOUSELEAVE: Self

Source

pub const WTSSESSION_CHANGE: Self

Source

pub const TABLET_FIRST: Self

Source

pub const TABLET_LAST: Self

Source

pub const DPICHANGED: Self

Source

pub const DPICHANGED_BEFOREPARENT: Self

Source

pub const DPICHANGED_AFTERPARENT: Self

Source

pub const GETDPISCALEDSIZE: Self

Source

pub const CUT: Self

Source

pub const COPY: Self

Source

pub const PASTE: Self

Source

pub const CLEAR: Self

Source

pub const UNDO: Self

Source

pub const RENDERFORMAT: Self

Source

pub const RENDERALLFORMATS: Self

Source

pub const DESTROYCLIPBOARD: Self

Source

pub const DRAWCLIPBOARD: Self

Source

pub const PAINTCLIPBOARD: Self

Source

pub const VSCROLLCLIPBOARD: Self

Source

pub const SIZECLIPBOARD: Self

Source

pub const ASKCBFORMATNAME: Self

Source

pub const CHANGECBCHAIN: Self

Source

pub const HSCROLLCLIPBOARD: Self

Source

pub const QUERYNEWPALETTE: Self

Source

pub const PALETTEISCHANGING: Self

Source

pub const PALETTECHANGED: Self

Source

pub const HOTKEY: Self

Source

pub const PRINT: Self

Source

pub const PRINTCLIENT: Self

Source

pub const APPCOMMAND: Self

Source

pub const THEMECHANGED: Self

Source

pub const CLIPBOARDUPDATE: Self

Source

pub const DWMCOMPOSITIONCHANGED: Self

Source

pub const DWMNCRENDERINGCHANGED: Self

Source

pub const DWMCOLORIZATIONCOLORCHANGED: Self

Source

pub const DWMWINDOWMAXIMIZEDCHANGE: Self

Source

pub const DWMSENDICONICTHUMBNAIL: Self

Source

pub const DWMSENDICONICLIVEPREVIEWBITMAP: Self

Source

pub const GETTITLEBARINFOEX: Self

Source

pub const HANDHELDFIRST: Self

Source

pub const HANDHELDLAST: Self

Source

pub const AFXFIRST: Self

Source

pub const AFXLAST: Self

Source

pub const PENWINFIRST: Self

Source

pub const PENWINLAST: Self

Source

pub const APP: Self

Source

pub const USER: Self

Trait Implementations§

Source§

impl AsRef<u32> for WM

Source§

fn as_ref(&self) -> &u32

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Binary for WM

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Clone for WM

Source§

fn clone(&self) -> WM

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WM

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for WM

Source§

fn default() -> WM

Returns the “default value” for a type. Read more
Source§

impl Display for WM

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<BCM> for WM

Available on crate feature comctl only.
Source§

fn from(v: BCM) -> Self

Converts to this type from the input type.
Source§

impl From<BM> for WM

Source§

fn from(v: BM) -> Self

Converts to this type from the input type.
Source§

impl From<CB> for WM

Source§

fn from(v: CB) -> Self

Converts to this type from the input type.
Source§

impl From<CBEM> for WM

Available on crate feature comctl only.
Source§

fn from(v: CBEM) -> Self

Converts to this type from the input type.
Source§

impl From<CCM> for WM

Available on crate feature comctl only.
Source§

fn from(v: CCM) -> Self

Converts to this type from the input type.
Source§

impl From<DTM> for WM

Available on crate feature comctl only.
Source§

fn from(v: DTM) -> Self

Converts to this type from the input type.
Source§

impl From<EM> for WM

Source§

fn from(v: EM) -> Self

Converts to this type from the input type.
Source§

impl From<HDM> for WM

Available on crate feature comctl only.
Source§

fn from(v: HDM) -> Self

Converts to this type from the input type.
Source§

impl From<IPM> for WM

Available on crate feature comctl only.
Source§

fn from(v: IPM) -> Self

Converts to this type from the input type.
Source§

impl From<LB> for WM

Source§

fn from(v: LB) -> Self

Converts to this type from the input type.
Source§

impl From<LM> for WM

Available on crate feature comctl only.
Source§

fn from(v: LM) -> Self

Converts to this type from the input type.
Source§

impl From<LVM> for WM

Available on crate feature comctl only.
Source§

fn from(v: LVM) -> Self

Converts to this type from the input type.
Source§

impl From<MCM> for WM

Available on crate feature comctl only.
Source§

fn from(v: MCM) -> Self

Converts to this type from the input type.
Source§

impl From<PBM> for WM

Available on crate feature comctl only.
Source§

fn from(v: PBM) -> Self

Converts to this type from the input type.
Source§

impl From<RB> for WM

Available on crate feature comctl only.
Source§

fn from(v: RB) -> Self

Converts to this type from the input type.
Source§

impl From<SB> for WM

Available on crate feature comctl only.
Source§

fn from(v: SB) -> Self

Converts to this type from the input type.
Source§

impl From<STM> for WM

Available on crate feature comctl only.
Source§

fn from(v: STM) -> Self

Converts to this type from the input type.
Source§

impl From<TBM> for WM

Available on crate feature comctl only.
Source§

fn from(v: TBM) -> Self

Converts to this type from the input type.
Source§

impl From<TCM> for WM

Available on crate feature comctl only.
Source§

fn from(v: TCM) -> Self

Converts to this type from the input type.
Source§

impl From<TRBM> for WM

Available on crate feature comctl only.
Source§

fn from(v: TRBM) -> Self

Converts to this type from the input type.
Source§

impl From<TVM> for WM

Available on crate feature comctl only.
Source§

fn from(v: TVM) -> Self

Converts to this type from the input type.
Source§

impl From<UDM> for WM

Available on crate feature comctl only.
Source§

fn from(v: UDM) -> Self

Converts to this type from the input type.
Source§

impl From<WM> for u32

Source§

fn from(v: WM) -> Self

Converts to this type from the input type.
Source§

impl Hash for WM

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl LowerHex for WM

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Octal for WM

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Ord for WM

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for WM

Source§

fn eq(&self, other: &WM) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for WM

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl UpperHex for WM

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for WM

Source§

impl Eq for WM

Source§

impl StructuralPartialEq for WM

Auto Trait Implementations§

§

impl Freeze for WM

§

impl RefUnwindSafe for WM

§

impl Send for WM

§

impl Sync for WM

§

impl Unpin for WM

§

impl UnwindSafe for WM

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.