Lines Matching defs:char

96 static const signed char    IM_S8_MIN  = -128;
97 static const signed char IM_S8_MAX = 127;
98 static const unsigned char IM_U8_MIN = 0;
99 static const unsigned char IM_U8_MAX = 0xFF;
128 static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end);
150 void ImGui::TextEx(const char* text, const char* text_end, ImGuiTextFlags flags)
162 const char* text_begin = text;
176 const char* line = text;
190 const char* line_end = (const char*)memchr(line, '\n', text_end - line);
211 const char* line_end = (const char*)memchr(line, '\n', text_end - line);
226 const char* line_end = (const char*)memchr(line, '\n', text_end - line);
257 void ImGui::TextUnformatted(const char* text, const char* text_end)
262 void ImGui::Text(const char* fmt, ...)
270 void ImGui::TextV(const char* fmt, va_list args)
278 const char* text_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
282 void ImGui::TextColored(const ImVec4& col, const char* fmt, ...)
290 void ImGui::TextColoredV(const ImVec4& col, const char* fmt, va_list args)
294 TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting
300 void ImGui::TextDisabled(const char* fmt, ...)
308 void ImGui::TextDisabledV(const char* fmt, va_list args)
313 TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting
319 void ImGui::TextWrapped(const char* fmt, ...)
327 void ImGui::TextWrappedV(const char* fmt, va_list args)
334 TextEx(va_arg(args, const char*), NULL, ImGuiTextFlags_NoWidthForLargeClippedText); // Skip formatting
341 void ImGui::LabelText(const char* label, const char* fmt, ...)
350 void ImGui::LabelTextV(const char* label, const char* fmt, va_list args)
360 const char* value_text_begin = &g.TempBuffer[0];
361 const char* value_text_end = value_text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
378 void ImGui::BulletText(const char* fmt, ...)
387 void ImGui::BulletTextV(const char* fmt, va_list args)
396 const char* text_begin = g.TempBuffer;
397 const char* text_end = text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
670 bool ImGui::ButtonEx(const char* label, const ImVec2& size_arg, ImGuiButtonFlags flags)
714 bool ImGui::Button(const char* label, const ImVec2& size_arg)
720 bool ImGui::SmallButton(const char* label)
732 bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg, ImGuiButtonFlags flags)
754 bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiButtonFlags flags)
784 bool ImGui::ArrowButton(const char* str_id, ImGuiDir dir)
1070 bool ImGui::Checkbox(const char* label, bool* v)
1128 bool ImGui::CheckboxFlagsT(const char* label, T* flags, T flags_value)
1156 bool ImGui::CheckboxFlags(const char* label, int* flags, int flags_value)
1161 bool ImGui::CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value)
1166 bool ImGui::CheckboxFlags(const char* label, ImS64* flags, ImS64 flags_value)
1171 bool ImGui::CheckboxFlags(const char* label, ImU64* flags, ImU64 flags_value)
1176 bool ImGui::RadioButton(const char* label, bool active)
1229 // FIXME: This would work nicely if it was a public template, e.g. 'template<T> RadioButton(const char* label, T* v, T v_button)', but I'm not sure how we would expose it..
1230 bool ImGui::RadioButton(const char* label, int* v, int v_button)
1239 void ImGui::ProgressBar(float fraction, const ImVec2& size_arg, const char* overlay)
1263 char overlay_buf[32];
1560 bool ImGui::BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags)
1663 char name[16];
1750 // Getter for the old Combo() API: const char*[]
1751 static bool Items_ArrayGetter(void* data, int idx, const char** out_text)
1753 const char* const* items = (const char* const*)data;
1760 static bool Items_SingleStringGetter(void* data, int idx, const char** out_text)
1763 const char* items_separated_by_zeros = (const char*)data;
1765 const char* p = items_separated_by_zeros;
1781 bool ImGui::Combo(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int popup_max_height_in_items)
1786 const char* preview_value = NULL;
1804 const char* item_text;
1826 bool ImGui::Combo(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items)
1833 bool ImGui::Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int height_in_items)
1836 const char* p = items_separated_by_zeros; // FIXME-OPT: Avoid computing this, or at least only when combo is open
1861 { sizeof(char), "S8", "%d", "%d" }, // ImGuiDataType_S8
1862 { sizeof(unsigned char), "U8", "%u", "%u" },
1882 static const char* PatchFormatStringFloatToInt(const char* fmt)
1886 const char* fmt_start = ImParseFormatFindStart(fmt); // Find % (if any, and ignore %%)
1887 const char* fmt_end = ImParseFormatFindEnd(fmt_start); // Find end of format specifier, which itself is an exercise of confidence/recklessness (because snprintf is dependent on libc or user).
1909 int ImGui::DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* p_data, const char* format)
1984 bool ImGui::DataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* p_data, const char* format)
1991 char op = buf[0];
2151 static const char* ImAtoi(const char* src, TYPE* output)
2166 static void SanitizeFormatString(const char* fmt, char* fmt_out, size_t fmt_out_size)
2169 const char* fmt_end = ImParseFormatFindEnd(fmt);
2173 char c = *(fmt++);
2181 TYPE ImGui::RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, TYPE v)
2183 const char* fmt_start = ImParseFormatFindStart(format);
2188 char fmt_sanitized[32];
2193 char v_str[64];
2195 const char* p = v_str;
2226 bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags)
2341 bool ImGui::DragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags)
2379 bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags)
2452 char value_buf[64];
2453 const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format);
2465 bool ImGui::DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags)
2485 p_data = (void*)((char*)p_data + type_size);
2489 const char* label_end = FindRenderedTextEnd(label);
2500 bool ImGui::DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
2505 bool ImGui::DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
2510 bool ImGui::DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
2515 bool ImGui::DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
2521 bool ImGui::DragFloatRange2(const char* label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, const char* format, const char* format_max, ImGuiSliderFlags flags)
2554 bool ImGui::DragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
2559 bool ImGui::DragInt2(const char* label, int v[2], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
2564 bool ImGui::DragInt3(const char* label, int v[3], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
2569 bool ImGui::DragInt4(const char* label, int v[4], float v_speed, int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
2575 bool ImGui::DragIntRange2(const char* label, int* v_current_min, int* v_current_max, float v_speed, int v_min, int v_max, const char* format, const char* format_max, ImGuiSliderFlags flags)
2610 bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* p_data, float v_speed, const void* p_min, const void* p_max, const char* format, float power)
2622 bool ImGui::DragScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, float v_speed, const void* p_min, const void* p_max, const char* format, float power)
2796 bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, TYPE* v, const TYPE v_min, const TYPE v_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb)
2956 bool ImGui::SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* p_v, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags, ImRect* out_grab_bb)
2997 bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags)
3064 char value_buf[64];
3065 const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format);
3078 bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, ImGuiSliderFlags flags)
3098 v = (void*)((char*)v + type_size);
3102 const char* label_end = FindRenderedTextEnd(label);
3113 bool ImGui::SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
3118 bool ImGui::SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
3123 bool ImGui::SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
3128 bool ImGui::SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
3133 bool ImGui::SliderAngle(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format, ImGuiSliderFlags flags)
3143 bool ImGui::SliderInt(const char* label, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
3148 bool ImGui::SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
3153 bool ImGui::SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
3158 bool ImGui::SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
3163 bool ImGui::VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, ImGuiSliderFlags flags)
3213 char value_buf[64];
3214 const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, p_data, format);
3222 bool ImGui::VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format, ImGuiSliderFlags flags)
3227 bool ImGui::VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format, ImGuiSliderFlags flags)
3235 bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_min, const void* p_max, const char* format, float power)
3246 bool ImGui::SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* v_min, const void* v_max, const char* format, float power)
3281 const char* ImParseFormatFindStart(const char* fmt)
3283 while (char c = fmt[0])
3294 const char* ImParseFormatFindEnd(const char* fmt)
3301 for (char c; (c = *fmt) != 0; fmt++)
3316 const char* ImParseFormatTrimDecorations(const char* fmt, char* buf, size_t buf_size)
3318 const char* fmt_start = ImParseFormatFindStart(fmt);
3321 const char* fmt_end = ImParseFormatFindEnd(fmt_start);
3330 int ImParseFormatPrecision(const char* fmt, int default_precision)
3354 bool ImGui::TempInputText(const ImRect& bb, ImGuiID id, const char* label, char* buf, int buf_size, ImGuiInputTextFlags flags)
3377 bool ImGui::TempInputScalar(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* p_data, const char* format, const void* p_clamp_min, const void* p_clamp_max)
3381 char fmt_buf[32];
3382 char data_buf[32];
3416 bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* p_data, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags)
3428 char buf[64];
3468 const char* label_end = FindRenderedTextEnd(label);
3490 bool ImGui::InputScalarN(const char* label, ImGuiDataType data_type, void* p_data, int components, const void* p_step, const void* p_step_fast, const char* format, ImGuiInputTextFlags flags)
3510 p_data = (void*)((char*)p_data + type_size);
3514 const char* label_end = FindRenderedTextEnd(label);
3525 bool ImGui::InputFloat(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags)
3531 bool ImGui::InputFloat2(const char* label, float v[2], const char* format, ImGuiInputTextFlags flags)
3536 bool ImGui::InputFloat3(const char* label, float v[3], const char* format, ImGuiInputTextFlags flags)
3541 bool ImGui::InputFloat4(const char* label, float v[4], const char* format, ImGuiInputTextFlags flags)
3546 bool ImGui::InputInt(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags)
3549 const char* format = (flags & ImGuiInputTextFlags_CharsHexadecimal) ? "%08X" : "%d";
3553 bool ImGui::InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags)
3558 bool ImGui::InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags)
3563 bool ImGui::InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags)
3568 bool ImGui::InputDouble(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags)
3583 bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
3589 bool ImGui::InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
3594 bool ImGui::InputTextWithHint(const char* label, const char* hint, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
3600 static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end)
3603 const char* s = text_begin;
3604 while (char c = *s++) // We are only matching for \n so we can ignore UTF-8 decoding
3801 char* dst = Buf + pos;
3802 const char* src = Buf + pos + bytes_count;
3803 while (char c = *src++)
3816 void ImGuiInputTextCallbackData::InsertChars(int pos, const char* new_text, const char* new_text_end)
3838 memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char));
3944 bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* callback_user_data)
4054 const char* buf_end = NULL;
4129 const char* buf_end = NULL;
4329 char* clipboard_data = (char*)IM_ALLOC(clipboard_data_len * sizeof(char));
4344 if (const char* clipboard = GetClipboardText())
4350 for (const char* s = clipboard; *s; )
4378 const char* apply_new_text = NULL;
4552 const char* buf_display = buf_display_from_state ? state->TextA.Data : buf; //-V595
4553 const char* buf_display_end = NULL; // We have specialized paths below for setting the length
4784 bool ImGui::ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags)
4816 bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags)
4828 const char* label_display_end = FindRenderedTextEnd(label);
4886 static const char* ids[4] = { "##X", "##Y", "##Z", "##W" };
4887 static const char* fmt_table_int[3][4] =
4893 static const char* fmt_table_float[3][4] =
4924 char buf[64];
4933 char* p = buf;
5050 bool ImGui::ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags)
5073 bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags, const float* ref_col)
5231 const char* label_display_end = FindRenderedTextEnd(label);
5444 bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, ImVec2 size)
5547 void ImGui::ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags)
5552 const char* text_end = text ? FindRenderedTextEnd(text, NULL) : text;
5609 char buf[64];
5685 bool ImGui::TreeNode(const char* str_id, const char* fmt, ...)
5694 bool ImGui::TreeNode(const void* ptr_id, const char* fmt, ...)
5703 bool ImGui::TreeNode(const char* label)
5711 bool ImGui::TreeNodeV(const char* str_id, const char* fmt, va_list args)
5716 bool ImGui::TreeNodeV(const void* ptr_id, const char* fmt, va_list args)
5721 bool ImGui::TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags)
5730 bool ImGui::TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...)
5739 bool ImGui::TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...)
5748 bool ImGui::TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args)
5755 const char* label_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
5759 bool ImGui::TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args)
5766 const char* label_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
5816 bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end)
6003 void ImGui::TreePush(const char* str_id)
6070 bool ImGui::CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags)
6083 bool ImGui::CollapsingHeader(const char* label, bool* p_visible, ImGuiTreeNodeFlags flags)
6126 bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags flags, const ImVec2& size_arg)
6271 bool ImGui::Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags, const ImVec2& size_arg)
6291 bool ImGui::BeginListBox(const char* label, const ImVec2& size_arg)
6332 bool ImGui::ListBoxHeader(const char* label, int items_count, int height_in_items)
6355 bool ImGui::ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_items)
6363 bool ImGui::ListBox(const char* label, int* current_item, bool (*items_getter)(void*, int, const char**), void* data, int items_count, int height_in_items)
6384 const char* item_text;
6420 int ImGui::PlotEx(ImGuiPlotType plot_type, const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 frame_size)
6549 const float v = *(const float*)(const void*)((const unsigned char*)plot_data->Values + (size_t)idx * plot_data->Stride);
6553 void ImGui::PlotLines(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride)
6559 void ImGui::PlotLines(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)
6564 void ImGui::PlotHistogram(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride)
6570 void ImGui::PlotHistogram(const char* label, float (*values_getter)(void* data, int idx), void* data, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size)
6582 void ImGui::Value(const char* prefix, bool b)
6587 void ImGui::Value(const char* prefix, int v)
6592 void ImGui::Value(const char* prefix, unsigned int v)
6597 void ImGui::Value(const char* prefix, float v, const char* float_format)
6601 char fmt[64];
6744 bool ImGui::BeginViewportSideBar(const char* name, ImGuiViewport* viewport_p, ImGuiDir dir, float axis_size, ImGuiWindowFlags window_flags)
6813 bool ImGui::BeginMenuEx(const char* label, const char* icon, bool enabled)
6985 bool ImGui::BeginMenu(const char* label, bool enabled)
7007 bool ImGui::MenuItemEx(const char* label, const char* icon, const char* shortcut, bool selected, bool enabled)
7070 bool ImGui::MenuItem(const char* label, const char* shortcut, bool selected, bool enabled)
7075 bool ImGui::MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled)
7117 static ImU32 TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label);
7169 bool ImGui::BeginTabBar(const char* str_id, ImGuiTabBarFlags flags)
7383 const char* tab_name = tab_bar->GetTabName(tab);
7513 static ImU32 ImGui::TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label)
7780 const char* tab_name = tab_bar->GetTabName(tab);
7804 bool ImGui::BeginTabItem(const char* label, bool* p_open, ImGuiTabItemFlags flags)
7847 bool ImGui::TabItemButton(const char* label, ImGuiTabItemFlags flags)
7863 bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags)
8077 void ImGui::SetTabItemClosed(const char* label)
8090 ImVec2 ImGui::TabItemCalcSize(const char* label, bool has_close_button)
8129 void ImGui::TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id, bool is_contents_visible, bool* out_just_closed, bool* out_text_clipped)