Add boldness and skew(italic) for embossed text
Change line_gap and char_gap to optional value
This commit is contained in:
parent
7b70083c78
commit
82ee1c5e4a
6 changed files with 177 additions and 15 deletions
|
@ -128,6 +128,12 @@ public:
|
|||
bool want_text_input() const;
|
||||
bool want_any_input() const;
|
||||
|
||||
// Input [optional] int for nonzero value more info in ImGui::InputInt
|
||||
static bool input_optional_int(const char *label, std::optional<int>& v, int step=1, int step_fast=100, ImGuiInputTextFlags flags=0);
|
||||
// Input [optional] float for nonzero value more info in ImGui::InputFloat
|
||||
static bool input_optional_float(const char* label, std::optional<float> &v, float step = 0.0f, float step_fast = 0.0f, const char* format = "%.3f", ImGuiInputTextFlags flags = 0);
|
||||
static bool drag_optional_float(const char* label, std::optional<float> &v, float v_speed, float v_min, float v_max, const char* format, float power);
|
||||
bool slider_optional_float(const char* label, std::optional<float> &v, float v_min, float v_max, const char* format = "%.3f", float power = 1.0f, bool clamp = true, const wxString& tooltip = {}, bool show_edit_btn = true);
|
||||
/// <summary>
|
||||
/// Truncate text by ImGui draw function to specific width
|
||||
/// NOTE 1: ImGui must be initialized
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue