valadoc.org


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:

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

Read the original on valadoc.org ↗