ContainerClassProtocol
public protocol ContainerClassProtocol
Base class for containers.
The ContainerClassProtocol protocol exposes the methods and properties of an underlying GtkContainerClass 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 ContainerClass.
Alternatively, use ContainerClassRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkContainerClassinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GtkContainerClassinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkContainerClassinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GtkContainerClass>! { get } -
Required Initialiser for types conforming to
ContainerClassProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
findChildProperty(propertyName:Extension method) Finds a child property of a container class by name.
Declaration
Swift
@inlinable func findChildProperty(propertyName: UnsafePointer<gchar>!) -> GLibObject.ParamSpecRef! -
handleBorderWidth()Extension methodModifies a subclass of
GtkContainerClassto automatically add and remove the border-width setting on GtkContainer. This allows the subclass to ignore the border width in its size request and allocate methods. The intent is for a subclass to invoke this in its class_init function.gtk_container_class_handle_border_width()is necessary because it would break API too badly to make this behavior the default. So subclasses must “opt in” to the parent class handling border_width for them.Declaration
Swift
@inlinable func handleBorderWidth() -
installChildProperties(nPspecs:Extension methodpspecs: ) Installs child properties on a container class.
Declaration
Swift
@inlinable func installChildProperties(nPspecs: Int, pspecs: UnsafeMutablePointer<UnsafeMutablePointer<GParamSpec>?>!) -
installChildProperty(propertyID:Extension methodpspec: ) Installs a child property on a container class.
Declaration
Swift
@inlinable func installChildProperty<ParamSpecT>(propertyID: Int, pspec: ParamSpecT) where ParamSpecT : ParamSpecProtocol -
listChildProperties(nProperties:Extension method) Returns all child properties of a container class.
Declaration
Swift
@inlinable func listChildProperties(nProperties: UnsafeMutablePointer<guint>!) -> UnsafeMutablePointer<UnsafeMutablePointer<GParamSpec>?>! -
parentClassExtension methodThe parent class.
Declaration
Swift
@inlinable var parentClass: GtkWidgetClass { get }
View on GitHub
Install in Dash
ContainerClassProtocol Protocol Reference