BorderProtocol

public protocol BorderProtocol

A struct that specifies a border around a rectangular area.

Each side can have different width.

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.

  • ptr

    Untyped pointer to the underlying GtkBorder instance.

    Declaration

    Swift

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

    Typed 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)

Border Record: BorderProtocol extension (methods and fields)

  • copy() Extension method

    Copies a GtkBorder.

    Declaration

    Swift

    @inlinable
    func copy() -> BorderRef!
  • free() Extension method

    Frees a GtkBorder.

    Declaration

    Swift

    @inlinable
    func free()
  • left Extension method

    The width of the left border

    Declaration

    Swift

    @inlinable
    var left: gint16 { get set }
  • right Extension method

    The width of the right border

    Declaration

    Swift

    @inlinable
    var right: gint16 { get set }
  • top Extension method

    The width of the top border

    Declaration

    Swift

    @inlinable
    var top: gint16 { get set }
  • bottom Extension method

    The width of the bottom border

    Declaration

    Swift

    @inlinable
    var bottom: gint16 { get set }