Struct winsafe::co::WS_EX

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

Extended window styles (u32).

Note: Control-specific extended styles have their own types, which are convertible to WS.

This is a bitflag constant, which implements the NativeBitflag trait.

Implementations§

source§

impl WS_EX

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 WS_EX

source

pub const NoValue: Self = _

None of the actual values (zero).

source

pub const DLGMODALFRAME: Self = _

The window has a double border; the window can optionally be created with a title bar by specifying the WS::CAPTION style in the dwStyle parameter.

source

pub const NOPARENTNOTIFY: Self = _

The child window created with this style does not send the wm::ParentNotify message to its parent window when it is created or destroyed.

source

pub const TOPMOST: Self = _

The window should be placed above all non-topmost windows and should stay above them even when the window is deactivated. To add or remove this style use the HWND::SetWindowPos function.

source

pub const ACCEPTFILES: Self = _

The window accepts drag-drop files.

source

pub const TRANSPARENT: Self = _

The window should not be painted until siblings beneath the window (that were created by the same thread) have been painted. The window appears transparent because the bits of underlying sibling windows have already been painted.

To achieve transparency without these restrictions use the HWND::SetWindowRgn function.

source

pub const MDICHILD: Self = _

The window is a MDI child window.

source

pub const TOOLWINDOW: Self = _

The window is intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog that appears when the user presses ALT+TAB. If a tool window has a system menu its icon is not displayed on the title bar. However you can display the system menu by right-clicking or by typing ALT+SPACE.

source

pub const WINDOWEDGE: Self = _

The window has a border with a raised edge.

source

pub const CLIENTEDGE: Self = _

The window has a border with a sunken edge.

source

pub const CONTEXTHELP: Self = _

The title bar of the window includes a question mark. When the user clicks the question mark the cursor changes to a question mark with a pointer. If the user then clicks a child window the child receives a wm::Help message. The child window should pass the message to the parent window procedure which should call the WinHelp function using the HELP_WM_HELP command. The Help application displays a pop-up window that typically contains help for the child window.

WS_EX::CONTEXTHELP cannot be used with the WS::MAXIMIZEBOX or WS::MINIMIZEBOX styles.

source

pub const RIGHT: Self = _

The window has generic “right-aligned” properties. This depends on the window class. This style has an effect only if the shell language is Hebrew Arabic or another language that supports reading-order alignment; otherwise the style is ignored.

Using the WS_EX::RIGHT style for static or edit controls has the same effect as using the SS::RIGHT or ES::RIGHT style respectively. Using this style with button controls has the same effect as using BS::RIGHT and BS::RIGHTBUTTON styles.

source

pub const LEFT: Self = _

The window has generic left-aligned properties. This is the default.

source

pub const RTLREADING: Self = _

If the shell language is Hebrew Arabic or another language that supports reading-order alignment the window text is displayed using right-to-left reading-order properties. For other languages the style is ignored.

source

pub const LTRREADING: Self = _

The window text is displayed using left-to-right reading-order properties. This is the default.

source

pub const LEFTSCROLLBAR: Self = _

If the shell language is Hebrew Arabic or another language that supports reading order alignment the vertical scroll bar (if present) is to the left of the client area. For other languages the style is ignored.

source

pub const RIGHTSCROLLBAR: Self = _

The vertical scroll bar (if present) is to the right of the client area. This is the default.

source

pub const CONTROLPARENT: Self = _

The window itself contains child windows that should take part in dialog box navigation. If this style is specified the dialog manager recurses into children of this window when performing navigation operations such as handling the TAB key an arrow key or a keyboard mnemonic.

source

pub const STATICEDGE: Self = _

The window has a three-dimensional border style intended to be used for items that do not accept user input.

source

pub const APPWINDOW: Self = _

Forces a top-level window onto the taskbar when the window is visible.

source

pub const OVERLAPPEDWINDOW: Self = _

The window is an overlapped window.

source

pub const PALETTEWINDOW: Self = _

The window is palette window which is a modeless dialog box that presents an array of commands.

source

pub const LAYERED: Self = _

The window is a layered window. This style cannot be used if the window has a class style of either CS::OWNDC or CS::CLASSDC.

Windows 8: The WS_EX::LAYERED style is supported for top-level windows and child windows. Previous Windows versions support WS_EX::LAYERED only for top-level windows.

source

pub const NOINHERITLAYOUT: Self = _

The window does not pass its window layout to its child windows.

source

pub const NOREDIRECTIONBITMAP: Self = _

The window does not render to a redirection surface. This is for windows that do not have visible content or that use mechanisms other than surfaces to provide their visual.

source

pub const LAYOUTRTL: Self = _

