[][src]Struct qt_widgets::q_style_option_tool_bar::ToolBarPosition

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

C++ enum: QStyleOptionToolBar::ToolBarPosition.

C++ documentation:

This enum is used to describe the position of a toolbar line, as well as the toolbar's position within the line.

The order of the positions within a line starts at the top of a vertical line, and from the left within a horizontal line. The order of the positions for the lines is always from the parent widget's boundary edges.

See also positionWithinLine and positionOfLine.

Methods

impl ToolBarPosition[src]

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

impl ToolBarPosition[src]

pub const Beginning: ToolBarPosition[src]

The toolbar is located at the beginning of the line, or the toolbar line is the first of several lines. There can only be one toolbar (and only one line) with this position. (C++ enum variant: Beginning = 0)

pub const Middle: ToolBarPosition[src]

The toolbar is located in the middle of the line, or the toolbar line is in the middle of several lines. There can several toolbars (and lines) with this position. (C++ enum variant: Middle = 1)

pub const End: ToolBarPosition[src]

The toolbar is located at the end of the line, or the toolbar line is the last of several lines. There can only be one toolbar (and only one line) with this position. (C++ enum variant: End = 2)

pub const OnlyOne: ToolBarPosition[src]

There is only one toolbar or line. This is the default value of the positionOfLine and positionWithinLine variables. (C++ enum variant: OnlyOne = 3)

Trait Implementations

impl Eq for ToolBarPosition[src]

impl Clone for ToolBarPosition[src]

impl PartialEq<ToolBarPosition> for ToolBarPosition[src]

impl From<i32> for ToolBarPosition[src]

impl From<ToolBarPosition> for c_int[src]

impl Copy for ToolBarPosition[src]

impl Debug for ToolBarPosition[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

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

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