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.
-
Untyped pointer to the underlying
GtkCenterLayoutinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
center_layout_ptrDefault implementationTyped pointer to the underlying
GtkCenterLayoutinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkCenterLayoutinstance.Declaration
Swift
var center_layout_ptr: UnsafeMutablePointer<GtkCenterLayout>! { get } -
Required Initialiser for types conforming to
CenterLayoutProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
getBaselinePosition()Extension methodReturns the baseline position of the layout.
Declaration
Swift
@inlinable func getBaselinePosition() -> GtkBaselinePosition -
getCenterWidget()Extension methodReturns the center widget of the layout.
Declaration
Swift
@inlinable func getCenterWidget() -> WidgetRef! -
getEndWidget()Extension methodReturns the end widget of the layout.
Declaration
Swift
@inlinable func getEndWidget() -> WidgetRef! -
getOrientation()Extension methodGets the current orienration of the layout manager.
Declaration
Swift
@inlinable func getOrientation() -> GtkOrientation -
getStartWidget()Extension methodReturns the start widget fo the layout.
Declaration
Swift
@inlinable func getStartWidget() -> WidgetRef! -
set(baselinePosition:Extension method) Sets the new baseline position of
selfDeclaration
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 -
baselinePositionExtension methodReturns the baseline position of the layout.
Declaration
Swift
@inlinable var baselinePosition: GtkBaselinePosition { get nonmutating set } -
centerWidgetExtension methodReturns the center widget of the layout.
Declaration
Swift
@inlinable var centerWidget: WidgetRef! { get nonmutating set } -
endWidgetExtension methodReturns the end widget of the layout.
Declaration
Swift
@inlinable var endWidget: WidgetRef! { get nonmutating set } -
orientationExtension methodGets the current orienration of the layout manager.
Declaration
Swift
@inlinable var orientation: GtkOrientation { get nonmutating set } -
startWidgetExtension methodReturns the start widget fo the layout.
Declaration
Swift
@inlinable var startWidget: WidgetRef! { get nonmutating set }
View on GitHub
Install in Dash
CenterLayoutProtocol Protocol Reference