Interface

Atk-1.0AtkValueInterface

Interface for implementing Value. Contains only the virtual methods that need to be implemented.

interface Interface {
    vfunc_get_current_value(): unknown;
    vfunc_get_increment(): number;
    vfunc_get_maximum_value(): unknown;
    vfunc_get_minimum_increment(): unknown;
    vfunc_get_minimum_value(): unknown;
    vfunc_get_range(): Atk.Range;
    vfunc_get_sub_ranges(): Atk.Range[];
    vfunc_get_value_and_text(): [number, string];
    vfunc_set_current_value(value: any): boolean;
    vfunc_set_value(new_value: number): void;
}

Hierarchy (View Summary)

Index

Methods

  • Gets the minimum increment by which the value of this object may be changed. If zero, the minimum increment is undefined, which may mean that it is limited only by the floating point precision of the platform.

    Returns number

  • Gets the minimum increment by which the value of this object may be changed. If zero, the minimum increment is undefined, which may mean that it is limited only by the floating point precision of the platform.

    Returns unknown

  • Gets the current value and the human readable text alternative of obj. text is a newly created string, that must be freed by the caller. Can be NULL if no descriptor is available.

    Returns [number, string]

  • Sets the value of this object.

    Parameters

    • value: any

      a GObject.Value which is the desired new accessible value.

    Returns boolean

  • Sets the value of this object.

    This method is intended to provide a way to change the value of the object. In any case, it is possible that the value can't be modified (ie: a read-only component). If the value changes due this call, it is possible that the text could change, and will trigger an Atk.Value.SignalSignatures.value_changed | Atk.Value::value-changed signal emission.

    Note for implementors: the deprecated atk_value_set_current_value() method returned TRUE or FALSE depending if the value was assigned or not. In the practice several implementors were not able to decide it, and returned TRUE in any case. For that reason it is not required anymore to return if the value was properly assigned or not.

    Parameters

    • new_value: number

      a double which is the desired new accessible value.

    Returns void