RigsofRods
2023.09
Soft-body Physics Simulation
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
doc
angelscript
Script2Game
AngelImGui
AngelImGui_funcs_widgets.h
Go to the documentation of this file.
1
2
// =================================================== //
3
// THIS IS NOT A C++ HEADER! Only a dummy for Doxygen. //
4
// =================================================== //
5
6
namespace
AngelImGui
{
// Dummy namespace, just to distinguish AngelScript from C++
7
16
// Widgets: Text
17
void
Text(
const
string
&in);
18
void
TextDisabled(
const
string
&in);
19
void
TextColored(color col,
const
string
&in);
20
void
TextWrapped(
const
string
&in);
21
void
LabelText(
const
string
&in,
const
string
&in);
22
void
Bullet();
23
void
BulletText(
const
string
&in);
24
25
// Widgets: Main
26
bool
Button(
const
string
&in, vector2 = vector2(0,0));
27
bool
SmallButton(
const
string
&in);
28
bool
InvisibleButton(
const
string
&in, vector2);
29
void
Image(
const
Ogre::TexturePtr&in, vector2);
30
bool
Checkbox(
const
string
&in,
bool
&inout);
31
bool
CheckboxFlags(
const
string
&in, uint&inout, uint);
32
bool
RadioButton(
const
string
&in,
bool
);
33
bool
RadioButton(
const
string
&in,
int
&inout,
int
);
34
void
ProgressBar(
float
, vector2=vector2(-1,0),
const
string
&in = \
"\");
35
36
37
// Widgets: Drags
38
bool DragFloat(const string&in, float&inout, float = 1.0f, float = 0.0f, float = 0.0f);
39
bool DragFloat2(const string&in, vector2&inout);
40
bool DragFloat3(const string&in, vector3&inout);
41
42
bool DragFloatRange2(const string&in, float&inout, float&inout, float = 0.0f, float = 1.0f);
43
bool DragIntRange2(const string&in, int&inout, int&inout, int, int);
44
45
// Widgets: Input with Keyboard
46
static char imgui_text_buffer[4096]; // shared with multiple widgets
47
bool InputText(const string&in, string&inout);
48
bool InputTextMultiline(const string&in, string&inout, const vector2&in = vector2(0,0));
49
bool InputFloat(const string&, float&inout);
50
bool InputFloat2(const string&, vector2&inout);
51
bool InputFloat3(const string&, vector3&inout);
52
53
bool InputInt(const string&, int&inout);
54
55
56
// Widgets: Sliders (tip: ctrl+click on a slider to input with keyboard. manually input values aren't clamped, can go off-bounds)
57
bool SliderFloat(const string&in, float&inout, float = 0.0f, float = 0.0f);
58
bool SliderFloat2(const string&in, vector2&inout, float, float);
59
bool SliderFloat3(const string&in, vector3&inout, float, float);
60
bool SliderInt(const string&in, int&inout, int = 0, int = 0);
61
62
63
// Widgets: Color Editor/Picker
64
bool ColorEdit3(const string&in, color&inout);
65
bool ColorEdit4(const string&in, color&inout);
66
67
bool ColorButton(const string&in, color);
68
69
// Widgets: Trees
70
bool TreeNode(const string&in);
71
void TreePush(const string&in);
72
void TreePop();
73
void TreeAdvanceToLabelPos();
74
float GetTreeNodeToLabelSpacing();
75
void SetNextTreeNodeOpen(bool);
76
bool CollapsingHeader(const string&in);
77
bool CollapsingHeader(const string&in, bool&inout);
78
79
// Widgets: Selectable / Lists
80
bool Selectable(const string&in, bool = false);
81
bool ListBoxHeader(const string&in);
82
83
// Values
84
void Value(const string&in, bool);
85
void Value(const string&in, int);
86
void Value(const string&in, uint);
87
void Value(const string&in, float);
88
89
92
93
} // namespace AngelImGui (dummy, just to distinguish AngelScript from C++)
AngelImGui
DearIMGUI-AngelScript bindings; Actually named ImGui in the scripts, just changed for docs to separat...
Definition:
AngelImGui_funcs_columns.h:6
Generated by
1.8.17