17 #ifndef DGL_WIDGET_HPP_INCLUDED
18 #define DGL_WIDGET_HPP_INCLUDED
20 #include "Geometry.hpp"
114 struct DISTRHO_DEPRECATED_BY("KeyboardEvent") SpecialEvent : BaseEvent {
119 SpecialEvent() noexcept
150 #ifdef DISTRHO_PROPER_CPP11_SUPPORT
151 string{
'\0',
'\0',
'\0',
'\0',
'\0',
'\0',
'\0',
'\0'} {}
153 string() { std::memset(
string, 0,
sizeof(
string)); }
327 void setSize(uint width, uint height) noexcept;
400 DISTRHO_DEPRECATED_BY("
getApp()")
403 DISTRHO_DEPRECATED_BY(
"getWindow()")
451 #if defined(_MSC_VER)
452 #pragma warning(push)
453 #pragma warning(disable:4996)
454 #elif defined(__clang__)
455 #pragma clang diagnostic push
456 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
457 #elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 460
458 #pragma GCC diagnostic push
459 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
461 virtual bool onSpecial(
const SpecialEvent&) {
return false; }
462 #if defined(_MSC_VER)
464 #elif defined(__clang__)
465 #pragma clang diagnostic pop
466 #elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 460
467 #pragma GCC diagnostic pop
472 PrivateData*
const pData;
476 DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(
Widget)
Definition: Application.hpp:43
Definition: Window.hpp:63