Object Hierarchy:
Description:
[ CCode ( type_cname = "GtkActionableInterface" , type_id = "gtk_actionable_get_type ()" ) ]
public interface Actionable : Widget
Provides a way to associate 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.
All known implementing classes:
Namespace: Gtk
Content:
Properties:
- public abstract string action_name { get; set; }
The name of the action with which this widget should be associated.
- public abstract Variant action_target { owned get; set; }
The target value of the actionable widget's action.
Methods:
- public abstract unowned string? get_action_name ()
Gets the action name for this.
- public abstract unowned Variant? get_action_target_value ()
Gets the current target value of this.
- public abstract void set_action_name (string? action_name)
Specifies the name of the action with which this widget should be associated.
- public void set_action_target (string format_string, ...)
Sets the target of an actionable widget.
- public abstract void set_action_target_value (Variant? target_value)
Sets the target value of an actionable widget.
- public void set_detailed_action_name (string detailed_action_name)
Sets the action-name and associated string target value of an actionable widget.
Inherited Members:
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Buildable