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.
-
Untyped pointer to the underlying
GtkTextAttributesinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
text_attributes_ptrDefault implementationTyped pointer to the underlying
GtkTextAttributesinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTextAttributesinstance.Declaration
Swift
var text_attributes_ptr: UnsafeMutablePointer<GtkTextAttributes>! { get } -
Required Initialiser for types conforming to
TextAttributesProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()Extension methodCopies
srcand returns a newGtkTextAttributes.Declaration
Swift
@inlinable func copy() -> TextAttributesRef! -
copyValues(dest:Extension method) Copies the values from
srctodestso thatdesthas the same values assrc. Frees existing values indest.Declaration
Swift
@inlinable func copyValues<TextAttributesT>(dest: TextAttributesT) where TextAttributesT : TextAttributesProtocol -
ref()Extension methodIncrements the reference count on
values.Declaration
Swift
@discardableResult @inlinable func ref() -> TextAttributesRef! -
unref()Extension methodDecrements the reference count on
values, freeing the structure if the reference count reaches 0.Declaration
Swift
@inlinable func unref() -
appearanceExtension methodGtkTextAppearancefor text.Declaration
Swift
@inlinable var appearance: GtkTextAppearance { get set } -
justificationExtension methodGtkJustificationfor text.Declaration
Swift
@inlinable var justification: GtkJustification { get set } -
directionExtension methodGtkTextDirectionfor text.Declaration
Swift
@inlinable var direction: GtkTextDirection { get set } -
fontExtension methodPangoFontDescriptionfor text.Declaration
Swift
@inlinable var font: FontDescriptionRef! { get set } -
fontScaleExtension methodFont scale factor.
Declaration
Swift
@inlinable var fontScale: gdouble { get set } -
leftMarginExtension methodWidth of the left margin in pixels.
Declaration
Swift
@inlinable var leftMargin: gint { get set } -
rightMarginExtension methodWidth of the right margin in pixels.
Declaration
Swift
@inlinable var rightMargin: gint { get set } -
indentExtension methodAmount to indent the paragraph, in pixels.
Declaration
Swift
@inlinable var indent: gint { get set } -
pixelsAboveLinesExtension methodPixels of blank space above paragraphs.
Declaration
Swift
@inlinable var pixelsAboveLines: gint { get set } -
pixelsBelowLinesExtension methodPixels of blank space below paragraphs.
Declaration
Swift
@inlinable var pixelsBelowLines: gint { get set } -
pixelsInsideWrapExtension methodPixels of blank space between wrapped lines in a paragraph.
Declaration
Swift
@inlinable var pixelsInsideWrap: gint { get set } -
tabsExtension methodCustom
PangoTabArrayfor this text.Declaration
Swift
@inlinable var tabs: TabArrayRef! { get set } -
wrapModeExtension methodGtkWrapModefor text.Declaration
Swift
@inlinable var wrapMode: GtkWrapMode { get set } -
languageExtension methodPangoLanguagefor text.Declaration
Swift
@inlinable var language: LanguageRef! { get set } -
invisibleExtension methodHide the text.
Declaration
Swift
@inlinable var invisible: guint { get set } -
bgFullHeightExtension methodBackground is fit to full line height rather than baseline +/- ascent/descent (font height).
Declaration
Swift
@inlinable var bgFullHeight: guint { get set } -
editableExtension methodCan edit this text.
Declaration
Swift
@inlinable var editable: guint { get set } -
noFallbackExtension methodWhether to disable font fallback.
Declaration
Swift
@inlinable var noFallback: guint { get set } -
letterSpacingExtension methodExtra space to insert between graphemes, in Pango units
Declaration
Swift
@inlinable var letterSpacing: gint { get set }
View on GitHub
Install in Dash
TextAttributesProtocol Protocol Reference