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 string{
'\0',
'\0',
'\0',
'\0',
'\0',
'\0',
'\0',
'\0'} {}
177 absolutePos(0.0, 0.0) {}
195 absolutePos(0.0, 0.0) {}
217 ScrollDirection direction;
223 absolutePos(0.0, 0.0),
225 direction(kScrollSmooth) {}
328 void setSize(uint width, uint height) noexcept;
339 uint
getId() const noexcept;
345 void setId(uint
id) noexcept;
377 virtual
void repaint() noexcept;
379 DISTRHO_DEPRECATED_BY("
getApp()")
382 DISTRHO_DEPRECATED_BY(
"getWindow()")
395 virtual bool onKeyboard(
const KeyboardEvent&);
401 virtual bool onSpecial(
const SpecialEvent&);
413 virtual bool onMouse(
const MouseEvent&);
419 virtual bool onMotion(
const MotionEvent&);
425 virtual bool onScroll(
const ScrollEvent&);
430 virtual void onResize(
const ResizeEvent&);
434 PrivateData*
const pData;
438 DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(
Widget)
445 #endif // DGL_WIDGET_HPP_INCLUDED
Definition: Window.hpp:50
Definition: Application.hpp:36