[][src]Struct qt_gui::QAccessibleValueInterface

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

The QAccessibleValueInterface class implements support for objects that manipulate a value.

C++ class: QAccessibleValueInterface.

C++ documentation:

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.

IAccessible2 Specification

Methods

impl QAccessibleValueInterface[src]

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

The QAccessibleValueInterface class implements support for objects that manipulate a value.

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

C++ documentation:

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.

IAccessible2 Specification

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

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.

C++ documentation:

Returns the minimum value this object accepts.

See also maximumValue() and currentValue().

pub unsafe fn set_current_value(&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).

C++ documentation:

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

Destroys the QAccessibleValueInterface.

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

C++ documentation:

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.