ActionableT

The GtkActionable interface provides a convenient way of asscociating widgets with actions.

It primarily consists of two properties: [property@Gtk.Actionable:action-name] and [property@Gtk.Actionable:action-target]. There are also some convenience APIs for setting these properties.

The action will be looked up in action groups that are found among the widgets ancestors. Most commonly, these will be the actions with the “win.” or “app.” prefix that are associated with the GtkApplicationWindow or GtkApplication, but other action groups that are added with [method@Gtk.Widget.insert_action_group] will be consulted as well.

Members

Functions

getActionName
string getActionName()

Gets the action name for @actionable.

getActionTargetValue
Variant getActionTargetValue()

Gets the current target value of @actionable.

getActionableStruct
GtkActionable* getActionableStruct(bool transferOwnership)

Get the main Gtk struct

setActionName
void setActionName(string actionName)

Specifies the name of the action with which this widget should be associated.

setActionTargetValue
void setActionTargetValue(Variant targetValue)

Sets the target value of an actionable widget.

setDetailedActionName
void setDetailedActionName(string detailedActionName)

Sets the action-name and associated string target value of an actionable widget.

Meta