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.
-
Untyped pointer to the underlying
GtkTextAppearance
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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)
-
bgColor
Extension methodBackground
GdkColor
.Declaration
Swift
@inlinable var bgColor: GdkColor { get set }
-
fgColor
Extension methodForeground
GdkColor
.Declaration
Swift
@inlinable var fgColor: GdkColor { get set }
-
rise
Extension methodSuper/subscript rise, can be negative.
Declaration
Swift
@inlinable var rise: gint { get set }
-
underline
Extension methodPangoUnderline
Declaration
Swift
@inlinable var underline: guint { get set }
-
strikethrough
Extension methodStrikethrough style
Declaration
Swift
@inlinable var strikethrough: guint { get set }
-
drawBg
Extension methodWhether 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 methodThis are only used when we are actually laying out and rendering a paragraph; not when a
GtkTextAppearance
is part of aGtkTextAttributes
.Declaration
Swift
@inlinable var insideSelection: guint { get set }
-
isText
Extension methodThis are only used when we are actually laying out and rendering a paragraph; not when a
GtkTextAppearance
is part of aGtkTextAttributes
.Declaration
Swift
@inlinable var isText: guint { get set }