Debian Codegraph @

plugins/dm.gui/ReadableGuiView.h

raw
1 #pragma once
2
3 #include "wxutil/preview/GuiView.h"
4
5 namespace gui
6 {
7
8 /**
9 * greebo: Specialisation of the generic GuiView with regard to readables.
10 * The viewport is cropped to the size of the "backgroundImage" windowDef.
11 */
12 class ReadableGuiView :
13 public wxutil::GuiView
14 {
15 protected:
16 Vector2 _bgDims;
17
18 std::vector<std::string> backgroundDefList;
19
20 public:
21 ReadableGuiView(wxWindow* parent);
22
23 virtual void setGui(const IGuiPtr& gui) override;
24
25 protected:
26 virtual void setGLViewPort();
27 };
28
29 } // namespace