module Gtk::Actionable

Overview

The Gtk::Actionable 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 Gtk::ApplicationWindow or Gtk::Application, but other action groups that are added with Gtk::Widget#insert_action_group will be consulted as well.

Direct including types

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/actionable.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.g_type : UInt64 #

Instance Method Detail

def action_name : String? #

def action_name=(value : String) : String #

def action_name=(action_name : String?) : Nil #

def action_target : GLib::Variant? #

def action_target=(value : GLib::Variant?) : GLib::Variant? #

def action_target_value : GLib::Variant? #

def action_target_value=(target_value : _?) : Nil #

def detailed_action_name=(detailed_action_name : String) : Nil #

abstract def to_unsafe #