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) {}
78 void setSize(uint width, uint height) {
Window::setSize(width, height); }
80 bool addIdleCallback(
IdleCallback* callback, uint timerFrequencyInMs = 0)
86 void setGeometryConstraints(uint minimumWidth, uint minimumHeight,
87 bool keepAspectRatio =
false,
bool automaticallyScale =
false)
91 ScopedGraphicsContext sgc;
Definition: Application.hpp:43
Definition: StandaloneWindow.hpp:29
StandaloneWindow(Application &app)
Definition: StandaloneWindow.hpp:34
void done()
Definition: StandaloneWindow.hpp:51
bool isVisible() const noexcept
Definition: StandaloneWindow.hpp:68
StandaloneWindow(Application &app, Window &transientParentWindow)
Definition: StandaloneWindow.hpp:42
void repaint() noexcept
Definition: StandaloneWindow.hpp:75
void reinit()
Definition: StandaloneWindow.hpp:60
Definition: Window.hpp:63
void setVisible(bool visible)
void setHeight(uint height)
bool removeIdleCallback(IdleCallback *callback)
uint getHeight() const noexcept
bool isVisible() const noexcept
double getScaleFactor() const noexcept
void setSize(uint width, uint height)
Application & getApp() const noexcept
void setGeometryConstraints(uint minimumWidth, uint minimumHeight, bool keepAspectRatio=false, bool automaticallyScale=false, bool resizeNowIfAutoScaling=true)
const GraphicsContext & getGraphicsContext() const noexcept
uint getWidth() const noexcept
Size< uint > getSize() const noexcept
void setWidth(uint width)
bool addIdleCallback(IdleCallback *callback, uint timerFrequencyInMs=0)