gtk.actionable
Module for Actionable interface
Types 2
The gtk.actionable.Actionable interface provides a convenient way of associating widgets with actions.
It primarily consists of two properties: gtk.actionable.Actionable.actionName and gtk.actionable.Actionable.actionTarget. 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 gtk.application_window.ApplicationWindow or gtk.application.Application, but other action groups that are added with gtk.widget.Widget.insertActionGroup will be consulted as well.
string actionName() @propertyvoid actionName(string propval) @propertyglib.variant.Variant actionTarget() @propertyvoid actionTarget(glib.variant.Variant propval) @propertystring getActionName()Gets the action name for actionable. Returns: the action nameglib.variant.Variant getActionTargetValue()Gets the current target value of actionable. Returns: the current target valuevoid setActionName(string actionName = null)Specifies the name of the action with which this widget should be associated.void setActionTargetValue(glib.variant.Variant targetValue = null)Sets the target value of an actionable widget.void setDetailedActionName(string detailedActionName)Sets the action-name and associated string target value of an actionable widget.Fluent builder implementation template for gtk.actionable.Actionable