[−][src]Struct qt_widgets::QScrollerProperties
The QScrollerProperties class stores the settings for a QScroller.
C++ class: QScrollerProperties
.
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]
&mut self,
sp: impl CastInto<Ref<QScrollerProperties>>
) -> MutRef<QScrollerProperties>
Assigns sp to these scroller properties and returns a reference to these scroller properties.
Calls C++ function: QScrollerProperties& QScrollerProperties::operator=(const QScrollerProperties& sp)
.
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()
.
Constructs new scroller properties.
pub unsafe fn new_copy(
sp: impl CastInto<Ref<QScrollerProperties>>
) -> CppBox<QScrollerProperties>
[src]
sp: impl CastInto<Ref<QScrollerProperties>>
) -> CppBox<QScrollerProperties>
Constructs a copy of sp.
Calls C++ function: [constructor] void QScrollerProperties::QScrollerProperties(const QScrollerProperties& sp)
.
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
.
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]
sp: impl CastInto<Ref<QScrollerProperties>>
)
Sets the scroller properties for all new QScrollerProperties objects to sp.
Calls C++ function: static void QScrollerProperties::setDefaultScrollerProperties(const QScrollerProperties& sp)
.
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]
&mut self,
metric: ScrollMetric,
value: impl CastInto<Ref<QVariant>>
)
Set a specific value of the metric ScrollerMetric to value.
Calls C++ function: void QScrollerProperties::setScrollMetric(QScrollerProperties::ScrollMetric metric, const QVariant& value)
.
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()
.
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
.
Returns true
if these scroller properties are equal to sp; otherwise returns false
.
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl CppDeletable for QScrollerProperties
[src]
Auto Trait Implementations
impl Send for QScrollerProperties
impl Sync for QScrollerProperties
impl Unpin for QScrollerProperties
impl RefUnwindSafe for QScrollerProperties
impl UnwindSafe for QScrollerProperties
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>,