Class Builder
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class Builder : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Builder
- Implements
-
- Inherited Members
-
Constructors
Builder(params ConstructArgument[])
public Builder(params ConstructArgument[] constructArguments)
Parameters
constructArguments ConstructArgument[]
Builder(BuilderHandle)
public Builder(BuilderHandle handle)
Parameters
handle BuilderHandle
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, nint)
public bool AddFromString(string buffer, nint length)
Parameters
buffer string
length nint
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, nint, string[])
public bool AddObjectsFromString(string buffer, nint length, string[] objectIds)
Parameters
buffer string
length nint
objectIds string[]
Returns
- bool
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, nint)
public bool ExtendWithTemplate(Object @object, Type templateType, string buffer, nint length)
Parameters
object Object
templateType Type
buffer string
length nint
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 nint GetPointer(string name)
Parameters
name string
Returns
- nint
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, nint)
public static Builder NewFromString(string @string, nint length)
Parameters
string string
length nint
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
ValueFromString(ParamSpec, string, out Value)
public bool ValueFromString(ParamSpec pspec, string @string, out Value value)
Parameters
pspec ParamSpec
string string
value Value
Returns
- bool
ValueFromStringType(Type, string, out Value)
public bool ValueFromStringType(Type type, string @string, out Value value)
Parameters
type Type
string string
value Value
Returns
- bool