Table of Contents

Class ShortcutController

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class ShortcutController : EventController, IObject, INotifyPropertyChanged, IDisposable, ListModel, Buildable, IHandle, GTypeProvider
Inheritance
ShortcutController
Implements
Inherited Members

Constructors

ShortcutController(bool, params ConstructArgument[])

protected ShortcutController(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

ShortcutController(IntPtr, bool)

protected ShortcutController(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

MnemonicModifiersPropertyDefinition

public static readonly Property<ModifierType, ShortcutController> MnemonicModifiersPropertyDefinition

Field Value

Property<ModifierType, ShortcutController>

NItemsPropertyDefinition

public static readonly Property<uint, ShortcutController> NItemsPropertyDefinition

Field Value

Property<uint, ShortcutController>

ScopePropertyDefinition

public static readonly Property<ShortcutScope, ShortcutController> ScopePropertyDefinition

Field Value

Property<ShortcutScope, ShortcutController>

Properties

MnemonicModifiers

public ModifierType MnemonicModifiers { get; set; }

Property Value

ModifierType

NItems

public uint NItems { get; }

Property Value

uint

Scope

public ShortcutScope Scope { get; set; }

Property Value

ShortcutScope

Methods

AddShortcut(Shortcut)

public void AddShortcut(Shortcut shortcut)

Parameters

shortcut Shortcut

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetItem(uint)

[Version("2.44")]
public IntPtr GetItem(uint position)

Parameters

position uint

Returns

IntPtr

GetItemType()

[Version("2.44")]
public Type GetItemType()

Returns

Type

GetMnemonicsModifiers()

public ModifierType GetMnemonicsModifiers()

Returns

ModifierType

GetNItems()

[Version("2.44")]
public uint GetNItems()

Returns

uint

GetObject(uint)

[Version("2.44")]
public Object? GetObject(uint position)

Parameters

position uint

Returns

Object

GetScope()

public ShortcutScope GetScope()

Returns

ShortcutScope

ItemsChanged(uint, uint, uint)

[Version("2.44")]
public void ItemsChanged(uint position, uint removed, uint added)

Parameters

position uint
removed uint
added uint

New()

public static ShortcutController New()

Returns

ShortcutController

NewForModel(ListModel)

public static ShortcutController NewForModel(ListModel model)

Parameters

model ListModel

Returns

ShortcutController

RemoveShortcut(Shortcut)

public void RemoveShortcut(Shortcut shortcut)

Parameters

shortcut Shortcut

SetMnemonicsModifiers(ModifierType)

public void SetMnemonicsModifiers(ModifierType modifiers)

Parameters

modifiers ModifierType

SetScope(ShortcutScope)

public void SetScope(ShortcutScope scope)

Parameters

scope ShortcutScope