[][src]Struct qt_widgets::QScrollerProperties

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

The QScrollerProperties class stores the settings for a QScroller.

C++ class: QScrollerProperties.

C++ documentation:

The QScrollerProperties class stores the settings for a QScroller.

The QScrollerProperties class stores the parameters used by QScroller.

The default settings are platform dependent so that Qt emulates the platform behaviour for kinetic scrolling.

As a convention the QScrollerProperties are in physical units (meter, seconds) and are converted by QScroller using the current DPI.

Methods

impl QScrollerProperties[src]

pub unsafe fn copy_from(
    &mut self,
    sp: impl CastInto<Ref<QScrollerProperties>>
) -> MutRef<QScrollerProperties>
[src]

Assigns sp to these scroller properties and returns a reference to these scroller properties.

Calls C++ function: QScrollerProperties& QScrollerProperties::operator=(const QScrollerProperties& sp).

C++ documentation:

Assigns sp to these scroller properties and returns a reference to these scroller properties.

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

Constructs new scroller properties.

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

C++ documentation:

Constructs new scroller properties.

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

Constructs a copy of sp.

Calls C++ function: [constructor] void QScrollerProperties::QScrollerProperties(const QScrollerProperties& sp).

C++ documentation:

Constructs a copy of sp.

pub unsafe fn scroll_metric(&self, metric: ScrollMetric) -> CppBox<QVariant>[src]

Query the metric value of the scroller properties.

Calls C++ function: QVariant QScrollerProperties::scrollMetric(QScrollerProperties::ScrollMetric metric) const.

C++ documentation:

Query the metric value of the scroller properties.

See also setScrollMetric() and ScrollMetric.

pub unsafe fn set_default_scroller_properties(
    sp: impl CastInto<Ref<QScrollerProperties>>
)
[src]

Sets the scroller properties for all new QScrollerProperties objects to sp.

Calls C++ function: static void QScrollerProperties::setDefaultScrollerProperties(const QScrollerProperties& sp).

C++ documentation:

Sets the scroller properties for all new QScrollerProperties objects to sp.

Use this function to override the platform default properties returned by the default constructor. If you only want to change the scroller properties of a single scroller, use QScroller::setScrollerProperties()

Note: Calling this function will not change the content of already existing QScrollerProperties objects.

See also unsetDefaultScrollerProperties().

pub unsafe fn set_scroll_metric(
    &mut self,
    metric: ScrollMetric,
    value: impl CastInto<Ref<QVariant>>
)
[src]

Set a specific value of the metric ScrollerMetric to value.

Calls C++ function: void QScrollerProperties::setScrollMetric(QScrollerProperties::ScrollMetric metric, const QVariant& value).

C++ documentation:

Set a specific value of the metric ScrollerMetric to value.

See also scrollMetric() and ScrollMetric.

pub unsafe fn unset_default_scroller_properties()[src]

Sets the scroller properties returned by the default constructor back to the platform default properties.

Calls C++ function: static void QScrollerProperties::unsetDefaultScrollerProperties().

C++ documentation:

Sets the scroller properties returned by the default constructor back to the platform default properties.

See also setDefaultScrollerProperties().

Trait Implementations

impl PartialEq<Ref<QScrollerProperties>> for QScrollerProperties[src]

fn eq(&self, sp: &Ref<QScrollerProperties>) -> bool[src]

Returns true if these scroller properties are equal to sp; otherwise returns false.

Calls C++ function: bool QScrollerProperties::operator==(const QScrollerProperties& sp) const.

C++ documentation:

Returns true if these scroller properties are equal to sp; otherwise returns false.

impl CppDeletable for QScrollerProperties[src]

unsafe fn delete(&mut self)[src]

Destroys the scroller properties.

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

C++ documentation:

Destroys the scroller properties.

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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