TextAttributesProtocol

public protocol TextAttributesProtocol

Using GtkTextAttributes directly should rarely be necessary. It’s primarily useful with gtk_text_iter_get_attributes(). As with most GTK+ structs, the fields in this struct should only be read, never modified directly.

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

  • ptr

    Untyped pointer to the underlying GtkTextAttributes instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkTextAttributes instance.

    Default Implementation

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

    Declaration

    Swift

    var text_attributes_ptr: UnsafeMutablePointer<GtkTextAttributes>! { get }
  • Required Initialiser for types conforming to TextAttributesProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

TextAttributes Record: TextAttributesProtocol extension (methods and fields)

  • copy() Extension method

    Copies src and returns a new GtkTextAttributes.

    Declaration

    Swift

    @inlinable
    func copy() -> TextAttributesRef!
  • copyValues(dest:) Extension method

    Copies the values from src to dest so that dest has the same values as src. Frees existing values in dest.

    Declaration

    Swift

    @inlinable
    func copyValues<TextAttributesT>(dest: TextAttributesT) where TextAttributesT : TextAttributesProtocol
  • ref() Extension method

    Increments the reference count on values.

    Declaration

    Swift

    @discardableResult
    @inlinable
    func ref() -> TextAttributesRef!
  • unref() Extension method

    Decrements the reference count on values, freeing the structure if the reference count reaches 0.

    Declaration

    Swift

    @inlinable
    func unref()
  • appearance Extension method

    GtkTextAppearance for text.

    Declaration

    Swift

    @inlinable
    var appearance: GtkTextAppearance { get set }
  • justification Extension method

    GtkJustification for text.

    Declaration

    Swift

    @inlinable
    var justification: GtkJustification { get set }
  • direction Extension method

    GtkTextDirection for text.

    Declaration

    Swift

    @inlinable
    var direction: GtkTextDirection { get set }
  • font Extension method

    PangoFontDescription for text.

    Declaration

    Swift

    @inlinable
    var font: FontDescriptionRef! { get set }
  • fontScale Extension method

    Font scale factor.

    Declaration

    Swift

    @inlinable
    var fontScale: gdouble { get set }
  • leftMargin Extension method

    Width of the left margin in pixels.

    Declaration

    Swift

    @inlinable
    var leftMargin: gint { get set }
  • rightMargin Extension method

    Width of the right margin in pixels.

    Declaration

    Swift

    @inlinable
    var rightMargin: gint { get set }
  • indent Extension method

    Amount to indent the paragraph, in pixels.

    Declaration

    Swift

    @inlinable
    var indent: gint { get set }
  • pixelsAboveLines Extension method

    Pixels of blank space above paragraphs.

    Declaration

    Swift

    @inlinable
    var pixelsAboveLines: gint { get set }
  • pixelsBelowLines Extension method

    Pixels of blank space below paragraphs.

    Declaration

    Swift

    @inlinable
    var pixelsBelowLines: gint { get set }
  • pixelsInsideWrap Extension method

    Pixels of blank space between wrapped lines in a paragraph.

    Declaration

    Swift

    @inlinable
    var pixelsInsideWrap: gint { get set }
  • tabs Extension method

    Custom PangoTabArray for this text.

    Declaration

    Swift

    @inlinable
    var tabs: TabArrayRef! { get set }
  • wrapMode Extension method

    GtkWrapMode for text.

    Declaration

    Swift

    @inlinable
    var wrapMode: GtkWrapMode { get set }
  • language Extension method

    PangoLanguage for text.

    Declaration

    Swift

    @inlinable
    var language: LanguageRef! { get set }
  • invisible Extension method

    Hide the text.

    Declaration

    Swift

    @inlinable
    var invisible: guint { get set }
  • bgFullHeight Extension method

    Background is fit to full line height rather than baseline +/- ascent/descent (font height).

    Declaration

    Swift

    @inlinable
    var bgFullHeight: guint { get set }
  • editable Extension method

    Can edit this text.

    Declaration

    Swift

    @inlinable
    var editable: guint { get set }
  • noFallback Extension method

    Whether to disable font fallback.

    Declaration

    Swift

    @inlinable
    var noFallback: guint { get set }
  • letterSpacing Extension method

    Extra space to insert between graphemes, in Pango units

    Declaration

    Swift

    @inlinable
    var letterSpacing: gint { get set }