Struct winsafe::co::SM

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

GetSystemMetrics index (i32).

Implementations§

source§

impl SM

source

pub const unsafe fn from_raw(v: i32) -> 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) -> i32

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 SM

source

pub const CXSCREEN: Self = _

source

pub const CYSCREEN: Self = _

source

pub const CXVSCROLL: Self = _

source

pub const CYHSCROLL: Self = _

source

pub const CYCAPTION: Self = _

source

pub const CXBORDER: Self = _

source

pub const CYBORDER: Self = _

source

pub const CXDLGFRAME: Self = _

source

pub const CYDLGFRAME: Self = _

source

pub const CYVTHUMB: Self = _

source

pub const CXHTHUMB: Self = _

source

pub const CXICON: Self = _

source

pub const CYICON: Self = _

source

pub const CXCURSOR: Self = _

source

pub const CYCURSOR: Self = _

source

pub const CYMENU: Self = _

source

pub const CXFULLSCREEN: Self = _

source

pub const CYFULLSCREEN: Self = _

source

pub const CYKANJIWINDOW: Self = _

source

pub const MOUSEPRESENT: Self = _

source

pub const CYVSCROLL: Self = _

source

pub const CXHSCROLL: Self = _

source

pub const DEBUG: Self = _

source

pub const SWAPBUTTON: Self = _

source

pub const RESERVED1: Self = _

source

pub const RESERVED2: Self = _

source

pub const RESERVED3: Self = _

source

pub const RESERVED4: Self = _

source

pub const CXMIN: Self = _

The minimum width of a window in pixels.

source

pub const CYMIN: Self = _

The minimum height of a window in pixels.

source

pub const CXSIZE: Self = _

The width of a button in a window caption or title bar in pixels.

source

pub const CYSIZE: Self = _

The height of a button in a window caption or title bar in pixels.

source

pub const CXFRAME: Self = _

source

pub const CYFRAME: Self = _

source

pub const CXMINTRACK: Self = _

The minimum tracking width of a window in pixels. The user cannot drag the window frame to a size smaller than these dimensions. A window can override this value by processing the wm::GetMinMaxInfo message.

source

pub const CYMINTRACK: Self = _

The minimum tracking height of a window in pixels. The user cannot drag the window frame to a size smaller than these dimensions. A window can override this value by processing the wm::GetMinMaxInfo message.

source

pub const CXDOUBLECLK: Self = _

source

pub const CYDOUBLECLK: Self = _

source

pub const CXICONSPACING: Self = _

source

pub const CYICONSPACING: Self = _

source

pub const MENUDROPALIGNMENT: Self = _

source

pub const PENWINDOWS: Self = _

source

pub const DBCSENABLED: Self = _

source

pub const CMOUSEBUTTONS: Self = _

source

pub const CXFIXEDFRAME: Self = _

source

pub const CYFIXEDFRAME: Self = _

source

pub const CXSIZEFRAME: Self = _

source

pub const CYSIZEFRAME: Self = _

source

pub const SECURE: Self = _

source

pub const CXEDGE: Self = _

source

pub const CYEDGE: Self = _

source

pub const CXMINSPACING: Self = _

source

pub const CYMINSPACING: Self = _

source

pub const CXSMICON: Self = _

source

pub const CYSMICON: Self = _

source

pub const CYSMCAPTION: Self = _

source

pub const CXSMSIZE: Self = _

source

pub const CYSMSIZE: Self = _

source

pub const CXMENUSIZE: Self = _

source

pub const CYMENUSIZE: Self = _

source

pub const ARRANGE: Self = _

source

pub const CXMINIMIZED: Self = _

source

pub const CYMINIMIZED: Self = _

source

pub const CXMAXTRACK: Self = _

source

pub const CYMAXTRACK: Self = _

source

pub const CXMAXIMIZED: Self = _

source

pub const CYMAXIMIZED: Self = _

source

pub const NETWORK: Self = _

source

pub const CLEANBOOT: Self = _

source

pub const CXDRAG: Self = _

source

pub const CYDRAG: Self = _

source

pub const SHOWSOUNDS: Self = _

source

pub const CXMENUCHECK: Self = _

source

pub const CYMENUCHECK: Self = _

source

pub const SLOWMACHINE: Self = _

source

pub const MIDEASTENABLED: Self = _

source

pub const MOUSEWHEELPRESENT: Self = _

source

pub const XVIRTUALSCREEN: Self = _

source

pub const YVIRTUALSCREEN: Self = _

source

pub const CXVIRTUALSCREEN: Self = _

source

pub const CYVIRTUALSCREEN: Self = _

source

pub const CMONITORS: Self = _

source

pub const SAMEDISPLAYFORMAT: Self = _

source

pub const IMMENABLED: Self = _

source

pub const CXFOCUSBORDER: Self = _

source

pub const CYFOCUSBORDER: Self = _

source

pub const TABLETPC: Self = _

source

pub const MEDIACENTER: Self = _

source

pub const STARTER: Self = _

source

pub const SERVERR2: Self = _

source

pub const MOUSEHORIZONTALWHEELPRESENT: Self = _

source

pub const CXPADDEDBORDER: Self = _

source

pub const DIGITIZER: Self = _

source

pub const MAXIMUMTOUCHES: Self = _

source

pub const CMETRICS: Self = _

source

pub const REMOTESESSION: Self = _

source

pub const SHUTTINGDOWN: Self = _

source

pub const REMOTECONTROL: Self = _

source

pub const CARETBLINKINGENABLED: Self = _

source

pub const CONVERTIBLESLATEMODE: Self = _

source

pub const SYSTEMDOCKED: Self = _

Trait Implementations§

source§

impl AsRef<i32> for SM

source§

fn as_ref(&self) -> &i32

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

impl Binary for SM

source§

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

Formats the value using the given formatter.
source§

impl Clone for SM

source§

fn clone(&self) -> SM

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 SM

source§

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

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

impl Default for SM

source§

fn default() -> SM

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

impl Display for SM

source§

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

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

impl From<SM> for i32

source§

fn from(v: SM) -> Self

Converts to this type from the input type.
source§

impl Hash for SM

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 SM

§

type Raw = i32

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 SM

source§

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

Formats the value using the given formatter.
source§

impl Octal for SM

source§

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

Formats the value using the given formatter.
source§

impl Ord for SM

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 SM

source§

fn eq(&self, other: &SM) -> 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 SM

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 SM

source§

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

Formats the value using the given formatter.
source§

impl Copy for SM

source§

impl Eq for SM

source§

impl NativeConst for SM

source§

impl Send for SM

source§

impl StructuralPartialEq for SM

Auto Trait Implementations§

§

impl Freeze for SM

§

impl RefUnwindSafe for SM

§

impl Sync for SM

§

impl Unpin for SM

§

impl UnwindSafe for SM

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.