Struct winsafe::co::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 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 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.
source§

impl Clone for WM

source§

fn clone(&self) -> WM

Returns a copy of the value. Read more
1.0.0 · source§

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 IntUnderlying for WM

§

type Raw = u32

Available on crate feature kernel only.
The underlying raw integer type.
source§

unsafe fn as_mut(&mut self) -> &mut Self::Raw

Available on crate feature kernel only.
Returns a mutable reference to the underlying raw value. Read more
source§

impl LowerHex for WM

source§

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

Formats the value using the given formatter.
source§

impl Octal for WM

source§

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

Formats the value using the given formatter.
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 + PartialOrd,

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

impl PartialEq for WM

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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

This method 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

This method 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

This method 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

This method 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.
source§

impl Copy for WM

source§

impl Eq for WM

source§

impl NativeConst for WM

source§

impl Send for WM

source§

impl StructuralPartialEq for WM

Auto Trait Implementations§

§

impl Freeze for WM

§

impl RefUnwindSafe 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> 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,

§

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§

default 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>,

§

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>,

§

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.