RigsofRods  2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
AngelImGui_funcs_utils.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  // Clip-rects
17  void PushClipRect(const vector2&, const vector2&, bool);
18  void PopClipRect();
19 
20  // Focus
21  // void SetItemDefaultFocus(); // TODO update imgui
22  void SetKeyboardFocusHere(int = 0);
23 
24 
25 
26 
27  bool IsItemHovered(int = 0);
28  bool IsItemActive();
29  bool IsItemClicked(int = 0);
30  bool IsItemVisible();
31  bool IsAnyItemHovered();
32  bool IsAnyItemActive();
33  vector2 GetItemRectMin();
34  vector2 GetItemRectMax();
35  vector2 GetItemRectSize();
36  void SetItemAllowOverlap();
37  bool IsWindowFocused(int = 0);
38  bool IsWindowHovered(int = 0);
39  bool IsRectVisible(const vector2&);
40  bool IsRectVisible(const vector2&, const vector2&);
41  float GetTime();
42  int GetFrameCount();
43 
44  vector2 CalcTextSize(const string&in, bool hide_text_after_double_hash = false, float wrap_width = -1.0f);
45  void CalcListClipping(int, float, int&inout, int&inout);
46  bool BeginChildFrame(uint, const vector2&, int = 0);
47  void EndChildFrame();
48 
49  int GetKeyIndex(int);
50  bool IsKeyDown(int);
51  bool IsKeyPressed(int, bool = true);
52  bool IsKeyReleased(int);
53 
54  bool IsMouseDown(int);
55  bool IsMouseClicked(int, bool = false);
56  bool IsMouseDoubleClicked(int);
57  bool IsMouseReleased(int);
58  bool IsMouseDragging(int = 0, float = -1.0f);
59  bool IsMouseHoveringRect(const vector2&in, const vector2&in, bool = true);
60  vector2 GetMousePos();
62  vector2 GetMouseDragDelta(int = 0, float = -1.0f);
63  void ResetMouseDragDelta(int = 0);
64  int GetMouseCursor();
65  void SetMouseCursor(int);
66  void CaptureKeyboardFromApp(bool = true);
67  void CaptureMouseFromApp(bool = true);
68 
69 
70  string GetClipboardText();
71  void SetClipboardText(const string&in);
72 
75  void PlotLines(const string&in label, array<float>&in values, int values_count, int values_offset = 0, const string&in overlay_text = string(), float scale_min = FLT_MAX, float scale_max = FLT_MAX, vector2 graph_size = vector2(0,0));
76 
77 
80 
81 } // namespace AngelImGui (dummy, just to distinguish AngelScript from C++)
AngelImGui::GetFrameCount
int GetFrameCount()
AngelImGui::GetMouseCursor
int GetMouseCursor()
AngelImGui::CaptureKeyboardFromApp
void CaptureKeyboardFromApp(bool=true)
AngelImGui::SetClipboardText
void SetClipboardText(const string &in)
AngelImGui::IsWindowFocused
bool IsWindowFocused(int=0)
AngelImGui::GetMousePosOnOpeningCurrentPopup
vector2 GetMousePosOnOpeningCurrentPopup()
AngelImGui::GetKeyIndex
int GetKeyIndex(int)
AngelImGui::ResetMouseDragDelta
void ResetMouseDragDelta(int=0)
AngelImGui::SetKeyboardFocusHere
void SetKeyboardFocusHere(int=0)
AngelImGui::GetMousePos
vector2 GetMousePos()
AngelImGui::IsItemHovered
bool IsItemHovered(int=0)
AngelImGui::SetMouseCursor
void SetMouseCursor(int)
AngelImGui
DearIMGUI-AngelScript bindings; Actually named ImGui in the scripts, just changed for docs to separat...
Definition: AngelImGui_funcs_columns.h:6
AngelImGui::CalcTextSize
vector2 CalcTextSize(const string &in, bool hide_text_after_double_hash=false, float wrap_width=-1.0f)
AngelImGui::IsItemVisible
bool IsItemVisible()
AngelImGui::IsAnyItemHovered
bool IsAnyItemHovered()
AngelImGui::IsRectVisible
bool IsRectVisible(const vector2 &)
AngelImGui::GetItemRectMax
vector2 GetItemRectMax()
AngelImGui::GetClipboardText
string GetClipboardText()
AngelImGui::IsMouseClicked
bool IsMouseClicked(int, bool=false)
AngelImGui::IsMouseDragging
bool IsMouseDragging(int=0, float=-1.0f)
AngelImGui::GetMouseDragDelta
vector2 GetMouseDragDelta(int=0, float=-1.0f)
AngelImGui::IsMouseReleased
bool IsMouseReleased(int)
AngelImGui::PushClipRect
void PushClipRect(const vector2 &, const vector2 &, bool)
AngelImGui::IsKeyDown
bool IsKeyDown(int)
AngelImGui::PlotLines
void PlotLines(const string &in label, array< float > &in values, int values_count, int values_offset=0, const string &in overlay_text=string(), float scale_min=FLT_MAX, float scale_max=FLT_MAX, vector2 graph_size=vector2(0, 0))
Data plotting - we wrap the 'getter func' variant to resemble the 'float*' variant.
AngelImGui::IsItemActive
bool IsItemActive()
AngelImGui::GetTime
float GetTime()
AngelImGui::IsMouseDoubleClicked
bool IsMouseDoubleClicked(int)
AngelImGui::BeginChildFrame
bool BeginChildFrame(uint, const vector2 &, int=0)
AngelImGui::IsItemClicked
bool IsItemClicked(int=0)
AngelImGui::GetItemRectSize
vector2 GetItemRectSize()
AngelImGui::IsAnyItemActive
bool IsAnyItemActive()
AngelImGui::IsKeyPressed
bool IsKeyPressed(int, bool=true)
AngelImGui::IsMouseHoveringRect
bool IsMouseHoveringRect(const vector2 &in, const vector2 &in, bool=true)
AngelImGui::PopClipRect
void PopClipRect()
AngelImGui::CalcListClipping
void CalcListClipping(int, float, int &inout, int &inout)
AngelImGui::SetItemAllowOverlap
void SetItemAllowOverlap()
AngelImGui::IsMouseDown
bool IsMouseDown(int)
AngelImGui::IsWindowHovered
bool IsWindowHovered(int=0)
AngelImGui::CaptureMouseFromApp
void CaptureMouseFromApp(bool=true)
AngelImGui::EndChildFrame
void EndChildFrame()
AngelImGui::GetItemRectMin
vector2 GetItemRectMin()
AngelImGui::IsKeyReleased
bool IsKeyReleased(int)