Game Develop Core: LayoutEditorCanvasOptions.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
LayoutEditorCanvasOptions.h
Go to the documentation of this file.
1
5 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
6 #ifndef SCENECANVASSETTINGS_H
7 #define SCENECANVASSETTINGS_H
8 #include <string>
9 class TiXmlElement;
10
11 namespace gd
12 {
13
19 class GD_CORE_API LayoutEditorCanvasOptions
20 {
21 public:
22 LayoutEditorCanvasOptions();
23 virtual ~LayoutEditorCanvasOptions() {};
24
25 void LoadFromXml(const TiXmlElement * element);
26 void SaveToXml(TiXmlElement * element) const;
27
28 bool grid;
29 bool snap;
30 int gridWidth;
31 int gridHeight;
32 int gridR;
33 int gridG;
34 int gridB;
35 float zoomFactor;
36 bool windowMask;
37 std::string associatedLayout;
38 };
39
40 }
41
42 #endif // SCENECANVASSETTINGS_H
43 #endif