63 void SetMenubar(std::shared_ptr<Menu> menubar);
66 void AddWindow(std::shared_ptr<Window> window);
105 enum class RunStatus { CONTINUE, DONE };
106 RunStatus ProcessQueuedEvents();
110 std::unique_ptr<Impl> impl_;
void OnTerminate()
Definition: Application.cpp:259
std::shared_ptr< Menu > GetMenubar() const
Definition: Application.cpp:210
void Quit()
Closes all the windows, which exits as a result.
Definition: Application.cpp:253
void AddWindow(std::shared_ptr< Window > window)
Must be called on the same thread that calls Run()
Definition: Application.cpp:233
void OnMenuItemSelected(Menu::ItemId itemId)
Delivers the itemId to the active window. Used internally.
Definition: Application.cpp:264
const Theme & GetTheme() const
Definition: Application.cpp:361
Definition: Application.cpp:93
bool RunOneTick()
Definition: Application.cpp:286
void SetMenubar(std::shared_ptr< Menu > menubar)
Definition: Application.cpp:214
void ShowMessageBox(const char *title, const char *message)
Definition: Application.cpp:123
double Now() const
Definition: Application.cpp:208
Definition: Open3DViewer.h:29
static Application & GetInstance()
Definition: Application.cpp:118
Definition: Application.h:40
virtual ~Application()
Definition: Application.cpp:188
void Initialize()
Definition: Application.cpp:190
void Run()
Definition: Application.cpp:281
void RemoveWindow(Window *window)
Must be called on the same thread that calls Run()
Definition: Application.cpp:239
const char * GetResourcePath() const
Definition: Application.cpp:357