DISTRHO Plugin Framework
|
#include <TopLevelWidget.hpp>
Public Member Functions | |
TopLevelWidget (Window &windowToMapTo) | |
virtual | ~TopLevelWidget () |
Application & | getApp () const noexcept |
Window & | getWindow () const noexcept |
void | setWidth (uint width) |
void | setHeight (uint height) |
void | setSize (uint width, uint height) |
void | setSize (const Size< uint > &size) |
bool | addIdleCallback (IdleCallback *callback, uint timerFrequencyInMs=0) |
bool | removeIdleCallback (IdleCallback *callback) |
double | getScaleFactor () const noexcept |
void | repaint () noexcept |
void | repaint (const Rectangle< uint > &rect) noexcept |
void | setGeometryConstraints (uint minimumWidth, uint minimumHeight, bool keepAspectRatio=false, bool automaticallyScale=false) |
Application & | getParentApp () const noexcept |
Window & | getParentWindow () const noexcept |
![]() | |
virtual | ~Widget () |
bool | isVisible () const noexcept |
void | setVisible (bool visible) |
void | show () |
void | hide () |
uint | getWidth () const noexcept |
uint | getHeight () const noexcept |
const Size< uint > | getSize () const noexcept |
void | setWidth (uint width) noexcept |
void | setHeight (uint height) noexcept |
void | setSize (uint width, uint height) noexcept |
void | setSize (const Size< uint > &size) noexcept |
uint | getId () const noexcept |
void | setId (uint id) noexcept |
Application & | getApp () const noexcept |
Window & | getWindow () const noexcept |
const GraphicsContext & | getGraphicsContext () const noexcept |
TopLevelWidget * | getTopLevelWidget () const noexcept |
Application & | getParentApp () const noexcept |
Window & | getParentWindow () const noexcept |
Friends | |
class | Window |
Additional Inherited Members | |
![]() | |
virtual void | onDisplay ()=0 |
virtual bool | onKeyboard (const KeyboardEvent &) |
virtual bool | onSpecial (const SpecialEvent &) |
virtual bool | onCharacterInput (const CharacterInputEvent &) |
virtual bool | onMouse (const MouseEvent &) |
virtual bool | onMotion (const MotionEvent &) |
virtual bool | onScroll (const ScrollEvent &) |
virtual void | onResize (const ResizeEvent &) |
Top-Level Widget class.
This is the only Widget class that is allowed to be used directly on a Window.
This widget takes the full size of the Window it is mapped to. Sub-widgets can be added on top of this top-level widget, by creating them with this class as parent. Doing so allows for custom position and sizes.
This class is used as the type for DPF Plugin UIs. So anything that a plugin UI might need that does not belong in a simple Widget will go here.
|
explicit |
Constructor.
|
virtual |
Destructor.
|
noexcept |
Get the application associated with this top-level widget's window.
|
noexcept |
Get the window associated with this top-level widget.
void TopLevelWidget::setWidth | ( | uint | width | ) |
Set width of this widget's window.
void TopLevelWidget::setHeight | ( | uint | height | ) |
Set height of this widget's window.
void TopLevelWidget::setSize | ( | uint | width, |
uint | height | ||
) |
Set size of this widget's window, using width and height values.
void TopLevelWidget::setSize | ( | const Size< uint > & | size | ) |
Set size of this widget's window.
|
virtualnoexcept |