Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkSymbolicColor |
Struct : | SymbolicColor |
None |
Method / Constructor | Defined By | |
---|---|---|
Create a new Gtk.SymbolicColor
Create a new Gtk.SymbolicColor
|
||
Create a new Gtk.SymbolicColor
Create a new Gtk.SymbolicColor
|
||
new_alpha
(gdouble factor)
:
Gtk.SymbolicColor
Creates a symbolic color by modifying the relative alpha
value of color.
Creates a symbolic color by modifying the relative alpha
value of color. A factor < 1.0 would resolve to a more transparent color, while > 1.0 would resolve to a more opaque color.
|
Gtk.SymbolicColor | |
Creates a symbolic color defined as a mix of another
two colors.
Creates a symbolic color defined as a mix of another
two colors. a mix factor of 0 would resolve to color1, while a factor of 1 would resolve to color2.
|
Gtk.SymbolicColor | |
new_shade
(gdouble factor)
:
Gtk.SymbolicColor
Creates a symbolic color defined as a shade of
another color.
Creates a symbolic color defined as a shade of
another color. A factor > 1.0 would resolve to a brighter color, while < 1.0 would resolve to a darker color.
|
Gtk.SymbolicColor | |
If color is resolvable, resolved_color will be filled in
with the resolved color, and TRUE will be returned.
If color is resolvable, resolved_color will be filled in
with the resolved color, and TRUE will be returned. Generally, if color can't be resolved, it is due to it being defined on top of a named color that doesn't exist in props. gtk_symbolic_color_named_new(), but can be omitted in other cases.
|
Gtk.SymbolicColor |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk.Gradient
Method |
add_color_stop
(gdouble offset, SymbolicColor color)
:
none
Adds a stop color to gradient.
|
Gtk.StyleProperties
Method |
lookup_color
(String name)
:
Gtk.SymbolicColor
Returns the symbolic color that is mapped
to name. |
Gtk.StyleProperties
Method |
map_color
(String name, SymbolicColor color)
:
none
Maps color so it can be referenced by name.
|