17 #ifndef DGL_WIDGET_HPP_INCLUDED
18 #define DGL_WIDGET_HPP_INCLUDED
20 #include "Geometry.hpp"
70 BaseEvent() noexcept : mod(0x0), flags(0x0), time(0) {}
153 #ifdef DISTRHO_PROPER_CPP11_SUPPORT
154 string{
'\0',
'\0',
'\0',
'\0',
'\0',
'\0',
'\0',
'\0'} {}
156 string() { std::memset(
string, 0,
sizeof(
string)); }
181 absolutePos(0.0, 0.0) {}
199 absolutePos(0.0, 0.0) {}
221 ScrollDirection direction;
227 absolutePos(0.0, 0.0),
229 direction(kScrollSmooth) {}
332 void setSize(uint width, uint height) noexcept;
343 uint
getId() const noexcept;
349 void setId(uint
id) noexcept;
381 virtual
void repaint() noexcept;
383 DISTRHO_DEPRECATED_BY("
getApp()")
386 DISTRHO_DEPRECATED_BY(
"getWindow()")
399 virtual bool onKeyboard(
const KeyboardEvent&);
405 virtual bool onSpecial(
const SpecialEvent&);
417 virtual bool onMouse(
const MouseEvent&);
423 virtual bool onMotion(
const MotionEvent&);
429 virtual bool onScroll(
const ScrollEvent&);
434 virtual void onResize(
const ResizeEvent&);
438 PrivateData*
const pData;
442 DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(
Widget)
449 #endif // DGL_WIDGET_HPP_INCLUDED
Definition: Window.hpp:50
Definition: Application.hpp:36