Table of Contents

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

handle LayoutHandle

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

constructArguments ConstructArgument[]

Layout(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Layout(CreationData data)

Parameters

data CreationData

Fields

ContentPropertyDefinition

public static readonly Property<Widget?, Layout> ContentPropertyDefinition

Field Value

Property<Widget, Layout>

NamePropertyDefinition

public static readonly Property<string?, Layout> NamePropertyDefinition

Field Value

Property<string, Layout>

Properties

Content

public Widget? Content { get; }

Property Value

Widget

Name

public string? Name { get; set; }

Property Value

string

Methods

GetBuildableId()

public string? GetBuildableId()

Returns

string

GetContent()

[Version("1.6")]
public Widget GetContent()

Returns

Widget

GetGType()

public static Type GetGType()

Returns

Type

GetName()

[Version("1.6")]
public string? GetName()

Returns

string

New(Widget)

[Version("1.6")]
public static Layout New(Widget content)

Parameters

content Widget

Returns

Layout

NewFromPointer(nint, bool)

Creates a new managed Layout instance for a given pointer.

public static Layout NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

Layout

NewWithProperties(ConstructArgument[])

Creates a new Layout and sets the properties specified by the construct arguments.

public static Layout NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

Layout

SetName(string?)

[Version("1.6")]
public void SetName(string? name)

Parameters

name string