Table of Contents

Class Builder

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class Builder : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Builder
Implements
Inherited Members

Constructors

Builder(bool, params ConstructArgument[])

protected Builder(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Builder(IntPtr, bool)

protected Builder(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Builder(string)

public Builder(string embeddedTemplateName)

Parameters

embeddedTemplateName string

Fields

CurrentObjectPropertyDefinition

public static readonly Property<Object?, Builder> CurrentObjectPropertyDefinition

Field Value

Property<Object, Builder>

ScopePropertyDefinition

public static readonly Property<BuilderScope, Builder> ScopePropertyDefinition

Field Value

Property<BuilderScope, Builder>

TranslationDomainPropertyDefinition

public static readonly Property<string?, Builder> TranslationDomainPropertyDefinition

Field Value

Property<string, Builder>

Properties

CurrentObject

public Object? CurrentObject { get; set; }

Property Value

Object

Scope

public BuilderScope Scope { get; set; }

Property Value

BuilderScope

TranslationDomain

public string? TranslationDomain { get; set; }

Property Value

string

Methods

AddFromFile(string)

public bool AddFromFile(string filename)

Parameters

filename string

Returns

bool

AddFromResource(string)

public bool AddFromResource(string resourcePath)

Parameters

resourcePath string

Returns

bool

AddFromString(string, long)

public bool AddFromString(string buffer, long length)

Parameters

buffer string
length long

Returns

bool

AddObjectsFromFile(string, string[])

public bool AddObjectsFromFile(string filename, string[] objectIds)

Parameters

filename string
objectIds string[]

Returns

bool

AddObjectsFromResource(string, string[])

public bool AddObjectsFromResource(string resourcePath, string[] objectIds)

Parameters

resourcePath string
objectIds string[]

Returns

bool

AddObjectsFromString(string, long, string[])

public bool AddObjectsFromString(string buffer, long length, string[] objectIds)

Parameters

buffer string
length long
objectIds string[]

Returns

bool

Connect(Widget)

public void Connect(Widget connector)

Parameters

connector Widget

CreateClosure(string, BuilderClosureFlags, Object?)

public Closure? CreateClosure(string functionName, BuilderClosureFlags flags, Object? @object)

Parameters

functionName string
flags BuilderClosureFlags
object Object

Returns

Closure

ExposeObject(string, Object)

public void ExposeObject(string name, Object @object)

Parameters

name string
object Object

ExtendWithTemplate(Object, Type, string, long)

public bool ExtendWithTemplate(Object @object, Type templateType, string buffer, long length)

Parameters

object Object
templateType Type
buffer string
length long

Returns

bool

GetCurrentObject()

public Object? GetCurrentObject()

Returns

Object

GetGType()

public static Type GetGType()

Returns

Type

GetObject(string)

public Object? GetObject(string name)

Parameters

name string

Returns

Object

GetPointer(string)

public IntPtr GetPointer(string name)

Parameters

name string

Returns

IntPtr

GetScope()

public BuilderScope GetScope()

Returns

BuilderScope

GetTranslationDomain()

public string? GetTranslationDomain()

Returns

string

GetTypeFromName(string)

public Type GetTypeFromName(string typeName)

Parameters

typeName string

Returns

Type

New()

public static Builder New()

Returns

Builder

NewFromFile(string)

public static Builder NewFromFile(string filename)

Parameters

filename string

Returns

Builder

NewFromResource(string)

public static Builder NewFromResource(string resourcePath)

Parameters

resourcePath string

Returns

Builder

NewFromString(string, long)

public static Builder NewFromString(string @string, long length)

Parameters

string string
length long

Returns

Builder

SetCurrentObject(Object?)

public void SetCurrentObject(Object? currentObject)

Parameters

currentObject Object

SetScope(BuilderScope?)

public void SetScope(BuilderScope? scope)

Parameters

scope BuilderScope

SetTranslationDomain(string?)

public void SetTranslationDomain(string? domain)

Parameters

domain string