RcStyleProtocol

public protocol RcStyleProtocol : ObjectProtocol

The GtkRcStyle-struct is used to represent a set of information about the appearance of a widget. This can later be composited together with other GtkRcStyle-struct<!– –>s to form a GtkStyle.

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

  • ptr

    Untyped pointer to the underlying GtkRcStyle instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkRcStyle instance.

    Default Implementation

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

    Declaration

    Swift

    var rc_style_ptr: UnsafeMutablePointer<GtkRcStyle>! { get }
  • Required Initialiser for types conforming to RcStyleProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

RcStyle Class: RcStyleProtocol extension (methods and fields)

  • copy() Extension method

    Makes a copy of the specified GtkRcStyle. This function will correctly copy an RC style that is a member of a class derived from GtkRcStyle.

    copy is deprecated: Use #GtkCssProvider instead.

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func copy() -> RcStyleRef!
  • Parses a color in the format expected in a RC file. If style is not nil, it will be consulted to resolve references to symbolic colors.

    rc_parse_color_full is deprecated: Use #GtkCssProvider instead

    Declaration

    Swift

    @available(*, deprecated)
    @inlinable
    func rcParseColorFull<ColorT, ScannerT>(scanner: ScannerT, color: ColorT) -> Int where ColorT : ColorProtocol, ScannerT : ScannerProtocol
  • parentInstance Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var parentInstance: GObject { get }
  • name Extension method

    Name

    Declaration

    Swift

    @inlinable
    var name: UnsafeMutablePointer<gchar>! { get }
  • bgPixmapName Extension method

    Pixmap name

    Declaration

    Swift

    @inlinable
    var bgPixmapName: (UnsafeMutablePointer<gchar>?, UnsafeMutablePointer<gchar>?, UnsafeMutablePointer<gchar>?, UnsafeMutablePointer<gchar>?, UnsafeMutablePointer<gchar>?) { get }
  • fontDesc Extension method

    A PangoFontDescription

    Declaration

    Swift

    @inlinable
    var fontDesc: FontDescriptionRef! { get }
  • colorFlags Extension method

    GtkRcFlags

    Declaration

    Swift

    @inlinable
    var colorFlags: (GtkRcFlags, GtkRcFlags, GtkRcFlags, GtkRcFlags, GtkRcFlags) { get }
  • fg Extension method

    Foreground colors

    Declaration

    Swift

    @inlinable
    var fg: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
  • bg Extension method

    Background colors

    Declaration

    Swift

    @inlinable
    var bg: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
  • text Extension method

    Text colors

    Declaration

    Swift

    @inlinable
    var text: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
  • base Extension method

    Base colors

    Declaration

    Swift

    @inlinable
    var base: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
  • xthickness Extension method

    X thickness

    Declaration

    Swift

    @inlinable
    var xthickness: gint { get }
  • ythickness Extension method

    Y thickness

    Declaration

    Swift

    @inlinable
    var ythickness: gint { get }