Table of Contents

Class Window

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class Window : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager, IHandle, GTypeProvider
Inheritance
Window
Implements
Derived
Inherited Members

Constructors

Window()

public Window()

Window(params ConstructArgument[])

protected Window(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Window(IntPtr, bool)

protected Window(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ActivateDefaultSignal

Signal Descriptor for OnActivateDefault.

public static readonly Signal<Window> ActivateDefaultSignal

Field Value

Signal<Window>

ActivateFocusSignal

Signal Descriptor for OnActivateFocus.

public static readonly Signal<Window> ActivateFocusSignal

Field Value

Signal<Window>

ApplicationPropertyDefinition

public static readonly Property<Application?, Window> ApplicationPropertyDefinition

Field Value

Property<Application, Window>

ChildPropertyDefinition

public static readonly Property<Widget?, Window> ChildPropertyDefinition

Field Value

Property<Widget, Window>

CloseRequestSignal

Signal Descriptor for OnCloseRequest.

public static readonly ReturningSignal<Window, bool> CloseRequestSignal

Field Value

ReturningSignal<Window, bool>

DecoratedPropertyDefinition

public static readonly Property<bool, Window> DecoratedPropertyDefinition

Field Value

Property<bool, Window>

DefaultHeightPropertyDefinition

public static readonly Property<int, Window> DefaultHeightPropertyDefinition

Field Value

Property<int, Window>

DefaultWidgetPropertyDefinition

public static readonly Property<Widget?, Window> DefaultWidgetPropertyDefinition

Field Value

Property<Widget, Window>

DefaultWidthPropertyDefinition

public static readonly Property<int, Window> DefaultWidthPropertyDefinition

Field Value

Property<int, Window>

DeletablePropertyDefinition

public static readonly Property<bool, Window> DeletablePropertyDefinition

Field Value

Property<bool, Window>

DestroyWithParentPropertyDefinition

public static readonly Property<bool, Window> DestroyWithParentPropertyDefinition

Field Value

Property<bool, Window>

DisplayPropertyDefinition

public static readonly Property<Display?, Window> DisplayPropertyDefinition

Field Value

Property<Display, Window>

EnableDebuggingSignal

Signal Descriptor for OnEnableDebugging.

public static readonly ReturningSignal<Window, Window.EnableDebuggingSignalArgs, bool> EnableDebuggingSignal

Field Value

ReturningSignal<Window, Window.EnableDebuggingSignalArgs, bool>

FocusVisiblePropertyDefinition

public static readonly Property<bool, Window> FocusVisiblePropertyDefinition

Field Value

Property<bool, Window>

FocusWidgetPropertyDefinition

public static readonly Property<Widget?, Window> FocusWidgetPropertyDefinition

Field Value

Property<Widget, Window>

FullscreenedPropertyDefinition

public static readonly Property<bool, Window> FullscreenedPropertyDefinition

Field Value

Property<bool, Window>

HandleMenubarAccelPropertyDefinition

public static readonly Property<bool, Window> HandleMenubarAccelPropertyDefinition

Field Value

Property<bool, Window>

HideOnClosePropertyDefinition

public static readonly Property<bool, Window> HideOnClosePropertyDefinition

Field Value

Property<bool, Window>

IconNamePropertyDefinition

public static readonly Property<string?, Window> IconNamePropertyDefinition

Field Value

Property<string, Window>

IsActivePropertyDefinition

public static readonly Property<bool, Window> IsActivePropertyDefinition

Field Value

Property<bool, Window>

KeysChangedSignal

Signal Descriptor for OnKeysChanged.

public static readonly Signal<Window> KeysChangedSignal

Field Value

Signal<Window>

MaximizedPropertyDefinition

public static readonly Property<bool, Window> MaximizedPropertyDefinition

Field Value

Property<bool, Window>

MnemonicsVisiblePropertyDefinition

public static readonly Property<bool, Window> MnemonicsVisiblePropertyDefinition

Field Value

Property<bool, Window>

ModalPropertyDefinition

public static readonly Property<bool, Window> ModalPropertyDefinition

Field Value

Property<bool, Window>

ResizablePropertyDefinition

public static readonly Property<bool, Window> ResizablePropertyDefinition

Field Value

Property<bool, Window>

StartupIdPropertyDefinition

public static readonly Property<string?, Window> StartupIdPropertyDefinition

Field Value

Property<string, Window>

SuspendedPropertyDefinition

public static readonly Property<bool, Window> SuspendedPropertyDefinition

Field Value

Property<bool, Window>

TitlePropertyDefinition

public static readonly Property<string?, Window> TitlePropertyDefinition

Field Value

Property<string, Window>

TitlebarPropertyDefinition

public static readonly Property<Widget?, Window> TitlebarPropertyDefinition

Field Value

Property<Widget, Window>

TransientForPropertyDefinition

public static readonly Property<Window?, Window> TransientForPropertyDefinition

Field Value

Property<Window, Window>

Properties

AccessibleRole

public AccessibleRole AccessibleRole { get; set; }

Property Value

AccessibleRole

Application

public Application? Application { get; set; }

Property Value

Application

Child

public Widget? Child { get; set; }

Property Value

Widget

Decorated

public bool Decorated { get; set; }

Property Value

bool

DefaultHeight

public int DefaultHeight { get; set; }

Property Value

int

DefaultWidget

public Widget? DefaultWidget { get; set; }

Property Value

Widget

DefaultWidth

public int DefaultWidth { get; set; }

Property Value

int

Deletable

public bool Deletable { get; set; }

Property Value

bool

DestroyWithParent

public bool DestroyWithParent { get; set; }

Property Value

bool

Display

public Display? Display { get; set; }

Property Value

Display

FocusVisible

public bool FocusVisible { get; set; }

Property Value

bool

FocusWidget

public Widget? FocusWidget { get; set; }

Property Value

Widget

Fullscreened

public bool Fullscreened { get; set; }

Property Value

bool

HandleMenubarAccel

public bool HandleMenubarAccel { get; set; }

Property Value

bool

HideOnClose

public bool HideOnClose { get; set; }

Property Value

bool

IconName

public string? IconName { get; set; }

Property Value

string

IsActive

public bool IsActive { get; }

Property Value

bool

Maximized

public bool Maximized { get; set; }

Property Value

bool

MnemonicsVisible

public bool MnemonicsVisible { get; set; }

Property Value

bool

Modal

public bool Modal { get; set; }

Property Value

bool

Resizable

public bool Resizable { get; set; }

Property Value

bool

StartupId

public string? StartupId { set; }

Property Value

string

Suspended

public bool Suspended { get; }

Property Value

bool

Title

public string? Title { get; set; }

Property Value

string

Titlebar

public Widget? Titlebar { get; set; }

Property Value

Widget

TransientFor

public Window? TransientFor { get; set; }

Property Value

Window

Methods

Announce(string, AccessibleAnnouncementPriority)

[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)

Parameters

message string
priority AccessibleAnnouncementPriority

Close()

public void Close()

Destroy()

public void Destroy()

Fullscreen()

public void Fullscreen()

FullscreenOnMonitor(Monitor)

public void FullscreenOnMonitor(Monitor monitor)

Parameters

monitor Monitor

GetAccessibleParent()

[Version("4.10")]
public Accessible? GetAccessibleParent()

Returns

Accessible

GetAccessibleRole()

public AccessibleRole GetAccessibleRole()

Returns

AccessibleRole

GetApplication()

public Application? GetApplication()

Returns

Application

GetAtContext()

[Version("4.10")]
public ATContext GetAtContext()

Returns

ATContext

GetBounds(out int, out int, out int, out int)

[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)

Parameters

x int
y int
width int
height int

Returns

bool

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetChild()

public Widget? GetChild()

Returns

Widget

GetDecorated()

public bool GetDecorated()

Returns

bool

GetDefaultIconName()

public static string? GetDefaultIconName()

Returns

string

GetDefaultSize(out int, out int)

public void GetDefaultSize(out int width, out int height)

Parameters

width int
height int

GetDefaultWidget()

public Widget? GetDefaultWidget()

Returns

Widget

GetDeletable()

public bool GetDeletable()

Returns

bool

GetDestroyWithParent()

public bool GetDestroyWithParent()

Returns

bool

GetDisplay()

public Display GetDisplay()

Returns

Display

GetFirstAccessibleChild()

[Version("4.10")]
public Accessible? GetFirstAccessibleChild()

Returns

Accessible

GetFocus()

public Widget? GetFocus()

Returns

Widget

GetFocusVisible()

public bool GetFocusVisible()

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

GetGroup()

public WindowGroup GetGroup()

Returns

WindowGroup

GetHandleMenubarAccel()

[Version("4.2")]
public bool GetHandleMenubarAccel()

Returns

bool

GetHideOnClose()

public bool GetHideOnClose()

Returns

bool

GetIconName()

public string? GetIconName()

Returns

string

GetIsActive()

public bool GetIsActive()

Returns

bool

GetMnemonicsVisible()

public bool GetMnemonicsVisible()

Returns

bool

GetModal()

public bool GetModal()

Returns

bool

GetNextAccessibleSibling()

[Version("4.10")]
public Accessible? GetNextAccessibleSibling()

Returns

Accessible

GetPlatformState(AccessiblePlatformState)

[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)

Parameters

state AccessiblePlatformState

Returns

bool

GetRenderer()

public Renderer? GetRenderer()

Returns

Renderer

GetResizable()

public bool GetResizable()

Returns

bool

GetSurface()

public Surface? GetSurface()

Returns

Surface

GetSurfaceTransform(out double, out double)

public void GetSurfaceTransform(out double x, out double y)

Parameters

x double
y double

GetTitle()

public string? GetTitle()

Returns

string

GetTitlebar()

public Widget? GetTitlebar()

Returns

Widget

GetToplevels()

public static ListModel GetToplevels()

Returns

ListModel

GetTransientFor()

public Window? GetTransientFor()

Returns

Window

HasGroup()

public bool HasGroup()

Returns

bool

IsFullscreen()

public bool IsFullscreen()

Returns

bool

IsMaximized()

public bool IsMaximized()

Returns

bool

IsSuspended()

[Version("4.12")]
public bool IsSuspended()

Returns

bool

Maximize()

public void Maximize()

Minimize()

public void Minimize()

New()

public static Window New()

Returns

Window

Present()

public void Present()

PresentWithTime(uint)

public void PresentWithTime(uint timestamp)

Parameters

timestamp uint

Realize()

public void Realize()

ResetProperty(AccessibleProperty)

public void ResetProperty(AccessibleProperty property)

Parameters

property AccessibleProperty

ResetRelation(AccessibleRelation)

public void ResetRelation(AccessibleRelation relation)

Parameters

relation AccessibleRelation

ResetState(AccessibleState)

public void ResetState(AccessibleState state)

Parameters

state AccessibleState

SetAccessibleParent(Accessible?, Accessible?)

[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)

Parameters

parent Accessible
nextSibling Accessible

SetApplication(Application?)

public void SetApplication(Application? application)

Parameters

application Application

SetAutoStartupNotification(bool)

public static void SetAutoStartupNotification(bool setting)

Parameters

setting bool

SetChild(Widget?)

public void SetChild(Widget? child)

Parameters

child Widget

SetDecorated(bool)

public void SetDecorated(bool setting)

Parameters

setting bool

SetDefaultIconName(string)

public static void SetDefaultIconName(string name)

Parameters

name string

SetDefaultSize(int, int)

public void SetDefaultSize(int width, int height)

Parameters

width int
height int

SetDefaultWidget(Widget?)

public void SetDefaultWidget(Widget? defaultWidget)

Parameters

defaultWidget Widget

SetDeletable(bool)

public void SetDeletable(bool setting)

Parameters

setting bool

SetDestroyWithParent(bool)

public void SetDestroyWithParent(bool setting)

Parameters

setting bool

SetDisplay(Display)

public void SetDisplay(Display display)

Parameters

display Display

SetFocus(Widget?)

public void SetFocus(Widget? focus)

Parameters

focus Widget

SetFocusVisible(bool)

public void SetFocusVisible(bool setting)

Parameters

setting bool

SetHandleMenubarAccel(bool)

[Version("4.2")]
public void SetHandleMenubarAccel(bool handleMenubarAccel)

Parameters

handleMenubarAccel bool

SetHideOnClose(bool)

public void SetHideOnClose(bool setting)

Parameters

setting bool

SetIconName(string?)

public void SetIconName(string? name)

Parameters

name string

SetInteractiveDebugging(bool)

public static void SetInteractiveDebugging(bool enable)

Parameters

enable bool

SetMnemonicsVisible(bool)

public void SetMnemonicsVisible(bool setting)

Parameters

setting bool

SetModal(bool)

public void SetModal(bool modal)

Parameters

modal bool

SetResizable(bool)

public void SetResizable(bool resizable)

Parameters

resizable bool

SetStartupId(string)

public void SetStartupId(string startupId)

Parameters

startupId string

SetTitle(string?)

public void SetTitle(string? title)

Parameters

title string

SetTitlebar(Widget?)

public void SetTitlebar(Widget? titlebar)

Parameters

titlebar Widget

SetTransientFor(Window?)

public void SetTransientFor(Window? parent)

Parameters

parent Window

Unfullscreen()

public void Unfullscreen()

Unmaximize()

public void Unmaximize()

Unminimize()

public void Unminimize()

Unrealize()

public void Unrealize()

UpdateNextAccessibleSibling(Accessible?)

[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)

Parameters

newSibling Accessible

Events

OnActivateDefault

public event SignalHandler<Window> OnActivateDefault

Event Type

SignalHandler<Window>

OnActivateFocus

public event SignalHandler<Window> OnActivateFocus

Event Type

SignalHandler<Window>

OnCloseRequest

public event ReturningSignalHandler<Window, bool> OnCloseRequest

Event Type

ReturningSignalHandler<Window, bool>

OnEnableDebugging

public event ReturningSignalHandler<Window, Window.EnableDebuggingSignalArgs, bool> OnEnableDebugging

Event Type

ReturningSignalHandler<Window, Window.EnableDebuggingSignalArgs, bool>

OnKeysChanged

public event SignalHandler<Window> OnKeysChanged

Event Type

SignalHandler<Window>