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
GtkBorder
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
border_ptr
Default implementationTyped pointer to the underlying
GtkBorder
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkBorder
instance.Declaration
Swift
var border_ptr: UnsafeMutablePointer<GtkBorder>! { get }
-
Required Initialiser for types conforming to
BorderProtocol
Declaration
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()
-
left
Extension methodThe width of the left border
Declaration
Swift
@inlinable var left: gint16 { get set }
-
right
Extension methodThe width of the right border
Declaration
Swift
@inlinable var right: gint16 { get set }
-
top
Extension methodThe width of the top border
Declaration
Swift
@inlinable var top: gint16 { get set }
-
bottom
Extension methodThe width of the bottom border
Declaration
Swift
@inlinable var bottom: gint16 { get set }