17 #ifndef DGL_TOP_LEVEL_WIDGET_HPP_INCLUDED
18 #define DGL_TOP_LEVEL_WIDGET_HPP_INCLUDED
22 #ifdef DISTRHO_DEFINES_H_INCLUDED
23 START_NAMESPACE_DISTRHO
85 void setSize(uint width, uint height);
94 bool addIdleCallback(
IdleCallback* callback, uint timerFrequencyInMs = 0);
96 double getScaleFactor()
const noexcept;
99 void setGeometryConstraints(uint minimumWidth,
101 bool keepAspectRatio =
false,
102 bool automaticallyScale =
false);
104 DISTRHO_DEPRECATED_BY(
"getApp()")
107 DISTRHO_DEPRECATED_BY(
"getWindow()")
112 PrivateData*
const pData;
114 #ifdef DISTRHO_DEFINES_H_INCLUDED
115 friend class DISTRHO_NAMESPACE::UI;
125 #endif // DGL_TOP_LEVEL_WIDGET_HPP_INCLUDED
Definition: Window.hpp:50
Definition: Geometry.hpp:30
Definition: Application.hpp:36
Definition: DistrhoUI.hpp:71