#[repr(C)]
pub struct QAccessibleValueInterface { /* private fields */ }
Expand description

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

Implementations§

source§

impl QAccessibleValueInterface

source

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

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

source

pub unsafe fn current_value(&self) -> CppBox<QVariant>

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().

source

pub unsafe fn maximum_value(&self) -> CppBox<QVariant>

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().

source

pub unsafe fn minimum_step_size(&self) -> CppBox<QVariant>

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.

source

pub unsafe fn minimum_value(&self) -> CppBox<QVariant>

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().

source

pub unsafe fn set_current_value(&self, value: impl CastInto<Ref<QVariant>>)

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§

source§

impl CppDeletable for QAccessibleValueInterface

source§

unsafe fn delete(&self)

Destroys the QAccessibleValueInterface.

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

C++ documentation:

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.