Class AspectFrame
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class AspectFrame : Widget, IObject, INotifyPropertyChanged, IDisposable, Accessible, Buildable, ConstraintTarget, IHandle, GTypeProvider
- Inheritance
-
AspectFrame
- Implements
-
- Inherited Members
-
Constructors
AspectFrame()
AspectFrame(params ConstructArgument[])
protected AspectFrame(params ConstructArgument[] constructArguments)
Parameters
constructArguments
ConstructArgument[]
AspectFrame(IntPtr, bool)
protected AspectFrame(IntPtr ptr, bool ownedRef)
Parameters
ptr
IntPtr
ownedRef
bool
Fields
ChildPropertyDefinition
public static readonly Property<Widget?, AspectFrame> ChildPropertyDefinition
Field Value
- Property<Widget, AspectFrame>
ObeyChildPropertyDefinition
public static readonly Property<bool, AspectFrame> ObeyChildPropertyDefinition
Field Value
- Property<bool, AspectFrame>
RatioPropertyDefinition
public static readonly Property<float, AspectFrame> RatioPropertyDefinition
Field Value
- Property<float, AspectFrame>
XalignPropertyDefinition
public static readonly Property<float, AspectFrame> XalignPropertyDefinition
Field Value
- Property<float, AspectFrame>
YalignPropertyDefinition
public static readonly Property<float, AspectFrame> YalignPropertyDefinition
Field Value
- Property<float, AspectFrame>
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
- AccessibleRole
Child
public Widget? Child { get; set; }
Property Value
- Widget
ObeyChild
public bool ObeyChild { get; set; }
Property Value
- bool
Ratio
public float Ratio { get; set; }
Property Value
- float
Xalign
public float Xalign { get; set; }
Property Value
- float
Yalign
public float Yalign { get; set; }
Property Value
- float
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
message
string
priority
AccessibleAnnouncementPriority
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
- Accessible
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
- AccessibleRole
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
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
- Accessible
GetGType()
public static Type GetGType()
Returns
- Type
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
- Accessible
GetObeyChild()
public bool GetObeyChild()
Returns
- bool
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
state
AccessiblePlatformState
Returns
- bool
GetRatio()
Returns
- float
GetXalign()
Returns
- float
GetYalign()
Returns
- float
New(float, float, float, bool)
public static AspectFrame New(float xalign, float yalign, float ratio, bool obeyChild)
Parameters
xalign
float
yalign
float
ratio
float
obeyChild
bool
Returns
- AspectFrame
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
public void SetChild(Widget? child)
Parameters
child
Widget
SetObeyChild(bool)
public void SetObeyChild(bool obeyChild)
Parameters
obeyChild
bool
SetRatio(float)
public void SetRatio(float ratio)
Parameters
ratio
float
SetXalign(float)
public void SetXalign(float xalign)
Parameters
xalign
float
SetYalign(float)
public void SetYalign(float yalign)
Parameters
yalign
float
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSibling
Accessible