[−][src]Struct qt_gui::QAccessibleValueInterface
The QAccessibleValueInterface class implements support for objects that manipulate a value.
C++ class: QAccessibleValueInterface
.
The QAccessibleValueInterface class implements support for objects that manipulate a value.
This interface should be implemented by accessible objects that represent a value. Examples are spinner, slider, dial and scroll bar.
Instead of forcing the user to deal with the individual parts of the widgets, this interface gives an easier approach to the kind of widget it represents.
Usually this interface is implemented by classes that also implement QAccessibleInterface.
Methods
impl QAccessibleValueInterface
[src]
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QAccessibleValueInterface>>
) -> MutRef<QAccessibleValueInterface>
[src]
&mut self,
other: impl CastInto<Ref<QAccessibleValueInterface>>
) -> MutRef<QAccessibleValueInterface>
The QAccessibleValueInterface class implements support for objects that manipulate a value.
Calls C++ function: QAccessibleValueInterface& QAccessibleValueInterface::operator=(const QAccessibleValueInterface& other)
.
The QAccessibleValueInterface class implements support for objects that manipulate a value.
This interface should be implemented by accessible objects that represent a value. Examples are spinner, slider, dial and scroll bar.
Instead of forcing the user to deal with the individual parts of the widgets, this interface gives an easier approach to the kind of widget it represents.
Usually this interface is implemented by classes that also implement QAccessibleInterface.
pub unsafe fn current_value(&self) -> CppBox<QVariant>
[src]
Returns the current value of the widget. This is usually a double or int.
Calls C++ function: pure virtual QVariant QAccessibleValueInterface::currentValue() const
.
Returns the current value of the widget. This is usually a double or int.
See also setCurrentValue().
pub unsafe fn maximum_value(&self) -> CppBox<QVariant>
[src]
Returns the maximum value this object accepts.
Calls C++ function: pure virtual QVariant QAccessibleValueInterface::maximumValue() const
.
Returns the maximum value this object accepts.
See also minimumValue() and currentValue().
pub unsafe fn minimum_step_size(&self) -> CppBox<QVariant>
[src]
Returns the minimum step size for the accessible. This is the smalles increment that makes sense when changing the value. When programatically changing the value it should always be a multiple of the minimum step size.
Calls C++ function: pure virtual QVariant QAccessibleValueInterface::minimumStepSize() const
.
Returns the minimum step size for the accessible. This is the smalles increment that makes sense when changing the value. When programatically changing the value it should always be a multiple of the minimum step size.
Some tools use this value even when the setCurrentValue does not perform any action. Progress bars for example are read-only but should return their range divided by 100.
pub unsafe fn minimum_value(&self) -> CppBox<QVariant>
[src]
Returns the minimum value this object accepts.
Calls C++ function: pure virtual QVariant QAccessibleValueInterface::minimumValue() const
.
Returns the minimum value this object accepts.
See also maximumValue() and currentValue().
pub unsafe fn set_current_value(&mut self, value: impl CastInto<Ref<QVariant>>)
[src]
Sets the value. If the desired value is out of the range of permissible values, this call will be ignored.
Calls C++ function: pure virtual void QAccessibleValueInterface::setCurrentValue(const QVariant& value)
.
Sets the value. If the desired value is out of the range of permissible values, this call will be ignored.
See also currentValue(), minimumValue(), and maximumValue().
Trait Implementations
impl CppDeletable for QAccessibleValueInterface
[src]
unsafe fn delete(&mut self)
[src]
Destroys the QAccessibleValueInterface.
Calls C++ function: virtual [destructor] void QAccessibleValueInterface::~QAccessibleValueInterface()
.
Destroys the QAccessibleValueInterface.
Auto Trait Implementations
impl RefUnwindSafe for QAccessibleValueInterface
impl Send for QAccessibleValueInterface
impl Sync for QAccessibleValueInterface
impl Unpin for QAccessibleValueInterface
impl UnwindSafe for QAccessibleValueInterface
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,