Atspi.Value

g Atspi.Value Atspi.Value GObject.GInterface GObject.GInterface GObject.GInterface->Atspi.Value

Implementations:

Atspi.Accessible

Methods

get_current_value ()

get_maximum_value ()

get_minimum_increment ()

get_minimum_value ()

get_text ()

set_current_value (new_value)

Virtual Methods

None

Properties

None

Signals

None

Fields

None

Class Details

class Atspi.Value
Bases:

GObject.GInterface

An interface supporting a one-dimensional scalar to be modified, or which reflects its value.

An interface supporting a one-dimensional scalar to be modified, or which reflects its value. If STATE_EDITABLE is not present, the value is treated as “read only”.

get_current_value()
Raises:

GLib.Error

Returns:

the current value for this object.

Return type:

float

Gets the current value for an Atspi.Value.

get_maximum_value()
Raises:

GLib.Error

Returns:

the maximum allowed value for this object.

Return type:

float

Gets the maximum allowed value for an Atspi.Value.

get_minimum_increment()
Raises:

GLib.Error

Returns:

the minimum increment by which the value may be changed, or zero if the minimum increment cannot be determined.

Return type:

float

Gets the minimum increment by which an Atspi.Value can be adjusted.

get_minimum_value()
Raises:

GLib.Error

Returns:

the minimum allowed value for this object.

Return type:

float

Gets the minimum allowed value for an Atspi.Value.

get_text()
Raises:

GLib.Error

Return type:

str

Gets the human readable text alternative associated with the value. text is a newly created string, that must be freed by the caller. Can be None if no descriptor is available.

New in version 2.46.

set_current_value(new_value)
Parameters:

new_value (float) – a float value which is the desired new value of the object.

Raises:

GLib.Error

Returns:

True if the value could be assigned the specified value, False otherwise.

Return type:

bool

Sets the current value of an Atspi.Value.