Editor API
UnigineEditor public API
EngineGuiWindow.h
1 // Copyright (C), UNIGINE. All rights reserved.
2 #pragma once
3 
4 #include "RenderWindow.h"
5 
6 #include <UnigineGui.h>
7 
8 namespace Editor { class EngineGuiWindowPrivate; }
9 
10 namespace Editor
11 {
13 // EngineGuiWindow.
22 class EDITOR_API EngineGuiWindow : public RenderWindow
23 {
24  Q_OBJECT
25  Q_DISABLE_COPY(EngineGuiWindow)
26 
27 public:
28  explicit EngineGuiWindow(QWidget *parent = nullptr);
29  ~EngineGuiWindow() override;
30 
32  Unigine::GuiPtr getGui() const;
33 
38  const char *getControlsExclusiveContextId() const;
45  bool createControlsExclusiveContext(const char *context_id);
52  bool removeControlsExclusiveContext();
59  bool hasControlsExclusiveContext() const;
60 
61 protected:
66  void onUpdate() override;
71  void onRender() override;
72 
73 private:
74  EngineGuiWindowPrivate *const d;
75 };
76 
77 } // namespace Editor
Definition: Actions.h:11
This class is used to represent a window widget to which an image can be rendered by the Engine with ...
Definition: EngineGuiWindow.h:22
This class is used to represent a window widget to which an image can be rendered by the Engine....
Definition: RenderWindow.h:22