UI: added getter for the current default font size

master
Martin Gerhardy 2021-02-02 21:05:37 +01:00
parent 424f2a153b
commit 532f6bb027
1 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,8 @@ public:
virtual void beforeUI() {
}
int fontSize() const;
virtual void onWindowResize(int windowWidth, int windowHeight) override;
virtual app::AppState onConstruct() override;
virtual app::AppState onInit() override;
@ -80,6 +82,10 @@ public:
void fileDialog(const std::function<void(const core::String&)>& callback, OpenFileMode mode, const core::String& filter) override;
};
inline int IMGUIApp::fontSize() const {
return _uiFontSize->intVal();
}
inline const video::Camera& IMGUIApp::camera() const {
return _camera;
}