Functions

ease_out_cubic (t)

enum_value_row_name (value, user_data)

get_enable_animations (widget)

init ()

Details

Handy.ease_out_cubic(t)
Parameters:

t (float) – the term

Returns:

the ease out for t

Return type:

float

Computes the ease out for a value.

New in version 1.0.

Handy.enum_value_row_name(value, user_data)
Parameters:
Returns:

a displayable name that represents value

Return type:

str

Returns the name of a [class`EnumValueObject`].

This is a default implementation of [callback`ComboRowGetEnumValueNameFunc`] to be used with [method`ComboRow`.set_for_enum]. If the enumeration has a nickname, it will return it, otherwise it will return its name.

New in version 1.0.

Handy.get_enable_animations(widget)
Parameters:

widget (Gtk.Widget) – a widget

Returns:

whether animations are enabled for widget

Return type:

bool

Checks whether animations are enabled for widget.

This should be used when implementing an animated widget to know whether to animate it or not.

New in version 1.0.

Handy.init()

Initializes Libhandy.

Call this function just after initializing GTK, if you are using [class`Gtk`.Application] it means it must be called when the [signal`Gio`.Application::startup] signal is emitted.

If Libhandy has already been initialized, the function will simply return.

This makes sure translations, types, themes, and icons for the Handy library are set up properly.

New in version 1.0.