ShortcutTheme
Object Hierarchy:
Description:
[ CCode ( type_id = "dzl_shortcut_theme_get_type ()" ) ]
public class ShortcutTheme : Object
Content:
Properties:
- public string name { get; construct; }
- public string parent_name { get; set; }
- public string subtitle { owned get; set; }
- public string title { owned get; set; }
Creation methods:
Methods:
- public void add_command (string accelerator, string command)
- public void add_context (ShortcutContext context)
- public void add_css_resource (string path)
- public unowned ShortcutContext find_context_by_name (string name)
Gets the context named name
.
- public unowned ShortcutContext? find_default_context (Widget widget)
Finds the default context in the theme for widget
.
- public unowned ShortcutChord get_chord_for_action (string detailed_action_name)
- public unowned ShortcutChord get_chord_for_command (string command)
- public unowned string get_name ()
- public unowned ShortcutTheme? get_parent ()
If the
parent_name property has been set, this will fetch the parent
ShortcutTheme.
- public unowned string? get_parent_name ()
Gets the name of the parent shortcut theme.
- public unowned string get_subtitle ()
- public unowned string get_title ()
- public bool load_from_data (string data, ssize_t len) throws Error
- public bool load_from_file (File file, Cancellable? cancellable = null) throws Error
- public bool load_from_path (string path, Cancellable? cancellable = null) throws Error
- public void remove_css_resource (string path)
- public bool save_to_file (File file, Cancellable? cancellable = null) throws Error
- public bool save_to_path (string path, Cancellable? cancellable = null) throws Error
- public bool save_to_stream (OutputStream stream, Cancellable? cancellable = null) throws Error
- public void set_accel_for_action (string detailed_action_name, string accel, ShortcutPhase phase)
- public void set_accel_for_command (string? command, string? accel, ShortcutPhase phase)
This will set the command to execute when accel
is
pressed.
- public void set_chord_for_action (string detailed_action_name, ShortcutChord chord, ShortcutPhase phase)
- public void set_chord_for_command (string? command, ShortcutChord? chord, ShortcutPhase phase)
This will set the command to execute when chord
is
pressed.
- public void set_parent_name (string parent_name)
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref