[][src]Struct qt_widgets::QStyleOptionGroupBox

#[repr(C)]pub struct QStyleOptionGroupBox { /* fields omitted */ }

The QStyleOptionGroupBox class describes the parameters for drawing a group box.

C++ class: QStyleOptionGroupBox.

C++ documentation:

The QStyleOptionGroupBox class describes the parameters for drawing a group box.

QStyleOptionButton contains all the information that QStyle functions need the various graphical elements of a group box.

It holds the lineWidth and the midLineWidth for drawing the panel, the group box's title and the title's alignment and color.

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 QStyleOptionGroupBox[src]

pub unsafe fn copy_from(
    &self,
    other: impl CastInto<Ref<QStyleOptionGroupBox>>
) -> Ref<QStyleOptionGroupBox>
[src]

The QStyleOptionGroupBox class describes the parameters for drawing a group box.

Calls C++ function: QStyleOptionGroupBox& QStyleOptionGroupBox::operator=(const QStyleOptionGroupBox& other).

C++ documentation:

The QStyleOptionGroupBox class describes the parameters for drawing a group box.

QStyleOptionButton contains all the information that QStyle functions need the various graphical elements of a group box.

It holds the lineWidth and the midLineWidth for drawing the panel, the group box's title and the title's alignment and color.

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 features(&self) -> QFlags<FrameFeature>[src]

Returns a reference to the features field.

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

Returns the value of the lineWidth field.

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

Returns the value of the midLineWidth field.

pub unsafe fn new() -> CppBox<QStyleOptionGroupBox>[src]

Constructs a QStyleOptionGroupBox, initializing the members variables to their default values.

Calls C++ function: [constructor] void QStyleOptionGroupBox::QStyleOptionGroupBox().

C++ documentation:

Constructs a QStyleOptionGroupBox, initializing the members variables to their default values.

pub unsafe fn new_copy(
    other: impl CastInto<Ref<QStyleOptionGroupBox>>
) -> CppBox<QStyleOptionGroupBox>
[src]

Constructs a copy of the other style option.

Calls C++ function: [constructor] void QStyleOptionGroupBox::QStyleOptionGroupBox(const QStyleOptionGroupBox& other).

C++ documentation:

Constructs a copy of the other style option.

pub unsafe fn set_features(&self, value: QFlags<FrameFeature>)[src]

Sets the value of the features field.

pub unsafe fn set_line_width(&self, value: c_int)[src]

Sets the value of the lineWidth field.

pub unsafe fn set_mid_line_width(&self, value: c_int)[src]

Sets the value of the midLineWidth field.

pub unsafe fn set_text(&self, value: impl CastInto<Ref<QString>>)[src]

Sets the value of the text field.

pub unsafe fn set_text_alignment(&self, value: QFlags<AlignmentFlag>)[src]

Sets the value of the textAlignment field.

pub unsafe fn set_text_color(&self, value: impl CastInto<Ref<QColor>>)[src]

Sets the value of the textColor field.

pub unsafe fn text(&self) -> Ref<QString>[src]

Returns a reference to the text field.

pub unsafe fn text_alignment(&self) -> QFlags<AlignmentFlag>[src]

Returns a reference to the textAlignment field.

pub unsafe fn text_color(&self) -> Ref<QColor>[src]

Returns a reference to the textColor field.

pub unsafe fn text_color_mut(&self) -> Ref<QColor>[src]

Returns a mutable reference to the textColor field.

pub unsafe fn text_mut(&self) -> Ref<QString>[src]

Returns a mutable reference to the text 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(
    &self,
    other: impl CastInto<Ref<QStyleOptionComplex>>
) -> Ref<QStyleOptionComplex>
[src]

The QStyleOptionComplex class is used to hold parameters that are common to all complex controls.

Calls C++ function: QStyleOptionComplex& QStyleOptionComplex::operator=(const QStyleOptionComplex& other).

C++ documentation:

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(&self, value: QFlags<SubControl>)[src]

Sets the value of the activeSubControls field.

pub unsafe fn set_sub_controls(&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 QStyleOptionGroupBox[src]

unsafe fn delete(&self)[src]

The QStyleOptionGroupBox class describes the parameters for drawing a group box.

Calls C++ function: [destructor] void QStyleOptionGroupBox::~QStyleOptionGroupBox().

C++ documentation:

The QStyleOptionGroupBox class describes the parameters for drawing a group box.

QStyleOptionButton contains all the information that QStyle functions need the various graphical elements of a group box.

It holds the lineWidth and the midLineWidth for drawing the panel, the group box's title and the title's alignment and color.

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 QStyleOptionGroupBox[src]

type Target = QStyleOptionComplex

The resulting type after dereferencing.

fn deref(&self) -> &QStyleOptionComplex[src]

Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionGroupBox* ptr).

impl StaticDowncast<QStyleOptionGroupBox> for QStyleOptionComplex[src]

unsafe fn static_downcast(
    ptr: Ptr<QStyleOptionComplex>
) -> Ptr<QStyleOptionGroupBox>
[src]

Calls C++ function: QStyleOptionGroupBox* static_cast<QStyleOptionGroupBox*>(QStyleOptionComplex* ptr).

impl StaticDowncast<QStyleOptionGroupBox> for QStyleOption[src]

unsafe fn static_downcast(ptr: Ptr<QStyleOption>) -> Ptr<QStyleOptionGroupBox>[src]

Calls C++ function: QStyleOptionGroupBox* static_cast<QStyleOptionGroupBox*>(QStyleOption* ptr).

impl StaticUpcast<QStyleOption> for QStyleOptionGroupBox[src]

unsafe fn static_upcast(ptr: Ptr<QStyleOptionGroupBox>) -> Ptr<QStyleOption>[src]

Calls C++ function: QStyleOption* static_cast<QStyleOption*>(QStyleOptionGroupBox* ptr).

impl StaticUpcast<QStyleOptionComplex> for QStyleOptionGroupBox[src]

unsafe fn static_upcast(
    ptr: Ptr<QStyleOptionGroupBox>
) -> Ptr<QStyleOptionComplex>
[src]

Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionGroupBox* ptr).

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

impl<T> StaticUpcast<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.