VCV Rack API v2
Loading...
Searching...
No Matches
Scrollbar.hpp
Go to the documentation of this file.
1#pragma once
3#include <ui/common.hpp>
4
5
6namespace rack {
7namespace ui {
8
9
12 struct Internal;
13 Internal* internal;
14
15 bool vertical = false;
16
19 void draw(const DrawArgs& args) override;
20 void onButton(const ButtonEvent& e) override;
21 void onDragStart(const DragStartEvent& e) override;
22 void onDragEnd(const DragEndEvent& e) override;
23 void onDragMove(const DragMoveEvent& e) override;
24};
25
26
28
29
30} // namespace ui
31} // namespace rack
#define DEPRECATED
Attribute for deprecated functions and symbols.
Definition common.hpp:26
DEPRECATED typedef Scrollbar ScrollBar
Definition Scrollbar.hpp:27
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Parent must be a ScrollWidget.
Definition Scrollbar.hpp:11
void onDragMove(const DragMoveEvent &e) override
void onButton(const ButtonEvent &e) override
bool vertical
Definition Scrollbar.hpp:15
Internal * internal
Definition Scrollbar.hpp:13
void onDragEnd(const DragEndEvent &e) override
void draw(const DrawArgs &args) override
Draws the widget to the NanoVG context.
void onDragStart(const DragStartEvent &e) override
A Widget that stops propagation of all recursive PositionEvents (such as ButtonEvent) but gives a cha...
Definition OpaqueWidget.hpp:12
Occurs each mouse button press or release.
Definition Widget.hpp:237
Occurs when a Widget stops being dragged by releasing the mouse button.
Definition Widget.hpp:375
Occurs every frame on the dragged Widget.
Definition Widget.hpp:381
Occurs when a Widget begins being dragged.
Definition Widget.hpp:369
Definition Widget.hpp:141