Debian Codegraph @

src/videooptions.h

raw symbols SCIP
1 // videooptions.h
2 //
3 // (c) Robert Schuster, 2007
4 //
5 // Licensed under GNU GPL version 2 or, at your option, any later version.
6
7 #ifndef VIDEOOPTIONS_H
8 #define VIDEOOPTIONS_H
9
10 #include <vector>
11
12 class Main;
13 class MenuAction;
14
15 /**
16 * A VideoOptions object is to be modified through simple 'apply' (or invoke)
17 * pattern methods. Those methods are provided through internal MenuAction
18 * class of which object can be created for the menu system. The MenuAction
19 * instances also update the graphical value representation.
20 */
21 class VideoOptions
22 {
23 bool fullscreen;
24
25 int screenWidth, screenHeight;
26
27 std::vector < std::pair < int, int > > sizes;
28 int index;
29
30 MenuAction *toggleFullscreenAction;
31 MenuAction *screenSizeAction;
32 MenuAction *applyVideoOptionsAction;
33
34 public:
35 VideoOptions();
36
37 void previousScreenSize();
38 void nextScreenSize();
39 void toggleFullscreen();
40
41 bool getFullscreen() const { return fullscreen; }
42 int getScreenWidth() const { return screenWidth; }
43 int getScreenHeight() const { return screenHeight; }
44
45 MenuAction *getToggleFullscreenAction();
46
47 MenuAction *getScreenSizeAction();
48
49 MenuAction *getApplyVideoOptionsAction(Main &);
50 };
51
52 #endif