BorderProtocol
public protocol BorderProtocol
A struct that specifies a border around a rectangular area that can be of different width on each side.
The BorderProtocol protocol exposes the methods and properties of an underlying GtkBorder 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 Border.
Alternatively, use BorderRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkBorderinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
border_ptrDefault implementationTyped pointer to the underlying
GtkBorderinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkBorderinstance.Declaration
Swift
var border_ptr: UnsafeMutablePointer<GtkBorder>! { get } -
Required Initialiser for types conforming to
BorderProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()Extension methodCopies a
GtkBorder-struct.Declaration
Swift
@inlinable func copy() -> BorderRef! -
free()Extension methodFrees a
GtkBorder-struct.Declaration
Swift
@inlinable func free() -
leftExtension methodThe width of the left border
Declaration
Swift
@inlinable var left: gint16 { get set } -
rightExtension methodThe width of the right border
Declaration
Swift
@inlinable var right: gint16 { get set } -
topExtension methodThe width of the top border
Declaration
Swift
@inlinable var top: gint16 { get set } -
bottomExtension methodThe width of the bottom border
Declaration
Swift
@inlinable var bottom: gint16 { get set }
View on GitHub
Install in Dash
BorderProtocol Protocol Reference