Lumiera  0.pre.03
»edit your freedom«
cairo-util.hpp
Go to the documentation of this file.
1 /*
2  CAIRO-UTIL.hpp - utility functions for Cairo
3 
4  Copyright (C)
5  2010, Stefan Kangas <skangas@skangas.se>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 * *****************************************************************/
13 
14 
20 #include <cairomm/cairomm.h>
21 
22 #ifndef STAGE_DRAW_CAIRO_H
23 #define STAGE_DRAW_CAIRO_H
24 
25 using Cairo::RefPtr;
26 using Cairo::SolidPattern;
27 
28 
29 namespace stage {
30 namespace draw {
31 
35  class CairoUtil
36  {
37  public:
43  static RefPtr<SolidPattern>
44  pattern_set_red (const RefPtr<SolidPattern> color, double red);
45 
51  static RefPtr<SolidPattern>
52  pattern_set_green (const RefPtr<SolidPattern>, double green);
53 
59  static RefPtr<SolidPattern>
60  pattern_set_blue (const RefPtr<SolidPattern>, double blue);
61 
67  static RefPtr<SolidPattern>
68  pattern_set_alpha (const RefPtr<SolidPattern>, double alpha);
69  };
70 
71 
72 }}// namespace stage::draw
73 #endif /*STAGE_DRAW_CAIRO_H*/
static RefPtr< SolidPattern > pattern_set_blue(const RefPtr< SolidPattern >, double blue)
Make a new SolidPattern from an old one, changing the blue component of the colour.
Definition: cairo-util.cpp:52
static RefPtr< SolidPattern > pattern_set_red(const RefPtr< SolidPattern > color, double red)
Make a new SolidPattern from an old one, changing the red component of the colour.
Definition: cairo-util.cpp:26
static RefPtr< SolidPattern > pattern_set_green(const RefPtr< SolidPattern >, double green)
Make a new SolidPattern from an old one, changing the green component of the colour.
Definition: cairo-util.cpp:39
static RefPtr< SolidPattern > pattern_set_alpha(const RefPtr< SolidPattern >, double alpha)
Make a new SolidPattern from an old one, changing the alpha component of the colour.
Definition: cairo-util.cpp:65
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:37