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