Vuo
2.0.2
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
VuoColor
cursorColor,
72
VuoText
label,
73
VuoText
placeholderText,
74
int
numLines,
75
int
cursorIndex,
76
int
selectionStart,
77
int
selectionEnd,
78
VuoPoint2d position,
79
VuoReal
width,
80
VuoAnchor
anchor,
81
bool
isHovered,
82
bool
isFocused,
83
VuoImageTextData
* textImageData) = 0;
84
};
85
89
class
VuoUiThemeSlider
:
public
VuoUiThemeBase
90
{
91
public
:
95
virtual
VuoReal
minimumTrackLength
() = 0;
96
100
virtual
VuoLayer
render
(
VuoRenderedLayers
renderedLayers,
101
VuoText
label,
102
VuoReal
trackLength,
103
VuoReal
normalizedProgress,
104
VuoPoint2d position,
105
VuoAnchor
anchor,
106
VuoOrientation
orientation,
107
bool
isHovered,
108
bool
isPressed) = 0;
109
114
virtual
VuoReal
handleMovementLength
(
VuoReal
trackLength) = 0;
115
119
virtual
bool
isPointInsideSliderHandle
(
VuoRenderedLayers
renderedLayers,
120
VuoReal
trackLength,
121
VuoReal
normalizedProgress,
122
VuoPoint2d position,
123
VuoAnchor
anchor,
124
VuoOrientation
orientation,
125
VuoPoint2d pointToTest) = 0;
126
};
Generated on Thu Mar 19 2020 23:16:02 for Vuo by
1.8.17