SymbolicColorRef
public struct SymbolicColorRef : SymbolicColorProtocol
GtkSymbolicColor is a boxed type that represents a symbolic color.
It is the result of parsing a
color expression.
To obtain the color represented by a GtkSymbolicColor, it has to
be resolved with gtk_symbolic_color_resolve()
, which replaces all
symbolic color references by the colors they refer to (in a given
context) and evaluates mix, shade and other expressions, resulting
in a GdkRGBA
value.
It is not normally necessary to deal directly with GtkSymbolicColors
,
since they are mostly used behind the scenes by GtkStyleContext
and
GtkCssProvider
.
GtkSymbolicColor
is deprecated. Symbolic colors are considered an
implementation detail of GTK+.
The SymbolicColorRef
type acts as a lightweight Swift reference to an underlying GtkSymbolicColor
instance.
It exposes methods that can operate on this data type through SymbolicColorProtocol
conformance.
Use SymbolicColorRef
only as an unowned
reference to an existing GtkSymbolicColor
instance.
-
Untyped pointer to the underlying `GtkSymbolicColor` instance.
For type-safe access, use the generated, typed pointer
symbolic_color_ptr
property instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkSymbolicColor>)
-
Designated initialiser from a constant pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkSymbolicColor>)
-
Conditional initialiser from an optional pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkSymbolicColor>?)
-
Conditional initialiser from an optional, non-mutable pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkSymbolicColor>?)
-
Conditional initialiser from an optional
gpointer
Declaration
Swift
@inlinable init!(gpointer g: gpointer?)
-
Conditional initialiser from an optional, non-mutable
gconstpointer
Declaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?)
-
Reference intialiser for a related type that implements
SymbolicColorProtocol
Declaration
Swift
@inlinable init<T>(_ other: T) where T : SymbolicColorProtocol
-
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
SymbolicColorProtocol
.Declaration
Swift
@inlinable init<T>(cPointer: UnsafeMutablePointer<T>)
-
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
SymbolicColorProtocol
.Declaration
Swift
@inlinable init<T>(constPointer: UnsafePointer<T>)
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
SymbolicColorProtocol
.Declaration
Swift
@inlinable init(mutating raw: UnsafeRawPointer)
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
SymbolicColorProtocol
.Declaration
Swift
@inlinable init(raw: UnsafeMutableRawPointer)
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
SymbolicColorProtocol
.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer)
-
Creates a symbolic color pointing to a literal color.
new_literal is deprecated:
GtkSymbolicColor is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable init<RGBAT>(literal color: RGBAT) where RGBAT : RGBAProtocol
-
Creates a symbolic color pointing to an unresolved named color. See
gtk_style_context_lookup_color()
andgtk_style_properties_lookup_color()
.new_name is deprecated:
GtkSymbolicColor is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable init(name: UnsafePointer<gchar>!)
-
Creates a symbolic color based on the current win32 theme.
Note that while this call is available on all platforms the actual value returned is not reliable on non-win32 platforms.
new_win32 is deprecated:
GtkSymbolicColor is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable init(win32 themeClass: UnsafePointer<gchar>!, id: Int)
-
Creates a symbolic color pointing to a literal color.
new_literal is deprecated:
GtkSymbolicColor is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable static func new<RGBAT>(literal color: RGBAT) -> SymbolicColorRef! where RGBAT : RGBAProtocol
-
Creates a symbolic color pointing to an unresolved named color. See
gtk_style_context_lookup_color()
andgtk_style_properties_lookup_color()
.new_name is deprecated:
GtkSymbolicColor is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable static func new(name: UnsafePointer<gchar>!) -> SymbolicColorRef!
-
Creates a symbolic color based on the current win32 theme.
Note that while this call is available on all platforms the actual value returned is not reliable on non-win32 platforms.
new_win32 is deprecated:
GtkSymbolicColor is deprecated.
Declaration
Swift
@available(*, deprecated) @inlinable static func new(win32 themeClass: UnsafePointer<gchar>!, id: Int) -> SymbolicColorRef!