win32_surface.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __CAIROMM_WIN32_SURFACE_H
00020 #define __CAIROMM_WIN32_SURFACE_H
00021
00022 #include <cairomm/surface.h>
00023 #include <cairomm/enums.h>
00024
00025 #ifdef CAIRO_HAS_WIN32_SURFACE
00026 #include <cairo-win32.h>
00027 #endif
00028
00029
00030
00031
00032
00033 namespace Cairo
00034 {
00035
00036 #ifdef CAIRO_HAS_WIN32_SURFACE
00037
00045 class Win32Surface : public Surface
00046 {
00047 public:
00048
00056 explicit Win32Surface(cairo_surface_t* cobject, bool has_reference = false);
00057 virtual ~Win32Surface();
00058
00064 HDC get_dc() const;
00065
00074 static RefPtr<Win32Surface> create(HDC hdc);
00075
00085 static RefPtr<Win32Surface> create(Format format, int width, int height);
00086
00087 };
00088
00089 #endif // CAIRO_HAS_WIN32_SURFACE
00090
00091
00092 }
00093
00094 #endif //__CAIROMM_WIN32_SURFACE_H
00095
00096