17 #ifndef DGL_TOP_LEVEL_WIDGET_HPP_INCLUDED
18 #define DGL_TOP_LEVEL_WIDGET_HPP_INCLUDED
22 #ifdef DISTRHO_DEFINES_H_INCLUDED
85 void setSize(uint width, uint height);
96 void repaint() noexcept
override;
104 bool addIdleCallback(
IdleCallback* callback, uint timerFrequencyInMs = 0);
106 double getScaleFactor()
const noexcept;
107 void setGeometryConstraints(uint minimumWidth,
109 bool keepAspectRatio =
false,
110 bool automaticallyScale =
false);
112 DISTRHO_DEPRECATED_BY(
"getApp()")
115 DISTRHO_DEPRECATED_BY(
"getWindow()")
127 PrivateData*
const pData;
129 #ifdef DISTRHO_DEFINES_H_INCLUDED
130 friend class DISTRHO_NAMESPACE::UI;
140 #endif // DGL_TOP_LEVEL_WIDGET_HPP_INCLUDED
#define START_NAMESPACE_DISTRHO
Definition: DistrhoInfo.hpp:828
Definition: Window.hpp:50
Definition: Geometry.hpp:30
Definition: Application.hpp:36
#define END_NAMESPACE_DISTRHO
Definition: DistrhoInfo.hpp:834
Definition: DistrhoUI.hpp:71