Table of Contents

Class Toplevel

Namespace
Gdk.Internal
Assembly
Gdk-4.0.dll
public class Toplevel
Inheritance
Toplevel
Inherited Members

Methods

BeginMove(IntPtr, IntPtr, int, double, double, uint)

Calls native method gdk_toplevel_begin_move.

public static extern void BeginMove(IntPtr toplevel, IntPtr device, int button, double x, double y, uint timestamp)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

device IntPtr

Transfer ownership: None Nullable: False

button int

Transfer ownership: None Nullable: False

x double

Transfer ownership: None Nullable: False

y double

Transfer ownership: None Nullable: False

timestamp uint

Transfer ownership: None Nullable: False

BeginResize(IntPtr, SurfaceEdge, IntPtr, int, double, double, uint)

Calls native method gdk_toplevel_begin_resize.

public static extern void BeginResize(IntPtr toplevel, SurfaceEdge edge, IntPtr device, int button, double x, double y, uint timestamp)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

edge SurfaceEdge

Transfer ownership: None Nullable: False

device IntPtr

Transfer ownership: None Nullable: True

button int

Transfer ownership: None Nullable: False

x double

Transfer ownership: None Nullable: False

y double

Transfer ownership: None Nullable: False

timestamp uint

Transfer ownership: None Nullable: False

Focus(IntPtr, uint)

Calls native method gdk_toplevel_focus.

public static extern void Focus(IntPtr toplevel, uint timestamp)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

timestamp uint

Transfer ownership: None Nullable: False

GetGType()

Calls native function gdk_toplevel_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetState(IntPtr)

Calls native method gdk_toplevel_get_state.

public static extern ToplevelState GetState(IntPtr toplevel)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

Returns

ToplevelState

Transfer ownership: None Nullable: False

InhibitSystemShortcuts(IntPtr, IntPtr)

Calls native method gdk_toplevel_inhibit_system_shortcuts.

public static extern void InhibitSystemShortcuts(IntPtr toplevel, IntPtr @event)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

event IntPtr

Lower(IntPtr)

Calls native method gdk_toplevel_lower.

public static extern bool Lower(IntPtr toplevel)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Minimize(IntPtr)

Calls native method gdk_toplevel_minimize.

public static extern bool Minimize(IntPtr toplevel)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Present(IntPtr, ToplevelLayoutHandle)

Calls native method gdk_toplevel_present.

public static extern void Present(IntPtr toplevel, ToplevelLayoutHandle layout)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

layout ToplevelLayoutHandle

Transfer ownership: None Nullable: False

RestoreSystemShortcuts(IntPtr)

Calls native method gdk_toplevel_restore_system_shortcuts.

public static extern void RestoreSystemShortcuts(IntPtr toplevel)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

SetDecorated(IntPtr, bool)

Calls native method gdk_toplevel_set_decorated.

public static extern void SetDecorated(IntPtr toplevel, bool decorated)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

decorated bool

Transfer ownership: None Nullable: False

SetDeletable(IntPtr, bool)

Calls native method gdk_toplevel_set_deletable.

public static extern void SetDeletable(IntPtr toplevel, bool deletable)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

deletable bool

Transfer ownership: None Nullable: False

SetIconList(IntPtr, ListHandle)

Calls native method gdk_toplevel_set_icon_list.

public static extern void SetIconList(IntPtr toplevel, ListHandle surfaces)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

surfaces ListHandle

Transfer ownership: None Nullable: False

SetModal(IntPtr, bool)

Calls native method gdk_toplevel_set_modal.

public static extern void SetModal(IntPtr toplevel, bool modal)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

modal bool

Transfer ownership: None Nullable: False

SetStartupId(IntPtr, NonNullableUtf8StringHandle)

Calls native method gdk_toplevel_set_startup_id.

public static extern void SetStartupId(IntPtr toplevel, NonNullableUtf8StringHandle startupId)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

startupId NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetTitle(IntPtr, NonNullableUtf8StringHandle)

Calls native method gdk_toplevel_set_title.

public static extern void SetTitle(IntPtr toplevel, NonNullableUtf8StringHandle title)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

title NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

SetTransientFor(IntPtr, IntPtr)

Calls native method gdk_toplevel_set_transient_for.

public static extern void SetTransientFor(IntPtr toplevel, IntPtr parent)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

parent IntPtr

Transfer ownership: None Nullable: False

ShowWindowMenu(IntPtr, IntPtr)

Calls native method gdk_toplevel_show_window_menu.

public static extern bool ShowWindowMenu(IntPtr toplevel, IntPtr @event)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

event IntPtr

Returns

bool

Transfer ownership: None Nullable: False

SupportsEdgeConstraints(IntPtr)

Calls native method gdk_toplevel_supports_edge_constraints.

public static extern bool SupportsEdgeConstraints(IntPtr toplevel)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

TitlebarGesture(IntPtr, TitlebarGesture)

Calls native method gdk_toplevel_titlebar_gesture. Version: 4.4

[Version("4.4")]
public static extern bool TitlebarGesture(IntPtr toplevel, TitlebarGesture gesture)

Parameters

toplevel IntPtr

Transfer ownership: None Nullable: False

gesture TitlebarGesture

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False