VCV Rack API v2
Loading...
Searching...
No Matches
Widget.hpp File Reference
#include <list>
#include <common.hpp>
#include <math.hpp>
#include <window/Window.hpp>
#include <color.hpp>
#include <widget/event.hpp>
#include <weakptr.hpp>
Include dependency graph for Widget.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rack::widget::Widget
 A node in the 2D scene graph. More...
 
struct  rack::widget::Widget::DrawArgs
 
struct  rack::widget::Widget::PositionBaseEvent
 An event prototype with a vector position. More...
 
struct  rack::widget::Widget::HoverEvent
 Occurs every frame when the mouse is hovering over a Widget. More...
 
struct  rack::widget::Widget::ButtonEvent
 Occurs each mouse button press or release. More...
 
struct  rack::widget::Widget::DoubleClickEvent
 Occurs when the left mouse button is pressed a second time on the same Widget within a time duration. More...
 
struct  rack::widget::Widget::KeyBaseEvent
 An event prototype with a GLFW key. More...
 
struct  rack::widget::Widget::HoverKeyEvent
 Occurs when a key is pressed, released, or repeated while the mouse is hovering a Widget. More...
 
struct  rack::widget::Widget::TextBaseEvent
 An event prototype with a Unicode character. More...
 
struct  rack::widget::Widget::HoverTextEvent
 Occurs when a character is typed while the mouse is hovering a Widget. More...
 
struct  rack::widget::Widget::HoverScrollEvent
 Occurs when the mouse scroll wheel is moved while the mouse is hovering a Widget. More...
 
struct  rack::widget::Widget::EnterEvent
 Occurs when a Widget begins consuming the Hover event. More...
 
struct  rack::widget::Widget::LeaveEvent
 Occurs when a different Widget is entered. More...
 
struct  rack::widget::Widget::SelectEvent
 Occurs when a Widget begins consuming the Button press event for the left mouse button. More...
 
struct  rack::widget::Widget::DeselectEvent
 Occurs when a different Widget is selected. More...
 
struct  rack::widget::Widget::SelectKeyEvent
 Occurs when a key is pressed, released, or repeated while a Widget is selected. More...
 
struct  rack::widget::Widget::SelectTextEvent
 Occurs when text is typed while a Widget is selected. More...
 
struct  rack::widget::Widget::DragBaseEvent
 
struct  rack::widget::Widget::DragStartEvent
 Occurs when a Widget begins being dragged. More...
 
struct  rack::widget::Widget::DragEndEvent
 Occurs when a Widget stops being dragged by releasing the mouse button. More...
 
struct  rack::widget::Widget::DragMoveEvent
 Occurs every frame on the dragged Widget. More...
 
struct  rack::widget::Widget::DragHoverEvent
 Occurs every frame when the mouse is hovering over a Widget while another Widget (possibly the same one) is being dragged. More...
 
struct  rack::widget::Widget::DragEnterEvent
 Occurs when the mouse enters a Widget while dragging. More...
 
struct  rack::widget::Widget::DragLeaveEvent
 Occurs when the mouse leaves a Widget while dragging. More...
 
struct  rack::widget::Widget::DragDropEvent
 Occurs when the mouse button is released over a Widget while dragging. More...
 
struct  rack::widget::Widget::PathDropEvent
 Occurs when a selection of files from the operating system is dropped onto a Widget. More...
 
struct  rack::widget::Widget::ActionEvent
 Occurs after a certain action is triggered on a Widget. More...
 
struct  rack::widget::Widget::ChangeEvent
 Occurs after the value of a Widget changes. More...
 
struct  rack::widget::Widget::DirtyEvent
 Occurs when the pixel buffer of this module must be refreshed. More...
 
struct  rack::widget::Widget::RepositionEvent
 Occurs after a Widget's position is set by Widget::setPosition(). More...
 
struct  rack::widget::Widget::ResizeEvent
 Occurs after a Widget's size is set by Widget::setSize(). More...
 
struct  rack::widget::Widget::AddEvent
 Occurs after a Widget is added to a parent. More...
 
struct  rack::widget::Widget::RemoveEvent
 Occurs before a Widget is removed from its parent. More...
 
struct  rack::widget::Widget::ShowEvent
 Occurs after a Widget is shown with Widget::show(). More...
 
struct  rack::widget::Widget::HideEvent
 Occurs after a Widget is hidden with Widget::hide(). More...
 
struct  rack::widget::Widget::ContextCreateEvent
 Occurs after the Window (including OpenGL and NanoVG contexts) are created. More...
 
struct  rack::widget::Widget::ContextDestroyEvent
 Occurs before the Window (including OpenGL and NanoVG contexts) are destroyed. More...
 

Namespaces

namespace  rack
 Root namespace for the Rack API.
 
namespace  rack::widget
 Base UI widget types.
 
namespace  rack::event
 Deprecated Rack v1 event namespace.
 

Typedefs

using rack::event::Base = widget::BaseEvent
 
using rack::event::PositionBase = widget::Widget::PositionBaseEvent
 
using rack::event::KeyBase = widget::Widget::KeyBaseEvent
 
using rack::event::TextBase = widget::Widget::TextBaseEvent
 
using rack::event::Hover = widget::Widget::HoverEvent
 
using rack::event::Button = widget::Widget::ButtonEvent
 
using rack::event::DoubleClick = widget::Widget::DoubleClickEvent
 
using rack::event::HoverKey = widget::Widget::HoverKeyEvent
 
using rack::event::HoverText = widget::Widget::HoverTextEvent
 
using rack::event::HoverScroll = widget::Widget::HoverScrollEvent
 
using rack::event::Enter = widget::Widget::EnterEvent
 
using rack::event::Leave = widget::Widget::LeaveEvent
 
using rack::event::Select = widget::Widget::SelectEvent
 
using rack::event::Deselect = widget::Widget::DeselectEvent
 
using rack::event::SelectKey = widget::Widget::SelectKeyEvent
 
using rack::event::SelectText = widget::Widget::SelectTextEvent
 
using rack::event::DragBase = widget::Widget::DragBaseEvent
 
using rack::event::DragStart = widget::Widget::DragStartEvent
 
using rack::event::DragEnd = widget::Widget::DragEndEvent
 
using rack::event::DragMove = widget::Widget::DragMoveEvent
 
using rack::event::DragHover = widget::Widget::DragHoverEvent
 
using rack::event::DragEnter = widget::Widget::DragEnterEvent
 
using rack::event::DragLeave = widget::Widget::DragLeaveEvent
 
using rack::event::DragDrop = widget::Widget::DragDropEvent
 
using rack::event::PathDrop = widget::Widget::PathDropEvent
 
using rack::event::Action = widget::Widget::ActionEvent
 
using rack::event::Change = widget::Widget::ChangeEvent
 
using rack::event::Dirty = widget::Widget::DirtyEvent
 
using rack::event::Reposition = widget::Widget::RepositionEvent
 
using rack::event::Resize = widget::Widget::ResizeEvent
 
using rack::event::Add = widget::Widget::AddEvent
 
using rack::event::Remove = widget::Widget::RemoveEvent
 
using rack::event::Show = widget::Widget::ShowEvent
 
using rack::event::Hide = widget::Widget::HideEvent