If the shell language is Hebrew Arabic or another language that supports reading order alignment the horizontal origin of the window is on the right edge. Increasing horizontal values advance to the left.

source

pub const COMPOSITED: Self = _

Paints all descendants of a window in bottom-to-top painting order using double-buffering. Bottom-to-top painting order allows a descendent window to have translucency (alpha) and transparency (color-key) effects but only if the descendent window also has the WS_EX::TRANSPARENT bit set. Double-buffering allows the window and its descendents to be painted without flicker. This cannot be used if the window has a class style of either CS::OWNDC or CS::CLASSDC.

Windows 2000: This style is not supported.

source

pub const NOACTIVATE: Self = _

A top-level window created with this style does not become the foreground window when the user clicks it. The system does not bring this window to the foreground when the user minimizes or closes the foreground window.

The window should not be activated through programmatic access or via keyboard navigation by accessible technology such as Narrator.

To activate the window use the SetActiveWindow or HWND::SetForegroundWindow function.

The window does not appear on the taskbar by default. To force the window to appear on the taskbar use the WS_EX::APPWINDOW style.

Trait Implementations§

source§

impl AsRef<u32> for WS_EX

source§

fn as_ref(&self) -> &u32

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

impl Binary for WS_EX

source§

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

Formats the value using the given formatter.
source§

impl BitAnd for WS_EX

§

type Output = WS_EX

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
source§

impl BitAndAssign for WS_EX

source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
source§

impl BitOr for WS_EX

§

type Output = WS_EX

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
source§

impl BitOrAssign for WS_EX

source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
source§

impl BitXor for WS_EX

§

type Output = WS_EX

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
source§

impl BitXorAssign for WS_EX

source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
source§

impl Clone for WS_EX

source§

fn clone(&self) -> WS_EX

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 WS_EX

source§

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

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

impl Default for WS_EX

source§

fn default() -> WS_EX

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

impl Display for WS_EX

source§

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

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

impl From<CBES_EX> for WS_EX

Available on crate feature comctl only.
source§

fn from(v: CBES_EX) -> Self

Converts to this type from the input type.
source§

impl From<LVS_EX> for WS_EX

Available on crate feature comctl only.
source§

fn from(v: LVS_EX) -> Self

Converts to this type from the input type.
source§

impl From<TBSTYLE_EX> for WS_EX

Available on crate feature comctl only.
source§

fn from(v: TBSTYLE_EX) -> Self

Converts to this type from the input type.
source§

impl From<TCS_EX> for WS_EX

Available on crate feature comctl only.
source§

fn from(v: TCS_EX) -> Self

Converts to this type from the input type.
source§

impl From<TVS_EX> for WS_EX

Available on crate feature comctl only.
source§

fn from(v: TVS_EX) -> Self

Converts to this type from the input type.
source§

impl From<WS_EX> for CBES_EX

Available on crate feature comctl only.
source§

fn from(v: WS_EX) -> Self

Converts to this type from the input type.
source§

impl From<WS_EX> for LVS_EX

Available on crate feature comctl only.
source§

fn from(v: WS_EX) -> Self

Converts to this type from the input type.
source§

impl From<WS_EX> for TBSTYLE_EX

Available on crate feature comctl only.
source§

fn from(v: WS_EX) -> Self

Converts to this type from the input type.
source§

impl From<WS_EX> for TCS_EX

Available on crate feature comctl only.
source§

fn from(v: WS_EX) -> Self

Converts to this type from the input type.
source§

impl From<WS_EX> for TVS_EX

Available on crate feature comctl only.
source§

fn from(v: WS_EX) -> Self

Converts to this type from the input type.
source§

impl From<WS_EX> for u32

source§

fn from(v: WS_EX) -> Self

Converts to this type from the input type.
source§

impl Hash for WS_EX

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 WS_EX

§

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 WS_EX

source§

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

Formats the value using the given formatter.
source§

impl NativeBitflag for WS_EX

source§

fn has(&self, other: Self) -> bool

Available on crate feature kernel only.
Tells whether other bitflag style is present. Read more
source§

impl Not for WS_EX

§

type Output = WS_EX

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl Octal for WS_EX

source§

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

Formats the value using the given formatter.
source§

impl Ord for WS_EX

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 WS_EX

source§

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

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 WS_EX

source§

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

Formats the value using the given formatter.
source§

impl Copy for WS_EX

source§

impl Eq for WS_EX

source§

impl NativeConst for WS_EX

source§

impl Send for WS_EX

source§

impl StructuralPartialEq for WS_EX

Auto Trait Implementations§

§

impl Freeze for WS_EX

§

impl RefUnwindSafe for WS_EX

§

impl Sync for WS_EX

§

impl Unpin for WS_EX

§

impl UnwindSafe for WS_EX

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.