Struct DockWidgetFeature

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

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

C++ enum: QDockWidget::DockWidgetFeature.

C++ documentation:

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

Implementations§

Source§

impl DockWidgetFeature

Source

pub fn to_int(&self) -> c_int

Source§

impl DockWidgetFeature

Source

pub const DockWidgetClosable: DockWidgetFeature

The dock widget can be closed. On some systems the dock widget always has a close button when it’s floating (for example on MacOS 10.5). (C++ enum variant: DockWidgetClosable = 1)

Source

pub const DockWidgetMovable: DockWidgetFeature

The dock widget can be moved between docks by the user. (C++ enum variant: DockWidgetMovable = 2)

Source

pub const DockWidgetFloatable: DockWidgetFeature

The dock widget can be detached from the main window, and floated as an independent window. (C++ enum variant: DockWidgetFloatable = 4)

Source

pub const DockWidgetVerticalTitleBar: DockWidgetFeature

The dock widget displays a vertical title bar on its left side. This can be used to increase the amount of vertical space in a QMainWindow. (C++ enum variant: DockWidgetVerticalTitleBar = 8)

Source

pub const DockWidgetFeatureMask: DockWidgetFeature

C++ enum variant: DockWidgetFeatureMask = 15

Source

pub const AllDockWidgetFeatures: DockWidgetFeature

(Deprecated) The dock widget can be closed, moved, and floated. Since new features might be added in future releases, the look and behavior of dock widgets might change if you use this flag. Please specify individual flags instead. (C++ enum variant: AllDockWidgetFeatures = 7)

Source

pub const NoDockWidgetFeatures: DockWidgetFeature

The dock widget cannot be closed, moved, or floated. (C++ enum variant: NoDockWidgetFeatures = 0)

Source

pub const Reserved: DockWidgetFeature

C++ enum variant: Reserved = 255

Trait Implementations§

Source§

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

Source§

type Output = QFlags<DockWidgetFeature>

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl Clone for DockWidgetFeature

Source§

fn clone(&self) -> DockWidgetFeature

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DockWidgetFeature

Source§

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

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

impl From<DockWidgetFeature> for QFlags<DockWidgetFeature>

Source§

fn from(value: DockWidgetFeature) -> Self

Converts to this type from the input type.
Source§

impl From<DockWidgetFeature> for c_int

Source§

fn from(value: DockWidgetFeature) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for DockWidgetFeature

Source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for DockWidgetFeature

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · 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 Copy for DockWidgetFeature

Source§

impl Eq for DockWidgetFeature

Source§

impl StructuralPartialEq for DockWidgetFeature

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.