| 1 | #pragma once |
| 2 | |
| 3 | #include <string> |
| 4 | |
| 5 | #include "screen.hh" |
| 6 | #include "orientation.hh" |
| 7 | #include "image.hh" |
| 8 | |
| 9 | namespace uw { |
| 10 | enum Mode { |
| 11 | FILL, |
| 12 | CENTER, |
| 13 | TILE, |
| 14 | }; |
| 15 | |
| 16 | class Background { |
| 17 | public: |
| 18 | Background(const std::string &filepath); |
| 19 | ~Background(); |
| 20 | |
| 21 | bool setWallpaper(Mode mode); |
| 22 | |
| 23 | private: |
| 24 | std::string filename; |
| 25 | Screen s; |
| 26 | Image i; |
| 27 | Orientation o; |
| 28 | }; |
| 29 | } |