CenterLayoutProtocol

public protocol CenterLayoutProtocol : LayoutManagerProtocol

GtkCenterLayout is a layout manager that manages up to three children.

The start widget is allocated at the start of the layout (left in left-to-right locales and right in right-to-left ones), and the end widget at the end.

The center widget is centered regarding the full width of the layout’s.

The CenterLayoutProtocol protocol exposes the methods and properties of an underlying GtkCenterLayout 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 CenterLayout. Alternatively, use CenterLayoutRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying GtkCenterLayout instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkCenterLayout instance.

    Default Implementation

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

    Declaration

    Swift

    var center_layout_ptr: UnsafeMutablePointer<GtkCenterLayout>! { get }
  • Required Initialiser for types conforming to CenterLayoutProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

CenterLayout Class: CenterLayoutProtocol extension (methods and fields)

  • getBaselinePosition() Extension method

    Returns the baseline position of the layout.

    Declaration

    Swift

    @inlinable
    func getBaselinePosition() -> GtkBaselinePosition
  • getCenterWidget() Extension method

    Returns the center widget of the layout.

    Declaration

    Swift

    @inlinable
    func getCenterWidget() -> WidgetRef!
  • getEndWidget() Extension method

    Returns the end widget of the layout.

    Declaration

    Swift

    @inlinable
    func getEndWidget() -> WidgetRef!
  • getOrientation() Extension method

    Gets the current orienration of the layout manager.

    Declaration

    Swift

    @inlinable
    func getOrientation() -> GtkOrientation
  • getStartWidget() Extension method

    Returns the start widget fo the layout.

    Declaration

    Swift

    @inlinable
    func getStartWidget() -> WidgetRef!
  • set(baselinePosition:) Extension method

    Sets the new baseline position of self

    Declaration

    Swift

    @inlinable
    func set(baselinePosition: GtkBaselinePosition)
  • setCenter(widget:) Extension method

    Sets the new center widget of self.

    To remove the existing center widget, pass nil.

    Declaration

    Swift

    @inlinable
    func setCenter(widget: WidgetRef? = nil)
  • setCenter(widget:) Extension method

    Sets the new center widget of self.

    To remove the existing center widget, pass nil.

    Declaration

    Swift

    @inlinable
    func setCenter<WidgetT>(widget: WidgetT?) where WidgetT : WidgetProtocol
  • setEnd(widget:) Extension method

    Sets the new end widget of self.

    To remove the existing center widget, pass nil.

    Declaration

    Swift

    @inlinable
    func setEnd(widget: WidgetRef? = nil)
  • setEnd(widget:) Extension method

    Sets the new end widget of self.

    To remove the existing center widget, pass nil.

    Declaration

    Swift

    @inlinable
    func setEnd<WidgetT>(widget: WidgetT?) where WidgetT : WidgetProtocol
  • set(orientation:) Extension method

    Sets the orientation of self.

    Declaration

    Swift

    @inlinable
    func set(orientation: GtkOrientation)
  • setStart(widget:) Extension method

    Sets the new start widget of self.

    To remove the existing start widget, pass nil.

    Declaration

    Swift

    @inlinable
    func setStart(widget: WidgetRef? = nil)
  • setStart(widget:) Extension method

    Sets the new start widget of self.

    To remove the existing start widget, pass nil.

    Declaration

    Swift

    @inlinable
    func setStart<WidgetT>(widget: WidgetT?) where WidgetT : WidgetProtocol
  • baselinePosition Extension method

    Returns the baseline position of the layout.

    Declaration

    Swift

    @inlinable
    var baselinePosition: GtkBaselinePosition { get nonmutating set }
  • centerWidget Extension method

    Returns the center widget of the layout.

    Declaration

    Swift

    @inlinable
    var centerWidget: WidgetRef! { get nonmutating set }
  • endWidget Extension method

    Returns the end widget of the layout.

    Declaration

    Swift

    @inlinable
    var endWidget: WidgetRef! { get nonmutating set }
  • orientation Extension method

    Gets the current orienration of the layout manager.

    Declaration

    Swift

    @inlinable
    var orientation: GtkOrientation { get nonmutating set }
  • startWidget Extension method

    Returns the start widget fo the layout.

    Declaration

    Swift

    @inlinable
    var startWidget: WidgetRef! { get nonmutating set }