ionGUI.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <ionMath.h>
5 #include "imGUI.h"
6 #include "CGUIManager.h"
7 #include "CWindowWidget.h"
8 
9 
10 namespace ImGui
11 {
12  bool SliderDouble(const char* label, double* v, double v_min, double v_max, const char* display_format = "%.3f", double power = 1.0);
13  bool ColorEdit3(const char* label, color3f & Color);
14 
15  bool ColorPicker4(float* col, bool show_alpha);
16  bool ColorPicker3(float col[3]);
17  bool ColorPicker3(color3f & col);
18 
19  bool DragVec2(const char* label, vec2f & v, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* display_format = "%.3f", float power = 1.0f);
20  bool DragVec3(const char* label, vec3f & v, float v_speed = 1.0f, float v_min = 0.0f, float v_max = 0.0f, const char* display_format = "%.3f", float power = 1.0f);
21 
22  bool Combo(const char* label, int* current_item, std::initializer_list<char const *> const & items, int height_in_items = -1);
23 
24  class scoped_id
25  {
26 
27  private:
28 
29  scoped_id(scoped_id const &) = delete;
30  scoped_id(scoped_id const &&) = delete;
31  scoped_id & operator =(scoped_id const &) = delete;
32  scoped_id & operator =(scoped_id const &&) = delete;
33 
34  public:
35 
36  scoped_id(char const * const str_id);
37  scoped_id(int const int_id);
38  ~scoped_id();
39  };
40 }
41 
42 namespace ion
43 {
44 
45  char const * BoolToString(bool const B);
46 
47 }
bool DragVec2(const char *label, vec2f &v, float v_speed, float v_min, float v_max, const char *display_format, float power)
Definition: ionGUI.cpp:33
Definition: SColor.h:8
~scoped_id()
Definition: ionGUI.cpp:71
bool DragVec3(const char *label, vec3f &v, float v_speed, float v_min, float v_max, const char *display_format, float power)
Definition: ionGUI.cpp:44
char const * BoolToString(bool const B)
Definition: ionGUI.cpp:77
Customized variant of vec3 that intelligently handles conversion between floating point and integer c...
Definition: SColor.h:67
Definition: ionGUI.h:24
Definition: CCatmullRomAdvancedSplineInterpolator.h:7
bool SliderDouble(const char *label, double *v, double v_min, double v_max, const char *display_format, double power)
Definition: ionGUI.cpp:8
bool ColorPicker3(float col[3])
Definition: imgui_color_picker.cpp:128
Definition: imgui_color_picker.cpp:14
bool ColorEdit3(const char *label, color3f &Color)
Definition: ionGUI.cpp:22
bool ColorPicker4(float *col, bool show_alpha)
Definition: imgui_color_picker.cpp:17
bool Combo(const char *label, int *current_item, std::initializer_list< char const * > const &items, int height_in_items)
Definition: ionGUI.cpp:55