pub struct WS(/* private fields */);
kernel
and user
only.Expand description
Window
styles
(u32
).
Note: Control-specific styles have their own types, which are
convertible to WS
.
This is a bitflag constant, which implements the
NativeBitflag
trait.
Implementations§
source§impl WS
impl WS
sourcepub const unsafe fn from_raw(v: u32) -> Self
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.
sourcepub const fn raw(&self) -> u32
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
impl WS
sourcepub const OVERLAPPED: Self = _
pub const OVERLAPPED: Self = _
The window is an overlapped window. An overlapped window has a title bar
and a border. Same as the WS::TILED
style.
sourcepub const POPUP: Self = _
pub const POPUP: Self = _
The window is a pop-up window. This style cannot be used with the
WS_CHILD
style.
sourcepub const CHILD: Self = _
pub const CHILD: Self = _
The window is a child window. A window with this style cannot have a menu
bar. This style cannot be used with the WS::POPUP
style.
sourcepub const VISIBLE: Self = _
pub const VISIBLE: Self = _
The window is initially visible. This style can be turned on and off by
using the HWND::ShowWindow
or
HWND::SetWindowPos
function.
sourcepub const DISABLED: Self = _
pub const DISABLED: Self = _
The window is initially disabled. A disabled window cannot receive input
from the user. To change this after a window has been created use the
HWND::EnableWindow
function.
sourcepub const CLIPSIBLINGS: Self = _
pub const CLIPSIBLINGS: Self = _
Clips child windows relative to each other; that is when a particular
child window receives a wm::Paint
message,
the WS::CLIPSIBLINGS
style clips all other overlapping child windows
out of the region of the child window to be updated. If
WS::CLIPSIBLINGS
is not specified and child windows overlap it is
possible when drawing within the client area of a child window to draw
within the client area of a neighboring child window.
sourcepub const CLIPCHILDREN: Self = _
pub const CLIPCHILDREN: Self = _
Excludes the area occupied by child windows when drawing occurs within the parent window. This style is used when creating the parent window.
sourcepub const DLGFRAME: Self = _
pub const DLGFRAME: Self = _
The window has a border of a style typically used with dialog boxes. A window with this style cannot have a title bar.
sourcepub const SYSMENU: Self = _
pub const SYSMENU: Self = _
The window has a window menu on its title bar. The WS::CAPTION
style
must also be specified.
sourcepub const THICKFRAME: Self = _
pub const THICKFRAME: Self = _
The window has a sizing border. Same as the WS::SIZEBOX
style.
sourcepub const GROUP: Self = _
pub const GROUP: Self = _
The window is the first control of a group of controls. The group
consists of this first control and all controls defined after it up to
the next control with the WS::GROUP
style. The first control in each
group usually has the WS::TABSTOP
style so that the user can move from
group to group. The user can subsequently change the keyboard focus from
one control in the group to the next control in the group by using the
direction keys.
You can turn this style on and off to change dialog box navigation. To
change this style after a window has been created use the
HWND::SetWindowLongPtr
function.
sourcepub const TABSTOP: Self = _
pub const TABSTOP: Self = _
The window is a control that can receive the keyboard focus when the user
presses the TAB key. Pressing the TAB key changes the keyboard focus to
the next control with the WS::TABSTOP
style.
You can turn this style on and off to change dialog box navigation. To
change this style after a window has been created use the
HWND::SetWindowLongPtr
function. For user-created windows and modeless dialogs to work with tab
stops alter the message loop to call the
HWND::IsDialogMessage
function.
sourcepub const MINIMIZEBOX: Self = _
pub const MINIMIZEBOX: Self = _
The window has a minimize button. Cannot be combined with the
WS_EX::CONTEXTHELP
style. The
WS::SYSMENU
style must also be specified.
sourcepub const MAXIMIZEBOX: Self = _
pub const MAXIMIZEBOX: Self = _
The window has a maximize button. Cannot be combined with the
WS_EX::CONTEXTHELP
style. The
WS::SYSMENU
style must also be specified.
sourcepub const TILED: Self = _
pub const TILED: Self = _
The window is an overlapped window. An overlapped window has a title bar
and a border. Same as the WS::OVERLAPPED
style.
sourcepub const TILEDWINDOW: Self = _
pub const TILEDWINDOW: Self = _
The window is an overlapped window. Same as the WS::OVERLAPPEDWINDOW
style.
sourcepub const OVERLAPPEDWINDOW: Self = _
pub const OVERLAPPEDWINDOW: Self = _
The window is an overlapped window. Same as the WS::TILEDWINDOW
style.
sourcepub const POPUPWINDOW: Self = _
pub const POPUPWINDOW: Self = _
The window is a pop-up window. This style cannot be used with the
WS::CHILD
style.
sourcepub const CHILDWINDOW: Self = _
pub const CHILDWINDOW: Self = _
Same as the WS::CHILD
style.
Trait Implementations§
source§impl BitAndAssign for WS
impl BitAndAssign for WS
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOrAssign for WS
impl BitOrAssign for WS
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXorAssign for WS
impl BitXorAssign for WS
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl IntUnderlying for WS
impl IntUnderlying for WS
source§impl NativeBitflag for WS
impl NativeBitflag for WS
source§impl Ord for WS
impl Ord for WS
source§impl PartialOrd for WS
impl PartialOrd for WS
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more