[−][src]Struct qt_widgets::QStyleOptionSpinBox
The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box.
C++ class: QStyleOptionSpinBox
.
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(
&mut self,
other: impl CastInto<Ref<QStyleOptionSpinBox>>
) -> MutRef<QStyleOptionSpinBox>
[src]
&mut self,
other: impl CastInto<Ref<QStyleOptionSpinBox>>
) -> MutRef<QStyleOptionSpinBox>
The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box.
Calls C++ function: QStyleOptionSpinBox& QStyleOptionSpinBox::operator=(const QStyleOptionSpinBox& other)
.
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()
.
Constructs a QStyleOptionSpinBox, initializing the members variables to their default values.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QStyleOptionSpinBox>>
) -> CppBox<QStyleOptionSpinBox>
[src]
other: impl CastInto<Ref<QStyleOptionSpinBox>>
) -> CppBox<QStyleOptionSpinBox>
Constructs a copy of the other style option.
Calls C++ function: [constructor] void QStyleOptionSpinBox::QStyleOptionSpinBox(const QStyleOptionSpinBox& other)
.
Constructs a copy of the other style option.
pub unsafe fn set_button_symbols(&mut self, value: ButtonSymbols)
[src]
Sets the value of the buttonSymbols
field.
pub unsafe fn set_frame(&mut self, value: bool)
[src]
Sets the value of the frame
field.
pub unsafe fn set_step_enabled(&mut 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(
&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 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 DerefMut for QStyleOptionSpinBox
[src]
fn deref_mut(&mut self) -> &mut QStyleOptionComplex
[src]
Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionSpinBox* ptr)
.
impl StaticUpcast<QStyleOptionComplex> for QStyleOptionSpinBox
[src]
unsafe fn static_upcast(
ptr: Ptr<QStyleOptionSpinBox>
) -> Ptr<QStyleOptionComplex>
[src]
ptr: Ptr<QStyleOptionSpinBox>
) -> Ptr<QStyleOptionComplex>
Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionSpinBox* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QStyleOptionSpinBox>
) -> MutPtr<QStyleOptionComplex>
[src]
ptr: MutPtr<QStyleOptionSpinBox>
) -> MutPtr<QStyleOptionComplex>
Calls C++ function: QStyleOptionComplex* static_cast<QStyleOptionComplex*>(QStyleOptionSpinBox* 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)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QStyleOptionSpinBox>
) -> MutPtr<QStyleOption>
[src]
ptr: MutPtr<QStyleOptionSpinBox>
) -> MutPtr<QStyleOption>
Calls C++ function: QStyleOption* static_cast<QStyleOption*>(QStyleOptionSpinBox* ptr)
.
impl StaticDowncast<QStyleOptionSpinBox> for QStyleOptionComplex
[src]
unsafe fn static_downcast(
ptr: Ptr<QStyleOptionComplex>
) -> Ptr<QStyleOptionSpinBox>
[src]
ptr: Ptr<QStyleOptionComplex>
) -> Ptr<QStyleOptionSpinBox>
Calls C++ function: QStyleOptionSpinBox* static_cast<QStyleOptionSpinBox*>(QStyleOptionComplex* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QStyleOptionComplex>
) -> MutPtr<QStyleOptionSpinBox>
[src]
ptr: MutPtr<QStyleOptionComplex>
) -> MutPtr<QStyleOptionSpinBox>
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)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QStyleOption>
) -> MutPtr<QStyleOptionSpinBox>
[src]
ptr: MutPtr<QStyleOption>
) -> MutPtr<QStyleOptionSpinBox>
Calls C++ function: QStyleOptionSpinBox* static_cast<QStyleOptionSpinBox*>(QStyleOption* ptr)
.
impl CppDeletable for QStyleOptionSpinBox
[src]
unsafe fn delete(&mut self)
[src]
The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box.
Calls C++ function: [destructor] void QStyleOptionSpinBox::~QStyleOptionSpinBox()
.
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.
Auto Trait Implementations
impl Send for QStyleOptionSpinBox
impl Sync for QStyleOptionSpinBox
impl Unpin for QStyleOptionSpinBox
impl RefUnwindSafe for QStyleOptionSpinBox
impl UnwindSafe for QStyleOptionSpinBox
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,