Class Layout
- Namespace
- Adw
- Assembly
- Adw-1.dll
public sealed class Layout : Object, Buildable, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Layout
- Implements
- Inherited Members
Constructors
Layout(LayoutHandle)
protected Layout(LayoutHandle handle)
Parameters
handleLayoutHandle
Layout(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 Layout(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Layout(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Layout(CreationData data)
Parameters
dataCreationData
Fields
ContentPropertyDefinition
public static readonly Property<Widget?, Layout> ContentPropertyDefinition
Field Value
NamePropertyDefinition
public static readonly Property<string?, Layout> NamePropertyDefinition
Field Value
Properties
Content
public Widget? Content { get; }
Property Value
Name
public string? Name { get; set; }
Property Value
Methods
GetBuildableId()
public string? GetBuildableId()
Returns
GetContent()
[Version("1.6")]
public Widget GetContent()
Returns
GetGType()
public static Type GetGType()
Returns
GetName()
[Version("1.6")]
public string? GetName()
Returns
New(Widget)
[Version("1.6")]
public static Layout New(Widget content)
Parameters
contentWidget
Returns
NewFromPointer(nint, bool)
Creates a new managed Layout instance for a given pointer.
public static Layout NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Layout and sets the properties specified by the construct arguments.
public static Layout NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetName(string?)
[Version("1.6")]
public void SetName(string? name)
Parameters
namestring