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'} {}
209 ScrollDirection direction;
216 direction(kScrollSmooth) {}
319 void setSize(uint width, uint height) noexcept;
330 uint
getId() const noexcept;
336 void setId(uint
id) noexcept;
368 virtual
void repaint() noexcept;
370 DISTRHO_DEPRECATED_BY("
getApp()")
373 DISTRHO_DEPRECATED_BY(
"getWindow()")
386 virtual bool onKeyboard(
const KeyboardEvent&);
392 virtual bool onSpecial(
const SpecialEvent&);
404 virtual bool onMouse(
const MouseEvent&);
410 virtual bool onMotion(
const MotionEvent&);
416 virtual bool onScroll(
const ScrollEvent&);
421 virtual void onResize(
const ResizeEvent&);
425 PrivateData*
const pData;
429 DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(
Widget)
436 #endif // DGL_WIDGET_HPP_INCLUDED
Definition: Window.hpp:50
Definition: Application.hpp:34