Class Frame
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class Frame : Widget, Accessible, Buildable, ConstraintTarget, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Frame
- Implements
- Inherited Members
Constructors
Frame(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 Frame(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Frame(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Frame(CreationData data)
Parameters
dataCreationData
Frame(FrameHandle)
protected Frame(FrameHandle handle)
Parameters
handleFrameHandle
Fields
ChildPropertyDefinition
public static readonly Property<Widget?, Frame> ChildPropertyDefinition
Field Value
LabelPropertyDefinition
public static readonly Property<string?, Frame> LabelPropertyDefinition
Field Value
LabelWidgetPropertyDefinition
public static readonly Property<Widget?, Frame> LabelWidgetPropertyDefinition
Field Value
LabelXalignPropertyDefinition
public static readonly Property<float, Frame> LabelXalignPropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
Child
public Widget? Child { get; set; }
Property Value
Label
public string? Label { get; set; }
Property Value
LabelWidget
public Widget? LabelWidget { get; set; }
Property Value
LabelXalign
public float LabelXalign { get; set; }
Property Value
Methods
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
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
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetLabel()
public string? GetLabel()
Returns
GetLabelAlign()
public float GetLabelAlign()
Returns
GetLabelWidget()
public Widget? GetLabelWidget()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState
Returns
New(string?)
public static Frame New(string? label)
Parameters
labelstring
Returns
NewFromPointer(nint, bool)
Creates a new managed Frame instance for a given pointer.
public static Frame NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Frame and sets the properties specified by the construct arguments.
public static Frame NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
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
SetChild(Widget?)
public void SetChild(Widget? child)
Parameters
childWidget
SetLabel(string?)
public void SetLabel(string? label)
Parameters
labelstring
SetLabelAlign(float)
public void SetLabelAlign(float xalign)
Parameters
xalignfloat
SetLabelWidget(Widget?)
public void SetLabelWidget(Widget? labelWidget)
Parameters
labelWidgetWidget
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSiblingAccessible
UpdatePlatformState(AccessiblePlatformState)
[Version("4.18")]
public void UpdatePlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState