ScummVM API documentation
GfxSettingMenu.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 /*
23  * This code is based on the CRAB engine
24  *
25  * Copyright (c) Arvind Raja Yadav
26  *
27  * Licensed under MIT
28  *
29  */
30 
31 #ifndef CRAB_GFXSETTINGMENU_H
32 #define CRAB_GFXSETTINGMENU_H
33 
34 #include "crab/ui/ImageData.h"
35 #include "crab/ui/ResolutionMenu.h"
36 #include "crab/ui/slider.h"
37 #include "crab/ui/StateButton.h"
38 #include "crab/ui/ToggleButton.h"
39 
40 namespace Crab {
41 
42 namespace pyrodactyl {
43 namespace ui {
45  // The brightness slider
46  Slider _brightness;
47 
48  // The button to toggle between full and windowed, and turn vsync on/off, window borders or not, game quality
49  ToggleButton _fullscreen, _vsync, _border, _quality;
50 
51  // The buttons and menus for changing resolution
52  ResolutionMenu _resolution;
53 
54  // Notice that quality setting can only be changed outside the game
55  HoverInfo _noticeQuality;
56 
57 public:
58  GfxSettingMenu() {}
59  ~GfxSettingMenu() {}
60 
61  void load(rapidxml::xml_node<char> *node);
62 
63  int handleEvents(const Common::Event &event);
64 
65  void internalEvents();
66 
67  void draw();
68  void setUI();
69 
70  void SetInfo() { _resolution.setInfo(); }
71 };
72 } // End of namespace ui
73 } // End of namespace pyrodactyl
74 
75 } // End of namespace Crab
76 
77 #endif // CRAB_GFXSETTINGMENU_H
Definition: GfxSettingMenu.h:44
Definition: ResolutionMenu.h:42
Definition: events.h:199
Definition: moveeffect.h:37
Definition: slider.h:42
Definition: ToggleButton.h:42
Definition: HoverInfo.h:41