17 #ifndef DGL_WINDOW_HPP_INCLUDED 
   18 #define DGL_WINDOW_HPP_INCLUDED 
   20 #include "Geometry.hpp" 
   69                     uintptr_t parentWindowHandle,
 
   78                     uintptr_t parentWindowHandle,
 
  133     bool isResizable() 
const noexcept;
 
  134     void setResizable(
bool resizable);
 
  164     void setSize(uint width, uint height);
 
  174     const char* 
getTitle() 
const noexcept;
 
  272                                 bool keepAspectRatio = 
false,
 
  273                                 bool automaticallyScale = 
false);
 
  279     DISTRHO_DEPRECATED_BY(
"isIgnoringKeyRepeat()")
 
  282     DISTRHO_DEPRECATED_BY(
"getScaleFactor()")
 
  283     inline double getScaling() 
const noexcept { 
return getScaleFactor(); }
 
  285     DISTRHO_DEPRECATED_BY(
"runAsModal(bool)")
 
  286     inline void exec(
bool blockWait = 
false) { 
runAsModal(blockWait); }
 
  306     virtual void onReshape(uint width, uint height);
 
  310     PrivateData* 
const pData;
 
  314     DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(
Window);
 
  327 #ifndef DGL_FILE_BROWSER_DISABLED 
  331     struct FileBrowserOptions {
 
  332         const char* startDir;
 
  364 #endif // DGL_FILE_BROWSER_DISABLED 
  369 #ifndef DGL_FILE_BROWSER_DISABLED 
  370     bool openFileBrowser(
const FileBrowserOptions& options);
 
  374 #ifndef DGL_FILE_BROWSER_DISABLED 
  375     virtual void fileBrowserSelected(
const char* filename);
 
  378     bool handlePluginKeyboard(
const bool press, 
const uint key);
 
  379     bool handlePluginSpecial(
const bool press, 
const Key key);
 
  384 #endif // DGL_WINDOW_HPP_INCLUDED 
  
void runAsModal(bool blockWait=false)
void setHeight(uint height)
virtual void onFocus(bool focus, CrossingMode mode)
uintptr_t getNativeWindowHandle() const noexcept
bool isVisible() const noexcept
void setTitle(const char *title)
void setGeometryConstraints(uint minimumWidth, uint minimumHeight, bool keepAspectRatio=false, bool automaticallyScale=false)
Definition: Window.hpp:50
const char * getTitle() const noexcept
double getScaleFactor() const noexcept
Definition: Geometry.hpp:30
Definition: Application.hpp:34
uint getWidth() const noexcept
const GraphicsContext & getGraphicsContext() const noexcept
bool addIdleCallback(IdleCallback *callback, uint timerFrequencyInMs=0)
virtual void onReshape(uint width, uint height)
void setVisible(bool visible)
void setWidth(uint width)
void setSize(uint width, uint height)
bool isEmbed() const noexcept
Application & getApp() const noexcept
bool removeIdleCallback(IdleCallback *callback)
Size< uint > getSize() const noexcept
void setIgnoringKeyRepeat(bool ignore) noexcept
bool isIgnoringKeyRepeat() const noexcept
uint getHeight() const noexcept