module Gtk::Actionable
Overview
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
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
- Adw::ActionRow
- Adw::Banner
- Adw::ButtonRow
- Adw::ComboRow
- Adw::EntryRow
- Adw::ExpanderRow
- Adw::PasswordEntryRow
- Adw::PreferencesRow
- Adw::SpinRow
- Adw::SplitButton
- Adw::SwitchRow
- Adw::TabButton
- Gtk::Button
- Gtk::CheckButton
- Gtk::LinkButton
- Gtk::ListBoxRow
- Gtk::LockButton
- Gtk::Switch
- Gtk::ToggleButton
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/actionable.crConstructors
-
.cast(obj : GObject::Object) : self
Cast a
GObject::Object
toself
, throws aTypeCastError
if the cast can't be made.
Class Method Summary
Instance Method Summary
- #action_name : String | Nil
- #action_name=(value : String) : String
-
#action_name=(value : Nil) : Nil
Set
#action_name
property to nil. - #action_name=(action_name : String | Nil) : Nil
-
#action_name? : String | Nil
Same as
#action_name
, but can return nil. - #action_target : GLib::Variant | Nil
- #action_target=(value : GLib::Variant | Nil) : GLib::Variant | Nil
- #action_target_value : GLib::Variant | Nil
- #action_target_value=(target_value : _ | Nil) : Nil
- #detailed_action_name=(detailed_action_name : String) : Nil
- #to_unsafe