Granite.Drawing.Color – granite Reference Manual
Packages
granite
Granite
Drawing
Color
alpha_from_int
blue_from_int
green_from_int
red_from_int
Color
Color.from_gdk
Color.from_int
Color.from_rgba
Color.from_string
add_hue
brighten_val
darken_by_sat
darken_val
get_hue
get_sat
get_val
multiply_sat
set_alpha
set_hue
set_max_sat
set_max_val
set_min_sat
set_min_value
set_sat
set_val
to_int
to_string
A
B
G
R
Color
Object Hierarchy:
Description:
public
class
Color
:
Object
,
SettingsSerializable
Namespace:
Granite.Drawing
Package:
granite
Content:
Static methods:
public
static
uint8
alpha_from_int
(
int
color)
public
static
uint8
blue_from_int
(
int
color)
public
static
uint8
green_from_int
(
int
color)
public
static
uint8
red_from_int
(
int
color)
Creation methods:
public
Color
(
double
R,
double
G,
double
B,
double
A)
public
Color.from_gdk
(
Color
color)
public
Color.from_int
(
int
color)
public
Color.from_rgba
(
RGBA
color)
public
Color.from_string
(
string
color)
Methods:
public
Color
add_hue
(
double
val)
public
Color
brighten_val
(
double
amount)
public
Color
darken_by_sat
(
double
amount)
public
Color
darken_val
(
double
amount)
public
double
get_hue
()
public
double
get_sat
()
public
double
get_val
()
public
Color
multiply_sat
(
double
amount)
public
Color
set_alpha
(
double
alpha)
public
Color
set_hue
(
double
hue)
public
Color
set_max_sat
(
double
sat)
public
Color
set_max_val
(
double
val)
public
Color
set_min_sat
(
double
sat)
public
Color
set_min_value
(
double
val)
public
Color
set_sat
(
double
sat)
public
Color
set_val
(
double
val)
public
int
to_int
()
public
string
to_string
()
Fields:
public
double
A
public
double
B
public
double
G
public
double
R
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface Granite.Services.SettingsSerializable
settings_deserialize
settings_serialize