diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2021-02-20 11:17:20 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2021-02-20 11:48:28 +0100 |
commit | 4fd453c42684f3d5dd268dfa0e27f5adff1c20d1 (patch) | |
tree | be72d98eb5cd2d44459ff197d33b0cc77f45a305 | |
parent | 21b75b6276b3f04dddf4ae2b238fd81e5a99debb (diff) |
Surface::Type: Deprecate WIN32, add WIN32_SURFACE
WIN32 can be a preprocessor macro. Fixes #26
-rw-r--r-- | cairomm/surface.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/cairomm/surface.h b/cairomm/surface.h index c923e60..9e85819 100644 --- a/cairomm/surface.h +++ b/cairomm/surface.h @@ -69,7 +69,7 @@ class CAIROMM_API Surface { public: /** - * Type is used to describe the type of a given surface. The + * %Cairo::Surface::Type is used to describe the type of a given surface. The * surface types are also known as "backends" or "surface backends" within * cairo. * @@ -121,10 +121,20 @@ public: */ QUARTZ = CAIRO_SURFACE_TYPE_QUARTZ, + //TODO: In cairomm 1.18.0: Really deprecate, with ifndef CAIROMM_DISABLE_DEPRECATED +#ifndef WIN32 /** * The surface is of type win32 + * + * @deprecated Use WIN32_SURFACE instead. */ WIN32 = CAIRO_SURFACE_TYPE_WIN32, +#endif // WIN32 + /** + * The surface is of type win32 + * @since 1.16.1 + */ + WIN32_SURFACE = CAIRO_SURFACE_TYPE_WIN32, /** * The surface is of type beos @@ -216,7 +226,6 @@ public: * @since 1.10 */ SUBSURFACE = CAIRO_SURFACE_TYPE_SUBSURFACE - }; /** |