Skip to main content

DockOption

Struct DockOption 

Source
pub struct DockOption(/* private fields */);
Expand description

This enum contains flags that specify the docking behavior of QMainWindow.

C++ enum: QMainWindow::DockOption.

C++ documentation:

This enum contains flags that specify the docking behavior of QMainWindow.

These options only control how dock widgets may be dropped in a QMainWindow. They do not re-arrange the dock widgets to conform with the specified options. For this reason they should be set before any dock widgets are added to the main window. Exceptions to this are the AnimatedDocks and VerticalTabs options, which may be set at any time.

This enum was introduced or modified in Qt 4.3.

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

Implementations§

Source§

impl DockOption

Source

pub fn to_int(&self) -> c_int

Source§

impl DockOption

Source

pub const AnimatedDocks: DockOption

Identical to the animated property. (C++ enum variant: AnimatedDocks = 1)

Source

pub const AllowNestedDocks: DockOption

Identical to the dockNestingEnabled property. (C++ enum variant: AllowNestedDocks = 2)

Source

pub const AllowTabbedDocks: DockOption

The user can drop one dock widget “on top” of another. The two widgets are stacked and a tab bar appears for selecting which one is visible. (C++ enum variant: AllowTabbedDocks = 4)

Source

pub const ForceTabbedDocks: DockOption

Each dock area contains a single stack of tabbed dock widgets. In other words, dock widgets cannot be placed next to each other in a dock area. If this option is set, AllowNestedDocks has no effect. (C++ enum variant: ForceTabbedDocks = 8)

Source

pub const VerticalTabs: DockOption

The two vertical dock areas on the sides of the main window show their tabs vertically. If this option is not set, all dock areas show their tabs at the bottom. Implies AllowTabbedDocks. See also setTabPosition(). (C++ enum variant: VerticalTabs = 16)

Source

pub const GroupedDragging: DockOption

When dragging the titlebar of a dock, all the tabs that are tabbed with it are going to be dragged. Implies AllowTabbedDocks. Does not work well if some QDockWidgets have restrictions in which area they are allowed. (This enum value was added in Qt 5.6.) (C++ enum variant: GroupedDragging = 32)

Trait Implementations§

Source§

impl<T: Into<QFlags<DockOption>>> BitOr<T> for DockOption

Source§

type Output = QFlags<DockOption>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: T) -> QFlags<DockOption>

Performs the | operation. Read more
Source§

impl Clone for DockOption

Source§

fn clone(&self) -> DockOption

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DockOption

Source§

impl Debug for DockOption

Source§

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

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

impl Eq for DockOption

Source§

impl From<DockOption> for c_int

Source§

fn from(value: DockOption) -> Self

Converts to this type from the input type.
Source§

impl From<DockOption> for QFlags<DockOption>

Source§

fn from(value: DockOption) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for DockOption

Source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for DockOption

Source§

fn eq(&self, other: &DockOption) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for DockOption

Auto Trait Implementations§

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, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.