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
GtkTextAttributes
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
text_attributes_ptr
Default implementationTyped 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)
-
copy()
Extension methodCopies
src
and returns a newGtkTextAttributes
.Declaration
Swift
@inlinable func copy() -> TextAttributesRef!
-
copyValues(dest:
Extension method) Copies the values from
src
todest
so thatdest
has 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()
-
appearance
Extension methodGtkTextAppearance
for text.Declaration
Swift
@inlinable var appearance: GtkTextAppearance { get set }
-
justification
Extension methodGtkJustification
for text.Declaration
Swift
@inlinable var justification: GtkJustification { get set }
-
direction
Extension methodGtkTextDirection
for text.Declaration
Swift
@inlinable var direction: GtkTextDirection { get set }
-
font
Extension methodPangoFontDescription
for text.Declaration
Swift
@inlinable var font: FontDescriptionRef! { get set }
-
fontScale
Extension methodFont scale factor.
Declaration
Swift
@inlinable var fontScale: gdouble { get set }
-
leftMargin
Extension methodWidth of the left margin in pixels.
Declaration
Swift
@inlinable var leftMargin: gint { get set }
-
rightMargin
Extension methodWidth of the right margin in pixels.
Declaration
Swift
@inlinable var rightMargin: gint { get set }
-
indent
Extension methodAmount to indent the paragraph, in pixels.
Declaration
Swift
@inlinable var indent: gint { get set }
-
pixelsAboveLines
Extension methodPixels of blank space above paragraphs.
Declaration
Swift
@inlinable var pixelsAboveLines: gint { get set }
-
pixelsBelowLines
Extension methodPixels of blank space below paragraphs.
Declaration
Swift
@inlinable var pixelsBelowLines: gint { get set }
-
pixelsInsideWrap
Extension methodPixels of blank space between wrapped lines in a paragraph.
Declaration
Swift
@inlinable var pixelsInsideWrap: gint { get set }
-
tabs
Extension methodCustom
PangoTabArray
for this text.Declaration
Swift
@inlinable var tabs: TabArrayRef! { get set }
-
wrapMode
Extension methodGtkWrapMode
for text.Declaration
Swift
@inlinable var wrapMode: GtkWrapMode { get set }
-
language
Extension methodPangoLanguage
for text.Declaration
Swift
@inlinable var language: LanguageRef! { get set }
-
invisible
Extension methodHide the text.
Declaration
Swift
@inlinable var invisible: guint { get set }
-
bgFullHeight
Extension methodBackground is fit to full line height rather than baseline +/- ascent/descent (font height).
Declaration
Swift
@inlinable var bgFullHeight: guint { get set }
-
editable
Extension methodCan edit this text.
Declaration
Swift
@inlinable var editable: guint { get set }
-
noFallback
Extension methodWhether to disable font fallback.
Declaration
Swift
@inlinable var noFallback: guint { get set }
-
letterSpacing
Extension methodExtra space to insert between graphemes, in Pango units
Declaration
Swift
@inlinable var letterSpacing: gint { get set }