ShortcutTrigger
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_shortcut_trigger_get_type ()" ) ]
public abstract class ShortcutTrigger :
Object
Tracks how a `GtkShortcut` can be activated.
To find out if a `GtkShortcutTrigger` triggers, you can call [method@Gtk.ShortcutTrigger.trigger] on a `GdkEvent`.
`GtkShortcutTriggers` contain functions that allow easy presentation to end users as well as being printed for debugging.
All `GtkShortcutTriggers` are immutable, you can only specify their properties during construction. If you want to change a trigger, you
have to replace it with a new one.
Content:
Static methods:
Creation methods:
Methods:
- public int compare (ShortcutTrigger trigger2)
The types of this and trigger2
are `gconstpointer` only to allow use of this function as a `GCompareFunc`.
- public bool equal (ShortcutTrigger trigger2)
Checks if this and trigger2
trigger under the same conditions.
- public uint hash ()
Generates a hash value for a `GtkShortcutTrigger`.
- public void print (StringBuilder str)
Prints the given trigger into a string for the developer.
- public bool print_label (Display display, StringBuilder str)
Prints the given trigger into a string.
- public string to_label (Display display)
Gets textual representation for the given trigger.
- public string to_string ()
Prints the given trigger into a human-readable string.
- public KeyMatch trigger (Event event, bool enable_mnemonics)
Checks if the given event triggers
this.
Inherited Members:
All known members inherited from class GLib.Object