#[repr(C)]pub struct QStyleOptionDockWidget { /* private fields */ }
Expand description
The QStyleOptionDockWidget class is used to describe the parameters for drawing a dock widget.
C++ class: QStyleOptionDockWidget
.
The QStyleOptionDockWidget class is used to describe the parameters for drawing a dock widget.
QStyleOptionDockWidget contains all the information that QStyle functions need to draw graphical elements like QDockWidget.
For performance reasons, the access to the member variables is direct (i.e., using the .
or ->
operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
For an example demonstrating how style options can be used, see the Styles example.
Implementations§
Source§impl QStyleOptionDockWidget
impl QStyleOptionDockWidget
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QStyleOptionDockWidget>>,
) -> Ref<QStyleOptionDockWidget>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QStyleOptionDockWidget>>, ) -> Ref<QStyleOptionDockWidget>
The QStyleOptionDockWidget class is used to describe the parameters for drawing a dock widget.
Calls C++ function: QStyleOptionDockWidget& QStyleOptionDockWidget::operator=(const QStyleOptionDockWidget& other)
.
The QStyleOptionDockWidget class is used to describe the parameters for drawing a dock widget.
QStyleOptionDockWidget contains all the information that QStyle functions need to draw graphical elements like QDockWidget.
For performance reasons, the access to the member variables is direct (i.e., using the .
or ->
operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
For an example demonstrating how style options can be used, see the Styles example.
Sourcepub unsafe fn new() -> CppBox<QStyleOptionDockWidget>
pub unsafe fn new() -> CppBox<QStyleOptionDockWidget>
Constructs a QStyleOptionDockWidget, initializing the member variables to their default values.
Calls C++ function: [constructor] void QStyleOptionDockWidget::QStyleOptionDockWidget()
.
Constructs a QStyleOptionDockWidget, initializing the member variables to their default values.
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QStyleOptionDockWidget>>,
) -> CppBox<QStyleOptionDockWidget>
pub unsafe fn new_copy( other: impl CastInto<Ref<QStyleOptionDockWidget>>, ) -> CppBox<QStyleOptionDockWidget>
Constructs a copy of the other style option.
Calls C++ function: [constructor] void QStyleOptionDockWidget::QStyleOptionDockWidget(const QStyleOptionDockWidget& other)
.
Constructs a copy of the other style option.
Sourcepub unsafe fn set_closable(&self, value: bool)
pub unsafe fn set_closable(&self, value: bool)
Sets the value of the closable
field.
Sourcepub unsafe fn set_floatable(&self, value: bool)
pub unsafe fn set_floatable(&self, value: bool)
Sets the value of the floatable
field.
Sourcepub unsafe fn set_movable(&self, value: bool)
pub unsafe fn set_movable(&self, value: bool)
Sets the value of the movable
field.
Sourcepub unsafe fn set_title(&self, value: impl CastInto<Ref<QString>>)
pub unsafe fn set_title(&self, value: impl CastInto<Ref<QString>>)
Sets the value of the title
field.
Sourcepub unsafe fn set_vertical_title_bar(&self, value: bool)
pub unsafe fn set_vertical_title_bar(&self, value: bool)
Sets the value of the verticalTitleBar
field.
Sourcepub unsafe fn vertical_title_bar(&self) -> bool
pub unsafe fn vertical_title_bar(&self) -> bool
Returns the value of the verticalTitleBar
field.
Methods from Deref<Target = QStyleOption>§
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QStyleOption>>,
) -> Ref<QStyleOption>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QStyleOption>>, ) -> Ref<QStyleOption>
Assign other to this QStyleOption.
Calls C++ function: QStyleOption& QStyleOption::operator=(const QStyleOption& other)
.
Assign other to this QStyleOption.
Sourcepub unsafe fn direction(&self) -> LayoutDirection
pub unsafe fn direction(&self) -> LayoutDirection
Returns the value of the direction
field.
Sourcepub unsafe fn font_metrics(&self) -> Ref<QFontMetrics>
pub unsafe fn font_metrics(&self) -> Ref<QFontMetrics>
Returns a reference to the fontMetrics
field.
Sourcepub unsafe fn font_metrics_mut(&self) -> Ref<QFontMetrics>
pub unsafe fn font_metrics_mut(&self) -> Ref<QFontMetrics>
Returns a mutable reference to the fontMetrics
field.
Sourcepub unsafe fn init(&self, w: impl CastInto<Ptr<QWidget>>)
pub unsafe fn init(&self, w: impl CastInto<Ptr<QWidget>>)
Sourcepub unsafe fn init_from(&self, w: impl CastInto<Ptr<QWidget>>)
pub unsafe fn init_from(&self, w: impl CastInto<Ptr<QWidget>>)
Initializes the state, direction, rect, palette, fontMetrics and styleObject member variables based on the specified widget.
Calls C++ function: void QStyleOption::initFrom(const QWidget* w)
.
Initializes the state, direction, rect, palette, fontMetrics and styleObject member variables based on the specified widget.
This is a convenience function; the member variables can also be initialized manually.
This function was introduced in Qt 4.1.
See also QWidget::layoutDirection(), QWidget::rect(), QWidget::palette(), and QWidget::fontMetrics().
Sourcepub unsafe fn palette_mut(&self) -> Ref<QPalette>
pub unsafe fn palette_mut(&self) -> Ref<QPalette>
Returns a mutable reference to the palette
field.
Sourcepub unsafe fn set_direction(&self, value: LayoutDirection)
pub unsafe fn set_direction(&self, value: LayoutDirection)
Sets the value of the direction
field.
Sourcepub unsafe fn set_font_metrics(&self, value: impl CastInto<Ref<QFontMetrics>>)
pub unsafe fn set_font_metrics(&self, value: impl CastInto<Ref<QFontMetrics>>)
Sets the value of the fontMetrics
field.
Sourcepub unsafe fn set_palette(&self, value: impl CastInto<Ref<QPalette>>)
pub unsafe fn set_palette(&self, value: impl CastInto<Ref<QPalette>>)
Sets the value of the palette
field.
Sourcepub unsafe fn set_rect(&self, value: impl CastInto<Ref<QRect>>)
pub unsafe fn set_rect(&self, value: impl CastInto<Ref<QRect>>)
Sets the value of the rect
field.
Sourcepub unsafe fn set_style_object(&self, value: impl CastInto<Ptr<QObject>>)
pub unsafe fn set_style_object(&self, value: impl CastInto<Ptr<QObject>>)
Sets the value of the styleObject
field.
Sourcepub unsafe fn set_version(&self, value: c_int)
pub unsafe fn set_version(&self, value: c_int)
Sets the value of the version
field.
Sourcepub unsafe fn style_object(&self) -> QPtr<QObject>
pub unsafe fn style_object(&self) -> QPtr<QObject>
Returns the value of the styleObject
field.
Trait Implementations§
Source§impl CppDeletable for QStyleOptionDockWidget
impl CppDeletable for QStyleOptionDockWidget
Source§unsafe fn delete(&self)
unsafe fn delete(&self)
The QStyleOptionDockWidget class is used to describe the parameters for drawing a dock widget.
Calls C++ function: [destructor] void QStyleOptionDockWidget::~QStyleOptionDockWidget()
.
The QStyleOptionDockWidget class is used to describe the parameters for drawing a dock widget.
QStyleOptionDockWidget contains all the information that QStyle functions need to draw graphical elements like QDockWidget.
For performance reasons, the access to the member variables is direct (i.e., using the .
or ->
operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
For an example demonstrating how style options can be used, see the Styles example.
Source§impl Deref for QStyleOptionDockWidget
impl Deref for QStyleOptionDockWidget
Source§fn deref(&self) -> &QStyleOption
fn deref(&self) -> &QStyleOption
Calls C++ function: QStyleOption* static_cast<QStyleOption*>(QStyleOptionDockWidget* ptr)
.
Source§type Target = QStyleOption
type Target = QStyleOption
Source§impl StaticDowncast<QStyleOptionDockWidget> for QStyleOption
impl StaticDowncast<QStyleOptionDockWidget> for QStyleOption
Source§unsafe fn static_downcast(ptr: Ptr<QStyleOption>) -> Ptr<QStyleOptionDockWidget>
unsafe fn static_downcast(ptr: Ptr<QStyleOption>) -> Ptr<QStyleOptionDockWidget>
Calls C++ function: QStyleOptionDockWidget* static_cast<QStyleOptionDockWidget*>(QStyleOption* ptr)
.
Source§impl StaticUpcast<QStyleOption> for QStyleOptionDockWidget
impl StaticUpcast<QStyleOption> for QStyleOptionDockWidget
Source§unsafe fn static_upcast(ptr: Ptr<QStyleOptionDockWidget>) -> Ptr<QStyleOption>
unsafe fn static_upcast(ptr: Ptr<QStyleOptionDockWidget>) -> Ptr<QStyleOption>
Calls C++ function: QStyleOption* static_cast<QStyleOption*>(QStyleOptionDockWidget* ptr)
.