Struct winsafe::co::WS[][src]

#[repr(transparent)]
pub struct WS(_);
Expand description

Window styles (u32).

Implementations

Tells whether other bitflag style is present. Equivalent to (val & other) != 0.

This method is common to all constant types.

The window is an overlapped window. An overlapped window has a title bar and a border. Same as the WS::TILED style.

The window is a pop-up window. This style cannot be used with the WS_CHILD style.

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.

The window is initially minimized. Same as the WS::ICONIC style.

The window is initially visible. This style can be turned on and off by using the HWND::ShowWindow or HWND::SetWindowPos function.

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.

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.

Excludes the area occupied by child windows when drawing occurs within the parent window. This style is used when creating the parent window.

The window is initially maximized.

The window has a title bar (includes the WS::BORDER style).

The window has a thin-line border.

The window has a border of a style typically used with dialog boxes. A window with this style cannot have a title bar.

The window has a vertical scroll bar.

The window has a horizontal scroll bar.

The window has a window menu on its title bar. The WS::CAPTION style must also be specified.

The window has a sizing border. Same as the WS::SIZEBOX style.

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.

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.

The window has a minimize button. Cannot be combined with the WS_EX::CONTEXTHELP style. The WS::SYSMENU style must also be specified.

The window has a maximize button. Cannot be combined with the WS_EX::CONTEXTHELP style. The WS::SYSMENU style must also be specified.

The window is an overlapped window. An overlapped window has a title bar and a border. Same as the WS::OVERLAPPED style.

The window is initially minimized. Same as the WS::MINIMIZE style.

The window has a sizing border. Same as the WS::THICKFRAME style.

The window is an overlapped window. Same as the WS::OVERLAPPEDWINDOW style.

The window is an overlapped window. Same as the WS::TILEDWINDOW style.

The window is a pop-up window. This style cannot be used with the WS::CHILD style.

Same as the WS::CHILD style.

Trait Implementations

Formats the value using the given formatter.

The resulting type after applying the & operator.

Performs the & operation. Read more

Performs the &= operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

Performs the |= operation. Read more

The resulting type after applying the ^ operator.

Performs the ^ operation. Read more

Performs the ^= operation. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

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

Formats the value using the given formatter.

The resulting type after applying the ! operator.

Performs the unary ! operation. Read more

Formats the value using the given formatter.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Formats the value using the given formatter.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.