[][src]Struct qt_widgets::QStyleOptionSlider

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

The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider.

C++ class: QStyleOptionSlider.

C++ documentation:

The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider.

QStyleOptionSlider contains all the information that QStyle functions need to draw QSlider and QScrollBar.

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

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

The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider.

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

C++ documentation:

The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider.

QStyleOptionSlider contains all the information that QStyle functions need to draw QSlider and QScrollBar.

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

Returns the value of the dialWrapping field.

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

Returns the value of the maximum field.

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

Returns the value of the minimum field.

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

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

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

C++ documentation:

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

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

Constructs a copy of the other style option.

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

C++ documentation:

Constructs a copy of the other style option.

pub unsafe fn notch_target(&self) -> c_double[src]

Returns the value of the notchTarget field.

pub unsafe fn orientation(&self) -> Orientation[src]

Returns the value of the orientation field.

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

Returns the value of the pageStep field.

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

Sets the value of the dialWrapping field.

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

Sets the value of the maximum field.

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

Sets the value of the minimum field.

pub unsafe fn set_notch_target(&self, value: c_double)[src]

Sets the value of the notchTarget field.

pub unsafe fn set_orientation(&self, value: Orientation)[src]

Sets the value of the orientation field.

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

Sets the value of the pageStep field.

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

Sets the value of the singleStep field.

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

Sets the value of the sliderPosition field.

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

Sets the value of the sliderValue field.

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

Sets the value of the tickInterval field.

pub unsafe fn set_tick_position(&self, value: TickPosition)[src]

Sets the value of the tickPosition field.

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

Sets the value of the upsideDown field.

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

Returns the value of the singleStep field.

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

Returns the value of the sliderPosition field.

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

Returns the value of the sliderValue field.

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

Returns the value of the tickInterval field.

pub unsafe fn tick_position(&self) -> TickPosition[src]

Returns the value of the tickPosition field.

pub unsafe fn upside_down(&self) -> bool[src]

Returns the value of the upsideDown 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 QStyleOptionSlider[src]

unsafe fn delete(&self)[src]

The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider.

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

C++ documentation:

The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider.

QStyleOptionSlider contains all the information that QStyle functions need to draw QSlider and QScrollBar.

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

type Target = QStyleOptionComplex

The resulting type after dereferencing.

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

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

impl StaticDowncast<QStyleOptionSlider> for QStyleOptionComplex[src]

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

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

impl StaticDowncast<QStyleOptionSlider> for QStyleOption[src]

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

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

impl StaticUpcast<QStyleOption> for QStyleOptionSlider[src]

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

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

impl StaticUpcast<QStyleOptionComplex> for QStyleOptionSlider[src]

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

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