mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
cogl-color: Provide setters for all the channels
We only had getters for the red, green, blue and alpha channels of a color. This meant that, if you wanted to change, say, the alpha component of a color, one would need to query the red, green and blue channels and use set_from_4ub() or set_from_4f(). Instead of this, just provide some setters for CoglColor, using the same naming scheme than the existing getters.
This commit is contained in:

committed by
Robert Bragg

parent
896dd975d1
commit
98f2d2516b
@ -382,6 +382,24 @@ cogl_color_get_green_float
|
||||
cogl_color_get_blue_float
|
||||
cogl_color_get_alpha_float
|
||||
|
||||
<SUBSECTION>
|
||||
cogl_color_set_red
|
||||
cogl_color_set_green
|
||||
cogl_color_set_blue
|
||||
cogl_color_set_alpha
|
||||
|
||||
<SUBSECTION>
|
||||
cogl_color_set_red_byte
|
||||
cogl_color_set_green_byte
|
||||
cogl_color_set_blue_byte
|
||||
cogl_color_set_alpha_byte
|
||||
|
||||
<SUBSECTION>
|
||||
cogl_color_set_red_float
|
||||
cogl_color_set_green_float
|
||||
cogl_color_set_blue_float
|
||||
cogl_color_set_alpha_float
|
||||
|
||||
<SUBSECTION>
|
||||
cogl_color_premultiply
|
||||
cogl_color_unpremultiply
|
||||
|
Reference in New Issue
Block a user