BuilderScopeProtocol
public protocol BuilderScopeProtocol
GtkBuilderScope
is an interface to provide language binding support
to GtkBuilder
.
The goal of GtkBuilderScope
is to look up programming-language-specific
values for strings that are given in a GtkBuilder
UI file.
The primary intended audience is bindings that want to provide deeper
integration of GtkBuilder
into the language.
A GtkBuilderScope
instance may be used with multiple GtkBuilder
objects,
even at once.
By default, GTK will use its own implementation of GtkBuilderScope
for the C language which can be created via [ctorGtk.BuilderCScope.new
].
The BuilderScopeProtocol
protocol exposes the methods and properties of an underlying GtkBuilderScope
instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see BuilderScope
.
Alternatively, use BuilderScopeRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkBuilderScope
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
builder_scope_ptr
Default implementationTyped pointer to the underlying
GtkBuilderScope
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkBuilderScope
instance.Declaration
Swift
var builder_scope_ptr: UnsafeMutablePointer<GtkBuilderScope>! { get }
-
Required Initialiser for types conforming to
BuilderScopeProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)