Ardour  9.0-pre0-582-g084a23a80d
general.h
Go to the documentation of this file.
1 /* $Id$ */
2 
3 /* Copyright 2002 The gtkmm Development Team
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free
17  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  */
19 
20 #ifndef _GDKMM_GENERAL_H
21 #define _GDKMM_GENERAL_H
22 
23 #include <gdkmm/pixbuf.h>
24 #include <cairomm/context.h>
25 
26 namespace Gdk
27 {
28 
31 
34 
35 void flush();
36 
37 namespace Cairo
38 {
39 
40 #ifndef GDKMM_DISABLE_DEPRECATED
48 void set_source_color(::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::Color& color);
49 #endif
50 
55 void set_source_color(const ::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::Color& color);
56 
57 #ifndef GDKMM_DISABLE_DEPRECATED
67 void set_source_pixbuf(::Cairo::RefPtr< ::Cairo::Context >& context, const Glib::RefPtr<Gdk::Pixbuf>& pixbuf, double pixbuf_x = 0, double pixbuf_y = 0);
68 #endif
69 
76 void set_source_pixbuf(const ::Cairo::RefPtr< ::Cairo::Context >& context, const Glib::RefPtr<Gdk::Pixbuf>& pixbuf, double pixbuf_x = 0, double pixbuf_y = 0);
77 
78 #ifndef GDKMM_DISABLE_DEPRECATED
88 void set_source_pixmap(::Cairo::RefPtr< ::Cairo::Context >& context, const Glib::RefPtr<Gdk::Pixmap>& pixmap, double pixmap_x, double pixmap_y);
89 #endif
90 
97 void set_source_pixmap(const ::Cairo::RefPtr< ::Cairo::Context >& context, const Glib::RefPtr<Gdk::Pixmap>& pixmap, double pixmap_x, double pixmap_y);
98 
99 #ifndef GDKMM_DISABLE_DEPRECATED
108 void rectangle(::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::Rectangle& rectangle);
109 #endif
110 
116 void add_rectangle_to_path(const ::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::Rectangle& rectangle);
117 
118 #ifndef GDKMM_DISABLE_DEPRECATED
126 void region(::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::Region& region);
127 #endif
128 
134 void add_region_to_path(const ::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::Region& region);
135 
136 } //namespace Cairo
137 
138 } //namespace Gdk
139 
140 #endif //_GDKMM_GENERAL_H
141 
GtkImagePixmapData pixmap
Definition: gtkimage.h:0
GtkImagePixbufData pixbuf
Definition: gtkimage.h:2
PBD::PropertyDescriptor< uint32_t > color
int screen_height_mm()
int screen_height()
int screen_width_mm()
void flush()
int screen_width()