[−][src]Struct qt_widgets::QStyleOptionTitleBar
The QStyleOptionTitleBar class is used to describe the parameters for drawing a title bar.
C++ class: QStyleOptionTitleBar
.
The QStyleOptionTitleBar class is used to describe the parameters for drawing a title bar.
QStyleOptionTitleBar contains all the information that QStyle functions need to draw the title bar of a QMdiSubWindow.
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.
Methods
impl QStyleOptionTitleBar
[src]
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QStyleOptionTitleBar>>
) -> MutRef<QStyleOptionTitleBar>
[src]
&mut self,
other: impl CastInto<Ref<QStyleOptionTitleBar>>
) -> MutRef<QStyleOptionTitleBar>
The QStyleOptionTitleBar class is used to describe the parameters for drawing a title bar.
Calls C++ function: QStyleOptionTitleBar& QStyleOptionTitleBar::operator=(const QStyleOptionTitleBar& other)
.
The QStyleOptionTitleBar class is used to describe the parameters for drawing a title bar.
QStyleOptionTitleBar contains all the information that QStyle functions need to draw the title bar of a QMdiSubWindow.
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.
pub unsafe fn icon(&self) -> Ref<QIcon>
[src]
Returns a reference to the icon
field.
pub unsafe fn icon_mut(&mut self) -> MutRef<QIcon>
[src]
Returns a mutable reference to the icon
field.
pub unsafe fn new() -> CppBox<QStyleOptionTitleBar>
[src]
Constructs a QStyleOptionTitleBar, initializing the members variables to their default values.
Calls C++ function: [constructor] void QStyleOptionTitleBar::QStyleOptionTitleBar()
.
Constructs a QStyleOptionTitleBar, initializing the members variables to their default values.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QStyleOptionTitleBar>>
) -> CppBox<QStyleOptionTitleBar>
[src]
other: impl CastInto<Ref<QStyleOptionTitleBar>>
) -> CppBox<QStyleOptionTitleBar>
Constructs a copy of the other style option.
Calls C++ function: [constructor] void QStyleOptionTitleBar::QStyleOptionTitleBar(const QStyleOptionTitleBar& other)
.
Constructs a copy of the other style option.
pub unsafe fn set_icon(&mut self, value: impl CastInto<Ref<QIcon>>)
[src]
Sets the value of the icon
field.
pub unsafe fn set_text(&mut self, value: impl CastInto<Ref<QString>>)
[src]
Sets the value of the text
field.
pub unsafe fn set_title_bar_flags(&mut self, value: QFlags<WindowType>)
[src]
Sets the value of the titleBarFlags
field.
pub unsafe fn set_title_bar_state(&mut self, value: c_int)
[src]
Sets the value of the titleBarState
field.
pub unsafe fn text(&self) -> Ref<QString>
[src]
Returns a reference to the text
field.
pub unsafe fn text_mut(&mut self) -> MutRef<QString>
[src]
Returns a mutable reference to the text
field.
pub unsafe fn title_bar_flags(&self) -> QFlags<WindowType>
[src]
Returns a reference to the titleBarFlags
field.
pub unsafe fn title_bar_state(&self) -> c_int
[src]
Returns the value of the titleBarState
field.
Methods from Deref<Target = QStyleOptionComplex>
pub unsafe fn active_sub_controls(&self) -> QFlags<SubControl>
[src]
Returns a reference to the activeSubControls
field.
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QStyleOptionComplex>>
) -> MutRef<QStyleOptionComplex>
[src]
&mut self,
other: impl CastInto<Ref<QStyleOptionComplex>>
) -> MutRef<QStyleOptionComplex>
The QStyleOptionComplex class is used to hold parameters that are common to all complex controls.
Calls C++ function: QStyleOptionComplex& QStyleOptionComplex::operator=(const QStyleOptionComplex& other)
.
The QStyleOptionComplex class is used to hold parameters that are common to all complex controls.
This class is not used on its own. Instead it is used to derive other complex control options, for example QStyleOptionSlider and QStyleOptionSpinBox.
For performance reasons, the access to the member variables is direct (i.e., using the .
or ->
operator).
For an example demonstrating how style options can be used, see the Styles example.
pub unsafe fn set_active_sub_controls(&mut self, value: QFlags<SubControl>)
[src]
Sets the value of the activeSubControls
field.
pub unsafe fn set_sub_controls(&mut self, value: QFlags<SubControl>)
[src]
Sets the value of the subControls
field.
pub unsafe fn sub_controls(&self) -> QFlags<SubControl>
[src]
Returns a reference to the subControls
field.
Trait Implementations
impl CppDeletable for QStyleOptionTitleBar
[src]
unsafe fn delete(&mut self)
[src]
The QStyleOptionTitleBar class is used to describe the parameters for drawing a title bar.
Calls C++ function: [destructor] void QStyleOptionTitleBar::~QStyleOptionTitleBar()
.
The QStyleOptionTitleBar class is used to describe the parameters for drawing a title bar.
QStyleOptionTitleBar contains all the information that QStyle functions need to draw the title bar of a QMdiSubWindow.
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.
impl Deref for QStyleOptionTitleBar
[src]
type Target = QStyleOptionComplex
The resulting type after dereferencing.
fn deref(&self) -> &QStyleOptionComplex
[src]
Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionTitleBar* ptr)
.
impl DerefMut for QStyleOptionTitleBar
[src]
fn deref_mut(&mut self) -> &mut QStyleOptionComplex
[src]
Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionTitleBar* ptr)
.
impl StaticDowncast<QStyleOptionTitleBar> for QStyleOptionComplex
[src]
unsafe fn static_downcast(
ptr: Ptr<QStyleOptionComplex>
) -> Ptr<QStyleOptionTitleBar>
[src]
ptr: Ptr<QStyleOptionComplex>
) -> Ptr<QStyleOptionTitleBar>
Calls C++ function: QStyleOptionTitleBar* static_cast<QStyleOptionTitleBar*>(QStyleOptionComplex* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QStyleOptionComplex>
) -> MutPtr<QStyleOptionTitleBar>
[src]
ptr: MutPtr<QStyleOptionComplex>
) -> MutPtr<QStyleOptionTitleBar>
Calls C++ function: QStyleOptionTitleBar* static_cast<QStyleOptionTitleBar*>(QStyleOptionComplex* ptr)
.
impl StaticDowncast<QStyleOptionTitleBar> for QStyleOption
[src]
unsafe fn static_downcast(ptr: Ptr<QStyleOption>) -> Ptr<QStyleOptionTitleBar>
[src]
Calls C++ function: QStyleOptionTitleBar* static_cast<QStyleOptionTitleBar*>(QStyleOption* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QStyleOption>
) -> MutPtr<QStyleOptionTitleBar>
[src]
ptr: MutPtr<QStyleOption>
) -> MutPtr<QStyleOptionTitleBar>
Calls C++ function: QStyleOptionTitleBar* static_cast<QStyleOptionTitleBar*>(QStyleOption* ptr)
.
impl StaticUpcast<QStyleOption> for QStyleOptionTitleBar
[src]
unsafe fn static_upcast(ptr: Ptr<QStyleOptionTitleBar>) -> Ptr<QStyleOption>
[src]
Calls C++ function: QStyleOption* static_cast<QStyleOption*>(QStyleOptionTitleBar* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QStyleOptionTitleBar>
) -> MutPtr<QStyleOption>
[src]
ptr: MutPtr<QStyleOptionTitleBar>
) -> MutPtr<QStyleOption>
Calls C++ function: QStyleOption* static_cast<QStyleOption*>(QStyleOptionTitleBar* ptr)
.
impl StaticUpcast<QStyleOptionComplex> for QStyleOptionTitleBar
[src]
unsafe fn static_upcast(
ptr: Ptr<QStyleOptionTitleBar>
) -> Ptr<QStyleOptionComplex>
[src]
ptr: Ptr<QStyleOptionTitleBar>
) -> Ptr<QStyleOptionComplex>
Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionTitleBar* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QStyleOptionTitleBar>
) -> MutPtr<QStyleOptionComplex>
[src]
ptr: MutPtr<QStyleOptionTitleBar>
) -> MutPtr<QStyleOptionComplex>
Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionTitleBar* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QStyleOptionTitleBar
impl Send for QStyleOptionTitleBar
impl Sync for QStyleOptionTitleBar
impl Unpin for QStyleOptionTitleBar
impl UnwindSafe for QStyleOptionTitleBar
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,