TextAppearanceProtocol

public protocol TextAppearanceProtocol

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

  • ptr

    Untyped pointer to the underlying GtkTextAppearance instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkTextAppearance instance.

    Default Implementation

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

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GtkTextAppearance>! { get }
  • Required Initialiser for types conforming to TextAppearanceProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

TextAppearance Record: TextAppearanceProtocol extension (methods and fields)

  • bgColor Extension method

    Background GdkColor.

    Declaration

    Swift

    @inlinable
    var bgColor: GdkColor { get set }
  • fgColor Extension method

    Foreground GdkColor.

    Declaration

    Swift

    @inlinable
    var fgColor: GdkColor { get set }
  • rise Extension method

    Super/subscript rise, can be negative.

    Declaration

    Swift

    @inlinable
    var rise: gint { get set }
  • underline Extension method

    PangoUnderline

    Declaration

    Swift

    @inlinable
    var underline: guint { get set }
  • strikethrough Extension method

    Strikethrough style

    Declaration

    Swift

    @inlinable
    var strikethrough: guint { get set }
  • drawBg Extension method

    Whether to use background-related values; this is irrelevant for the values struct when in a tag, but is used for the composite values struct; it’s true if any of the tags being composited had background stuff set.

    Declaration

    Swift

    @inlinable
    var drawBg: guint { get set }
  • insideSelection Extension method

    This are only used when we are actually laying out and rendering a paragraph; not when a GtkTextAppearance is part of a GtkTextAttributes.

    Declaration

    Swift

    @inlinable
    var insideSelection: guint { get set }
  • isText Extension method

    This are only used when we are actually laying out and rendering a paragraph; not when a GtkTextAppearance is part of a GtkTextAttributes.

    Declaration

    Swift

    @inlinable
    var isText: guint { get set }