17 #ifndef DGL_STANDALONE_WINDOW_HPP_INCLUDED
18 #define DGL_STANDALONE_WINDOW_HPP_INCLUDED
20 #include "TopLevelWidget.hpp"
43 :
Window(app, transientParentWindow),
45 sgc((
Window&)*this, transientParentWindow) {}
69 void setSize(uint width, uint height) {
Window::setSize(width, height); }
71 bool addIdleCallback(
IdleCallback* callback, uint timerFrequencyInMs = 0)
76 void setGeometryConstraints(uint minimumWidth, uint minimumHeight,
77 bool keepAspectRatio =
false,
bool automaticallyScale =
false)
81 ScopedGraphicsContext sgc;
90 #endif // DGL_STANDALONE_WINDOW_HPP_INCLUDED
void setHeight(uint height)
bool isVisible() const noexcept
void setGeometryConstraints(uint minimumWidth, uint minimumHeight, bool keepAspectRatio=false, bool automaticallyScale=false)
Definition: Window.hpp:50
double getScaleFactor() const noexcept
Definition: Application.hpp:36
bool isVisible() const noexcept
Definition: StandaloneWindow.hpp:59
uint getWidth() const noexcept
const GraphicsContext & getGraphicsContext() const noexcept
bool addIdleCallback(IdleCallback *callback, uint timerFrequencyInMs=0)
StandaloneWindow(Application &app)
Definition: StandaloneWindow.hpp:34
void repaint() noexcept
Definition: StandaloneWindow.hpp:66
void setVisible(bool visible)
StandaloneWindow(Application &app, Window &transientParentWindow)
Definition: StandaloneWindow.hpp:42
void setWidth(uint width)
void setSize(uint width, uint height)
bool removeIdleCallback(IdleCallback *callback)
Definition: StandaloneWindow.hpp:27
void done()
Definition: StandaloneWindow.hpp:51
Size< uint > getSize() const noexcept
uint getHeight() const noexcept