[][src]Struct qt_widgets::QStyleOptionSpinBox

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

The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box.

C++ class: QStyleOptionSpinBox.

C++ documentation:

The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box.

QStyleOptionSpinBox contains all the information that QStyle functions need to draw QSpinBox and QDateTimeEdit.

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

pub unsafe fn button_symbols(&self) -> ButtonSymbols[src]

Returns the value of the buttonSymbols field.

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

The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box.

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

C++ documentation:

The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box.

QStyleOptionSpinBox contains all the information that QStyle functions need to draw QSpinBox and QDateTimeEdit.

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 frame(&self) -> bool[src]

Returns the value of the frame field.

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

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

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

C++ documentation:

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

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

Constructs a copy of the other style option.

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

C++ documentation:

Constructs a copy of the other style option.

pub unsafe fn set_button_symbols(&self, value: ButtonSymbols)[src]

Sets the value of the buttonSymbols field.

pub unsafe fn set_frame(&self, value: bool)[src]

Sets the value of the frame field.

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

Sets the value of the stepEnabled field.

pub unsafe fn step_enabled(&self) -> QFlags<StepEnabledFlag>[src]

Returns a reference to the stepEnabled 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 QStyleOptionSpinBox[src]

unsafe fn delete(&self)[src]

The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box.

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

C++ documentation:

The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box.

QStyleOptionSpinBox contains all the information that QStyle functions need to draw QSpinBox and QDateTimeEdit.

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

type Target = QStyleOptionComplex

The resulting type after dereferencing.

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

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

impl StaticDowncast<QStyleOptionSpinBox> for QStyleOptionComplex[src]

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

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

impl StaticDowncast<QStyleOptionSpinBox> for QStyleOption[src]

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

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

impl StaticUpcast<QStyleOption> for QStyleOptionSpinBox[src]

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

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

impl StaticUpcast<QStyleOptionComplex> for QStyleOptionSpinBox[src]

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

Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionSpinBox* 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.