Table of Contents

Class Application

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

Methods

AddWindow(nint, nint)

Calls native method gtk_application_add_window.

public static extern void AddWindow(nint application, nint window)

Parameters

application nint

Transfer ownership: None Nullable: False

window nint

Transfer ownership: None Nullable: False

GetAccelsForAction(nint, NonNullableUtf8StringHandle)

Calls native method gtk_application_get_accels_for_action.

public static extern Utf8StringArrayNullTerminatedOwnedHandle GetAccelsForAction(nint application, NonNullableUtf8StringHandle detailedActionName)

Parameters

application nint

Transfer ownership: None Nullable: False

detailedActionName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

Utf8StringArrayNullTerminatedOwnedHandle

Transfer ownership: Full Nullable: False

GetActionsForAccel(nint, NonNullableUtf8StringHandle)

Calls native method gtk_application_get_actions_for_accel.

public static extern Utf8StringArrayNullTerminatedOwnedHandle GetActionsForAccel(nint application, NonNullableUtf8StringHandle accel)

Parameters

application nint

Transfer ownership: None Nullable: False

accel NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

Utf8StringArrayNullTerminatedOwnedHandle

Transfer ownership: Full Nullable: False

GetActiveWindow(nint)

Calls native method gtk_application_get_active_window.

public static extern nint GetActiveWindow(nint application)

Parameters

application nint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: True

GetGType()

Calls native function gtk_application_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetMenuById(nint, NonNullableUtf8StringHandle)

Calls native method gtk_application_get_menu_by_id.

public static extern nint GetMenuById(nint application, NonNullableUtf8StringHandle id)

Parameters

application nint

Transfer ownership: None Nullable: False

id NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: True

GetMenubar(nint)

Calls native method gtk_application_get_menubar.

public static extern nint GetMenubar(nint application)

Parameters

application nint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: True

GetWindowById(nint, uint)

Calls native method gtk_application_get_window_by_id.

public static extern nint GetWindowById(nint application, uint id)

Parameters

application nint

Transfer ownership: None Nullable: False

id uint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: True

GetWindows(nint)

Calls native method gtk_application_get_windows.

public static extern ListUnownedHandle GetWindows(nint application)

Parameters

application nint

Transfer ownership: None Nullable: False

Returns

ListUnownedHandle

Transfer ownership: None Nullable: False

Inhibit(nint, nint, ApplicationInhibitFlags, NullableUtf8StringHandle)

Calls native method gtk_application_inhibit.

public static extern uint Inhibit(nint application, nint window, ApplicationInhibitFlags flags, NullableUtf8StringHandle reason)

Parameters

application nint

Transfer ownership: None Nullable: False

window nint

Transfer ownership: None Nullable: True

flags ApplicationInhibitFlags

Transfer ownership: None Nullable: False

reason NullableUtf8StringHandle

Transfer ownership: None Nullable: True

Returns

uint

Transfer ownership: None Nullable: False

ListActionDescriptions(nint)

Calls native method gtk_application_list_action_descriptions.

public static extern Utf8StringArrayNullTerminatedOwnedHandle ListActionDescriptions(nint application)

Parameters

application nint

Transfer ownership: None Nullable: False

Returns

Utf8StringArrayNullTerminatedOwnedHandle

Transfer ownership: Full Nullable: False

New(NullableUtf8StringHandle, ApplicationFlags)

Calls native constructor gtk_application_new.

public static extern nint New(NullableUtf8StringHandle applicationId, ApplicationFlags flags)

Parameters

applicationId NullableUtf8StringHandle

Transfer ownership: None Nullable: True

flags ApplicationFlags

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: Full Nullable: False

RemoveWindow(nint, nint)

Calls native method gtk_application_remove_window.

public static extern void RemoveWindow(nint application, nint window)

Parameters

application nint

Transfer ownership: None Nullable: False

window nint

Transfer ownership: None Nullable: False

SetAccelsForAction(nint, NonNullableUtf8StringHandle, Utf8StringArrayNullTerminatedHandle)

Calls native method gtk_application_set_accels_for_action.

public static extern void SetAccelsForAction(nint application, NonNullableUtf8StringHandle detailedActionName, Utf8StringArrayNullTerminatedHandle accels)

Parameters

application nint

Transfer ownership: None Nullable: False

detailedActionName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

accels Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: False

SetMenubar(nint, nint)

Calls native method gtk_application_set_menubar.

public static extern void SetMenubar(nint application, nint menubar)

Parameters

application nint

Transfer ownership: None Nullable: False

menubar nint

Transfer ownership: None Nullable: True

Uninhibit(nint, uint)

Calls native method gtk_application_uninhibit.

public static extern void Uninhibit(nint application, uint cookie)

Parameters

application nint

Transfer ownership: None Nullable: False

cookie uint

Transfer ownership: None Nullable: False