Class Window
- Namespace
- Adw
- Assembly
- Adw-1.dll
public class Window : Window, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Window
- Implements
- Derived
- Inherited Members
Constructors
Window(WindowHandle)
protected Window(WindowHandle handle)
Parameters
handleWindowHandle
Window(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Window(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Window(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Window(CreationData data)
Parameters
dataCreationData
Fields
AdaptivePreviewPropertyDefinition
public static readonly Property<bool, Window> AdaptivePreviewPropertyDefinition
Field Value
ContentPropertyDefinition
public static readonly Property<Widget?, Window> ContentPropertyDefinition
Field Value
CurrentBreakpointPropertyDefinition
public static readonly Property<Breakpoint?, Window> CurrentBreakpointPropertyDefinition
Field Value
DialogsPropertyDefinition
public static readonly Property<ListModel, Window> DialogsPropertyDefinition
Field Value
VisibleDialogPropertyDefinition
public static readonly Property<Dialog?, Window> VisibleDialogPropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
AdaptivePreview
public bool AdaptivePreview { get; set; }
Property Value
Content
public Widget? Content { get; set; }
Property Value
CurrentBreakpoint
public Breakpoint? CurrentBreakpoint { get; }
Property Value
Dialogs
public ListModel Dialogs { get; }
Property Value
VisibleDialog
public Dialog? VisibleDialog { get; }
Property Value
Methods
AddBreakpoint(Breakpoint)
[Version("1.4")]
public void AddBreakpoint(Breakpoint breakpoint)
Parameters
breakpointBreakpoint
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
messagestringpriorityAccessibleAnnouncementPriority
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetAdaptivePreview()
[Version("1.7")]
public bool GetAdaptivePreview()
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
GetContent()
public Widget? GetContent()
Returns
GetCurrentBreakpoint()
[Version("1.4")]
public Breakpoint? GetCurrentBreakpoint()
Returns
GetDialogs()
[Version("1.5")]
public ListModel GetDialogs()
Returns
GetDisplay()
public Display GetDisplay()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState
Returns
GetRenderer()
public Renderer? GetRenderer()
Returns
GetSurface()
public Surface? GetSurface()
Returns
GetSurfaceTransform(out double, out double)
public void GetSurfaceTransform(out double x, out double y)
Parameters
GetVisibleDialog()
[Version("1.5")]
public Dialog? GetVisibleDialog()
Returns
New()
public static Window New()
Returns
NewFromPointer(nint, bool)
Creates a new managed Window instance for a given pointer.
public static Window NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Window and sets the properties specified by the construct arguments.
public static Window NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Realize()
public void Realize()
ResetProperty(AccessibleProperty)
public void ResetProperty(AccessibleProperty property)
Parameters
propertyAccessibleProperty
ResetRelation(AccessibleRelation)
public void ResetRelation(AccessibleRelation relation)
Parameters
relationAccessibleRelation
ResetState(AccessibleState)
public void ResetState(AccessibleState state)
Parameters
stateAccessibleState
SetAccessibleParent(Accessible?, Accessible?)
[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)
Parameters
parentAccessiblenextSiblingAccessible
SetAdaptivePreview(bool)
[Version("1.7")]
public void SetAdaptivePreview(bool adaptivePreview)
Parameters
adaptivePreviewbool
SetContent(Widget?)
public void SetContent(Widget? content)
Parameters
contentWidget
Unrealize()
public void Unrealize()
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSiblingAccessible
UpdatePlatformState(AccessiblePlatformState)
[Version("4.18")]
public void UpdatePlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState