[][src]Struct qt_widgets::q_style::StateFlag

#[repr(transparent)]
pub struct StateFlag(_);

This enum describes flags that are used when drawing primitive elements.

C++ enum: QStyle::StateFlag.

C++ documentation:

This enum describes flags that are used when drawing primitive elements.

Note that not all primitives use all of these flags, and that the flags may mean different things to different items.

The State type is a typedef for QFlags<StateFlag>. It stores an OR combination of StateFlag values.

See also drawPrimitive().

Methods

impl StateFlag[src]

pub fn to_int(&self) -> c_int[src]

impl StateFlag[src]

pub const StateNone: StateFlag[src]

Indicates that the widget does not have a state. (C++ enum variant: State_None = 0)

pub const StateEnabled: StateFlag[src]

Used to indicate if the widget is enabled. (C++ enum variant: State_Enabled = 1)

pub const StateRaised: StateFlag[src]

Used to indicate if a button is raised. (C++ enum variant: State_Raised = 2)

pub const StateSunken: StateFlag[src]

Used to indicate if the widget is sunken or pressed. (C++ enum variant: State_Sunken = 4)

pub const StateOff: StateFlag[src]

Used to indicate if the widget is not checked. (C++ enum variant: State_Off = 8)

pub const StateNoChange: StateFlag[src]

Used to indicate a tri-state checkbox. (C++ enum variant: State_NoChange = 16)

pub const StateOn: StateFlag[src]

Used to indicate if the widget is checked. (C++ enum variant: State_On = 32)

pub const StateDownArrow: StateFlag[src]

Used to indicate if a down arrow should be visible on the widget. (C++ enum variant: State_DownArrow = 64)

pub const StateHorizontal: StateFlag[src]

Used to indicate if the widget is laid out horizontally, for example. a tool bar. (C++ enum variant: State_Horizontal = 128)

pub const StateHasFocus: StateFlag[src]

Used to indicate if the widget has focus. (C++ enum variant: State_HasFocus = 256)

pub const StateTop: StateFlag[src]

C++ enum variant: State_Top = 512

pub const StateBottom: StateFlag[src]

C++ enum variant: State_Bottom = 1024

pub const StateFocusAtBorder: StateFlag[src]

C++ enum variant: State_FocusAtBorder = 2048

pub const StateAutoRaise: StateFlag[src]

Used to indicate if auto-raise appearance should be used on a tool button. (C++ enum variant: State_AutoRaise = 4096)

pub const StateMouseOver: StateFlag[src]

Used to indicate if the widget is under the mouse. (C++ enum variant: State_MouseOver = 8192)

pub const StateUpArrow: StateFlag[src]

Used to indicate if an up arrow should be visible on the widget. (C++ enum variant: State_UpArrow = 16384)

pub const StateSelected: StateFlag[src]

Used to indicate if a widget is selected. (C++ enum variant: State_Selected = 32768)

pub const StateActive: StateFlag[src]

Indicates that the widget is active. (C++ enum variant: State_Active = 65536)

pub const StateWindow: StateFlag[src]

C++ enum variant: State_Window = 131072

pub const StateOpen: StateFlag[src]

Used by item views to indicate if the tree branch is open. (C++ enum variant: State_Open = 262144)

pub const StateChildren: StateFlag[src]

Used to indicate if an item view branch has children. (C++ enum variant: State_Children = 524288)

pub const StateItem: StateFlag[src]

Used by item views to indicate if a horizontal branch should be drawn. (C++ enum variant: State_Item = 1048576)

pub const StateSibling: StateFlag[src]

Used by item views to indicate if a vertical line needs to be drawn (for siblings). (C++ enum variant: State_Sibling = 2097152)

pub const StateEditing: StateFlag[src]

Used to indicate if an editor is opened on the widget. (C++ enum variant: State_Editing = 4194304)

pub const StateKeyboardFocusChange: StateFlag[src]

Used to indicate if the focus was changed with the keyboard, e.g., tab, backtab or shortcut. (C++ enum variant: State_KeyboardFocusChange = 8388608)

pub const StateReadOnly: StateFlag[src]

Used to indicate if a widget is read-only. (C++ enum variant: State_ReadOnly = 33554432)

pub const StateSmall: StateFlag[src]

Used to indicate a small style Mac widget or button. (C++ enum variant: State_Small = 67108864)

pub const StateMini: StateFlag[src]

Used to indicate a mini style Mac widget or button. (C++ enum variant: State_Mini = 134217728)

Trait Implementations

impl<T: Into<QFlags<StateFlag>>> BitOr<T> for StateFlag[src]

type Output = QFlags<StateFlag>

The resulting type after applying the | operator.

impl Clone for StateFlag[src]

impl Copy for StateFlag[src]

impl Debug for StateFlag[src]

impl Eq for StateFlag[src]

impl From<StateFlag> for c_int[src]

impl From<StateFlag> for QFlags<StateFlag>[src]

impl From<i32> for StateFlag[src]

impl PartialEq<StateFlag> for StateFlag[src]

impl StructuralEq for StateFlag[src]

impl StructuralPartialEq for StateFlag[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.