Vuo
2.4.4
Loading...
Searching...
No Matches
node
vuo.ui
VuoUiThemeBase.hh
Go to the documentation of this file.
1
10
#pragma once
11
12
#include "
VuoSerializable.hh
"
13
#include "
VuoUiTheme.h
"
14
#include "
VuoImageText.h
"
15
19
class
VuoUiThemeBase
:
public
VuoSerializable
20
{
21
};
22
23
VuoUiThemeBase
*
VuoUiTheme_getSpecificTheme
(
VuoUiTheme
theme, std::string type);
24
28
class
VuoUiThemeButton
:
public
VuoUiThemeBase
29
{
30
public
:
34
virtual
VuoLayer
render
(
VuoRenderedLayers
renderedLayers,
35
VuoText
label,
36
VuoPoint2d position,
37
VuoAnchor
anchor,
38
bool
isHovered,
39
bool
isPressed) = 0;
40
};
41
45
class
VuoUiThemeToggle
:
public
VuoUiThemeBase
46
{
47
public
:
51
virtual
VuoLayer
render
(
VuoRenderedLayers
renderedLayers,
52
VuoText
label,
53
VuoPoint2d position,
54
VuoAnchor
anchor,
55
bool
isHovered,
56
bool
isPressed,
57
bool
isToggled) = 0;
58
};
59
63
class
VuoUiThemeTextField
:
public
VuoUiThemeBase
64
{
65
public
:
69
virtual
VuoLayer
render
( VuoPoint2d screenSize,
70
VuoReal
screenBackingScaleFactor,
71
VuoText
label,
72
VuoText
placeholderText,
73
int
numLines,
74
int
cursorIndex,
75
int
selectionStart,
76
int
selectionEnd,
77
VuoPoint2d position,
78
VuoReal
width,
79
VuoAnchor
anchor,
80
bool
isHovered,
81
bool
isFocused,
82
VuoImageTextData
* textImageData) = 0;
83
};
84
88
class
VuoUiThemeSlider
:
public
VuoUiThemeBase
89
{
90
public
:
94
virtual
VuoReal
minimumTrackLength
() = 0;
95
99
virtual
VuoLayer
render
(
VuoRenderedLayers
renderedLayers,
100
VuoText
label,
101
VuoReal
trackLength,
102
VuoReal
normalizedProgress,
103
VuoPoint2d position,
104
VuoAnchor
anchor,
105
VuoOrientation
orientation,
106
bool
isHovered,
107
bool
isPressed) = 0;
108
113
virtual
VuoReal
handleMovementLength
(
VuoReal
trackLength) = 0;
114
118
virtual
bool
isPointInsideSliderHandle
(
VuoRenderedLayers
renderedLayers,
119
VuoReal
trackLength,
120
VuoReal
normalizedProgress,
121
VuoPoint2d position,
122
VuoAnchor
anchor,
123
VuoOrientation
orientation,
124
VuoPoint2d pointToTest) = 0;
125
};
Generated on Thu Nov 9 2023 16:59:30 for Vuo by
1.9.8