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
Fields
ActivateDefaultSignal
Signal Descriptor for OnActivateDefault.
public static readonly Signal<Window> ActivateDefaultSignal
Field Value
ActivateFocusSignal
Signal Descriptor for OnActivateFocus.
public static readonly Signal<Window> ActivateFocusSignal
Field Value
ApplicationPropertyDefinition
public static readonly Property<Application?, Window> ApplicationPropertyDefinition
Field Value
ChildPropertyDefinition
public static readonly Property<Widget?, Window> ChildPropertyDefinition
Field Value
CloseRequestSignal
Signal Descriptor for OnCloseRequest.
public static readonly ReturningSignal<Window, bool> CloseRequestSignal
Field Value
DecoratedPropertyDefinition
public static readonly Property<bool, Window> DecoratedPropertyDefinition
Field Value
DefaultHeightPropertyDefinition
public static readonly Property<int, Window> DefaultHeightPropertyDefinition
Field Value
DefaultWidgetPropertyDefinition
public static readonly Property<Widget?, Window> DefaultWidgetPropertyDefinition
Field Value
DefaultWidthPropertyDefinition
public static readonly Property<int, Window> DefaultWidthPropertyDefinition
Field Value
DeletablePropertyDefinition
public static readonly Property<bool, Window> DeletablePropertyDefinition
Field Value
DestroyWithParentPropertyDefinition
public static readonly Property<bool, Window> DestroyWithParentPropertyDefinition
Field Value
DisplayPropertyDefinition
public static readonly Property<Display?, Window> DisplayPropertyDefinition
Field Value
EnableDebuggingSignal
Signal Descriptor for OnEnableDebugging.
public static readonly ReturningSignal<Window, Window.EnableDebuggingSignalArgs, bool> EnableDebuggingSignal
Field Value
FocusVisiblePropertyDefinition
public static readonly Property<bool, Window> FocusVisiblePropertyDefinition
Field Value
FocusWidgetPropertyDefinition
public static readonly Property<Widget?, Window> FocusWidgetPropertyDefinition
Field Value
FullscreenedPropertyDefinition
public static readonly Property<bool, Window> FullscreenedPropertyDefinition
Field Value
HandleMenubarAccelPropertyDefinition
public static readonly Property<bool, Window> HandleMenubarAccelPropertyDefinition
Field Value
HideOnClosePropertyDefinition
public static readonly Property<bool, Window> HideOnClosePropertyDefinition
Field Value
IconNamePropertyDefinition
public static readonly Property<string?, Window> IconNamePropertyDefinition
Field Value
IsActivePropertyDefinition
public static readonly Property<bool, Window> IsActivePropertyDefinition
Field Value
KeysChangedSignal
Signal Descriptor for OnKeysChanged.
public static readonly Signal<Window> KeysChangedSignal
Field Value
MaximizedPropertyDefinition
public static readonly Property<bool, Window> MaximizedPropertyDefinition
Field Value
MnemonicsVisiblePropertyDefinition
public static readonly Property<bool, Window> MnemonicsVisiblePropertyDefinition
Field Value
ModalPropertyDefinition
public static readonly Property<bool, Window> ModalPropertyDefinition
Field Value
ResizablePropertyDefinition
public static readonly Property<bool, Window> ResizablePropertyDefinition
Field Value
StartupIdPropertyDefinition
public static readonly Property<string?, Window> StartupIdPropertyDefinition
Field Value
SuspendedPropertyDefinition
public static readonly Property<bool, Window> SuspendedPropertyDefinition
Field Value
TitlePropertyDefinition
public static readonly Property<string?, Window> TitlePropertyDefinition
Field Value
TitlebarPropertyDefinition
public static readonly Property<Widget?, Window> TitlebarPropertyDefinition
Field Value
TransientForPropertyDefinition
public static readonly Property<Window?, Window> TransientForPropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
Application
public Application? Application { get; set; }
Property Value
Child
public Widget? Child { get; set; }
Property Value
Decorated
public bool Decorated { get; set; }
Property Value
DefaultHeight
public int DefaultHeight { get; set; }
Property Value
DefaultWidget
public Widget? DefaultWidget { get; set; }
Property Value
DefaultWidth
public int DefaultWidth { get; set; }
Property Value
Deletable
public bool Deletable { get; set; }
Property Value
DestroyWithParent
public bool DestroyWithParent { get; set; }
Property Value
Display
public Display? Display { get; set; }
Property Value
FocusVisible
public bool FocusVisible { get; set; }
Property Value
FocusWidget
public Widget? FocusWidget { get; set; }
Property Value
Fullscreened
public bool Fullscreened { get; set; }
Property Value
HandleMenubarAccel
public bool HandleMenubarAccel { get; set; }
Property Value
HideOnClose
public bool HideOnClose { get; set; }
Property Value
IconName
public string? IconName { get; set; }
Property Value
IsActive
public bool IsActive { get; }
Property Value
Maximized
public bool Maximized { get; set; }
Property Value
MnemonicsVisible
public bool MnemonicsVisible { get; set; }
Property Value
Modal
public bool Modal { get; set; }
Property Value
Resizable
public bool Resizable { get; set; }
Property Value
StartupId
public string? StartupId { set; }
Property Value
Suspended
public bool Suspended { get; }
Property Value
Title
public string? Title { get; set; }
Property Value
Titlebar
public Widget? Titlebar { get; set; }
Property Value
TransientFor
public Window? TransientFor { get; set; }
Property Value
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
message
stringpriority
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
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetApplication()
public Application? GetApplication()
Returns
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
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
Returns
GetBuildableId()
public string? GetBuildableId()
Returns
GetChild()
public Widget? GetChild()
Returns
GetDecorated()
public bool GetDecorated()
Returns
GetDefaultIconName()
public static string? GetDefaultIconName()
Returns
GetDefaultSize(out int, out int)
public void GetDefaultSize(out int width, out int height)
Parameters
GetDefaultWidget()
public Widget? GetDefaultWidget()
Returns
GetDeletable()
public bool GetDeletable()
Returns
GetDestroyWithParent()
public bool GetDestroyWithParent()
Returns
GetDisplay()
public Display GetDisplay()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetFocus()
public Widget? GetFocus()
Returns
GetFocusVisible()
public bool GetFocusVisible()
Returns
GetGType()
public static Type GetGType()
Returns
GetGroup()
public WindowGroup GetGroup()
Returns
GetHandleMenubarAccel()
[Version("4.2")]
public bool GetHandleMenubarAccel()
Returns
GetHideOnClose()
public bool GetHideOnClose()
Returns
GetIconName()
public string? GetIconName()
Returns
GetIsActive()
public bool GetIsActive()
Returns
GetMnemonicsVisible()
public bool GetMnemonicsVisible()
Returns
GetModal()
public bool GetModal()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
GetRenderer()
public Renderer? GetRenderer()
Returns
GetResizable()
public bool GetResizable()
Returns
GetSurface()
public Surface? GetSurface()
Returns
GetSurfaceTransform(out double, out double)
public void GetSurfaceTransform(out double x, out double y)
Parameters
GetTitle()
public string? GetTitle()
Returns
GetTitlebar()
public Widget? GetTitlebar()
Returns
GetToplevels()
public static ListModel GetToplevels()
Returns
GetTransientFor()
public Window? GetTransientFor()
Returns
HasGroup()
public bool HasGroup()
Returns
IsFullscreen()
public bool IsFullscreen()
Returns
IsMaximized()
public bool IsMaximized()
Returns
IsSuspended()
[Version("4.12")]
public bool IsSuspended()
Returns
Maximize()
public void Maximize()
Minimize()
public void Minimize()
New()
public static Window New()
Returns
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
AccessiblenextSibling
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
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
OnActivateFocus
public event SignalHandler<Window> OnActivateFocus
Event Type
OnCloseRequest
public event ReturningSignalHandler<Window, bool> OnCloseRequest
Event Type
OnEnableDebugging
public event ReturningSignalHandler<Window, Window.EnableDebuggingSignalArgs, bool> OnEnableDebugging
Event Type
OnKeysChanged
public event SignalHandler<Window> OnKeysChanged