diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-23 12:43:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-24 09:52:08 +0200 |
commit | dc7fc2074dd81f0960e6c112ead1cfe5bfd1bf4c (patch) | |
tree | ebbe8c4c405e651e0c9380f3fcc4bbf5288f7d32 /include/vcl/wall.hxx | |
parent | 7bf70574e1e04f027c542733bee9d156e989fae6 (diff) |
convert WALLPAPER constants to scoped enum
Change-Id: I3b4b4e8a94904e22823a263bd5446a2e1aa47661
Diffstat (limited to 'include/vcl/wall.hxx')
-rw-r--r-- | include/vcl/wall.hxx | 51 |
1 files changed, 15 insertions, 36 deletions
diff --git a/include/vcl/wall.hxx b/include/vcl/wall.hxx index 206e5fb88194..f727dc7d27cc 100644 --- a/include/vcl/wall.hxx +++ b/include/vcl/wall.hxx @@ -28,45 +28,24 @@ class Gradient; class BitmapEx; class ImplWallpaper; -#define WALLPAPER_NULL WallpaperStyle_NULL -#define WALLPAPER_TILE WallpaperStyle_TILE -#define WALLPAPER_CENTER WallpaperStyle_CENTER -#define WALLPAPER_SCALE WallpaperStyle_SCALE -#define WALLPAPER_TOPLEFT WallpaperStyle_TOPLEFT -#define WALLPAPER_TOP WallpaperStyle_TOP -#define WALLPAPER_TOPRIGHT WallpaperStyle_TOPRIGHT -#define WALLPAPER_LEFT WallpaperStyle_LEFT -#define WALLPAPER_RIGHT WallpaperStyle_RIGHT -#define WALLPAPER_BOTTOMLEFT WallpaperStyle_BOTTOMLEFT -#define WALLPAPER_BOTTOM WallpaperStyle_BOTTOM -#define WALLPAPER_BOTTOMRIGHT WallpaperStyle_BOTTOMRIGHT -#define WALLPAPER_APPLICATIONGRADIENT WallpaperStyle_APPLICATIONGRADIENT -#define WALLPAPER_FORCE_EQUAL_SIZE WallpaperStyle_FORCE_EQUAL_SIZE - -#ifndef ENUM_WALLPAPERSTYLE_DECLARED -#define ENUM_WALLPAPERSTYLE_DECLARED - -enum WallpaperStyle +enum class WallpaperStyle { - WALLPAPER_NULL, - WALLPAPER_TILE, - WALLPAPER_CENTER, - WALLPAPER_SCALE, - WALLPAPER_TOPLEFT, - WALLPAPER_TOP, - WALLPAPER_TOPRIGHT, - WALLPAPER_LEFT, - WALLPAPER_RIGHT, - WALLPAPER_BOTTOMLEFT, - WALLPAPER_BOTTOM, - WALLPAPER_BOTTOMRIGHT, - WALLPAPER_APPLICATIONGRADIENT, // defines a gradient that internally covers the whole application - // and uses a color derived from the face color - WALLPAPER_FORCE_EQUAL_SIZE = 0x7fffffff + NONE, + Tile, + Center, + Scale, + TopLeft, + Top, + TopRight, + Left, + Right, + BottomLeft, + Bottom, + BottomRight, + ApplicationGradient // defines a gradient that internally covers the whole application + // and uses a color derived from the face color }; -#endif - class VCL_DLLPUBLIC Wallpaper { private: |