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.

  • ptr

    Untyped pointer to the underlying GtkContainerClass instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • _ptr Default implementation

    Typed pointer to the underlying GtkContainerClass instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GtkContainerClass instance.

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GtkContainerClass>! { get }
  • Required Initialiser for types conforming to ContainerClassProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

ContainerClass Record: ContainerClassProtocol extension (methods and fields)

  • Finds a child property of a container class by name.

    Declaration

    Swift

    @inlinable
    func findChildProperty(propertyName: UnsafePointer<gchar>!) -> GLibObject.ParamSpecRef!
  • handleBorderWidth() Extension method

    Modifies a subclass of GtkContainerClass to 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()
  • Installs child properties on a container class.

    Declaration

    Swift

    @inlinable
    func installChildProperties(nPspecs: Int, pspecs: UnsafeMutablePointer<UnsafeMutablePointer<GParamSpec>?>!)
  • Installs a child property on a container class.

    Declaration

    Swift

    @inlinable
    func installChildProperty<ParamSpecT>(propertyID: Int, pspec: ParamSpecT) where ParamSpecT : ParamSpecProtocol
  • Returns all child properties of a container class.

    Declaration

    Swift

    @inlinable
    func listChildProperties(nProperties: UnsafeMutablePointer<guint>!) -> UnsafeMutablePointer<UnsafeMutablePointer<GParamSpec>?>!
  • parentClass Extension method

    The parent class.

    Declaration

    Swift

    @inlinable
    var parentClass: GtkWidgetClass { get }