Table of Contents

Class ShortcutController

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
public class ShortcutController
Inheritance
ShortcutController
Inherited Members

Methods

AddShortcut(IntPtr, IntPtr)

Calls native method gtk_shortcut_controller_add_shortcut.

public static extern void AddShortcut(IntPtr self, IntPtr shortcut)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

shortcut IntPtr

Transfer ownership: Full Nullable: False

GetGType()

Calls native function gtk_shortcut_controller_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetMnemonicsModifiers(IntPtr)

Calls native method gtk_shortcut_controller_get_mnemonics_modifiers.

public static extern ModifierType GetMnemonicsModifiers(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

ModifierType

Transfer ownership: None Nullable: False

GetScope(IntPtr)

Calls native method gtk_shortcut_controller_get_scope.

public static extern ShortcutScope GetScope(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

ShortcutScope

Transfer ownership: None Nullable: False

New()

Calls native constructor gtk_shortcut_controller_new.

public static extern IntPtr New()

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewForModel(IntPtr)

Calls native constructor gtk_shortcut_controller_new_for_model.

public static extern IntPtr NewForModel(IntPtr model)

Parameters

model IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

RemoveShortcut(IntPtr, IntPtr)

Calls native method gtk_shortcut_controller_remove_shortcut.

public static extern void RemoveShortcut(IntPtr self, IntPtr shortcut)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

shortcut IntPtr

Transfer ownership: None Nullable: False

SetMnemonicsModifiers(IntPtr, ModifierType)

Calls native method gtk_shortcut_controller_set_mnemonics_modifiers.

public static extern void SetMnemonicsModifiers(IntPtr self, ModifierType modifiers)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

modifiers ModifierType

Transfer ownership: None Nullable: False

SetScope(IntPtr, ShortcutScope)

Calls native method gtk_shortcut_controller_set_scope.

public static extern void SetScope(IntPtr self, ShortcutScope scope)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

scope ShortcutScope

Transfer ownership: None Nullable: False