RcStyleProtocol
public protocol RcStyleProtocol : ObjectProtocol
The GtkRcStyle-struct
is used to represent a set
of information about the appearance of a widget.
This can later be composited together with other
GtkRcStyle-struct
<!– –>s to form a GtkStyle
.
The RcStyleProtocol
protocol exposes the methods and properties of an underlying GtkRcStyle
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 RcStyle
.
Alternatively, use RcStyleRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkRcStyle
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
rc_style_ptr
Default implementationTyped pointer to the underlying
GtkRcStyle
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkRcStyle
instance.Declaration
Swift
var rc_style_ptr: UnsafeMutablePointer<GtkRcStyle>! { get }
-
Required Initialiser for types conforming to
RcStyleProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()
Extension methodMakes a copy of the specified
GtkRcStyle
. This function will correctly copy an RC style that is a member of a class derived fromGtkRcStyle
.copy is deprecated: Use #GtkCssProvider instead.
Declaration
Swift
@available(*, deprecated) @inlinable func copy() -> RcStyleRef!
-
rcParseColorFull(scanner:
Extension methodcolor: ) Parses a color in the format expected in a RC file. If
style
is notnil
, it will be consulted to resolve references to symbolic colors.rc_parse_color_full is deprecated: Use #GtkCssProvider instead
Declaration
Swift
@available(*, deprecated) @inlinable func rcParseColorFull<ColorT, ScannerT>(scanner: ScannerT, color: ColorT) -> Int where ColorT : ColorProtocol, ScannerT : ScannerProtocol
-
parentInstance
Extension methodUndocumented
Declaration
Swift
@inlinable var parentInstance: GObject { get }
-
name
Extension methodName
Declaration
Swift
@inlinable var name: UnsafeMutablePointer<gchar>! { get }
-
bgPixmapName
Extension methodPixmap name
Declaration
Swift
@inlinable var bgPixmapName: (UnsafeMutablePointer<gchar>?, UnsafeMutablePointer<gchar>?, UnsafeMutablePointer<gchar>?, UnsafeMutablePointer<gchar>?, UnsafeMutablePointer<gchar>?) { get }
-
fontDesc
Extension methodA
PangoFontDescription
Declaration
Swift
@inlinable var fontDesc: FontDescriptionRef! { get }
-
colorFlags
Extension methodGtkRcFlags
Declaration
Swift
@inlinable var colorFlags: (GtkRcFlags, GtkRcFlags, GtkRcFlags, GtkRcFlags, GtkRcFlags) { get }
-
fg
Extension methodForeground colors
Declaration
Swift
@inlinable var fg: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
-
bg
Extension methodBackground colors
Declaration
Swift
@inlinable var bg: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
-
text
Extension methodText colors
Declaration
Swift
@inlinable var text: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
-
base
Extension methodBase colors
Declaration
Swift
@inlinable var base: (GdkColor, GdkColor, GdkColor, GdkColor, GdkColor) { get }
-
xthickness
Extension methodX thickness
Declaration
Swift
@inlinable var xthickness: gint { get }
-
ythickness
Extension methodY thickness
Declaration
Swift
@inlinable var ythickness: gint { get }