Lines Matching defs:char

100 static inline int       DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* data_ptr, const char* format);
102 static bool DataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* data_ptr, const char* format);
106 static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end);
127 void ImGui::TextUnformatted(const char* text, const char* text_end)
135 const char* text_begin = text;
149 const char* line = text;
167 const char* line_end = (const char*)memchr(line, '\n', text_end - line);
186 const char* line_end = (const char*)memchr(line, '\n', text_end - line);
202 const char* line_end = (const char*)memchr(line, '\n', text_end - line);
234 void ImGui::Text(const char* fmt, ...)
242 void ImGui::TextV(const char* fmt, va_list args)
249 const char* text_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
253 void ImGui::TextColored(const ImVec4& col, const char* fmt, ...)
261 void ImGui::TextColoredV(const ImVec4& col, const char* fmt, va_list args)
268 void ImGui::TextDisabled(const char* fmt, ...)
276 void ImGui::TextDisabledV(const char* fmt, va_list args)
283 void ImGui::TextWrapped(const char* fmt, ...)
291 void ImGui::TextWrappedV(const char* fmt, va_list args)
301 void ImGui::LabelText(const char* label, const char* fmt, ...)
310 void ImGui::LabelTextV(const char* label, const char* fmt, va_list args)
328 const char* value_text_begin = &g.TempBuffer[0];
329 const char* value_text_end = value_text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
335 void ImGui::BulletText(const char* fmt, ...)
344 void ImGui::BulletTextV(const char* fmt, va_list args)
353 const char* text_begin = g.TempBuffer;
354 const char* text_end = text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
544 bool ImGui::ButtonEx(const char* label, const ImVec2& size_arg, ImGuiButtonFlags flags)
586 bool ImGui::Button(const char* label, const ImVec2& size_arg)
592 bool ImGui::SmallButton(const char* label)
604 bool ImGui::InvisibleButton(const char* str_id, const ImVec2& size_arg)
626 bool ImGui::ArrowButtonEx(const char* str_id, ImGuiDir dir, ImVec2 size, ImGuiButtonFlags flags)
655 bool ImGui::ArrowButton(const char* str_id, ImGuiDir dir)
906 bool ImGui::Checkbox(const char* label, bool* v)
950 bool ImGui::CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_value)
965 bool ImGui::RadioButton(const char* label, bool active)
1016 bool ImGui::RadioButton(const char* label, int* v, int v_button)
1025 void ImGui::ProgressBar(float fraction, const ImVec2& size_arg, const char* overlay)
1048 char overlay_buf[32];
1280 bool ImGui::BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags flags)
1353 char name[16];
1387 // Getter for the old Combo() API: const char*[]
1388 static bool Items_ArrayGetter(void* data, int idx, const char** out_text)
1390 const char* const* items = (const char* const*)data;
1397 static bool Items_SingleStringGetter(void* data, int idx, const char** out_text)
1400 const char* items_separated_by_zeros = (const char*)data;
1402 const char* p = items_separated_by_zeros;
1418 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)
1423 const char* preview_value = NULL;
1441 const char* item_text;
1459 bool ImGui::Combo(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items)
1466 bool ImGui::Combo(const char* label, int* current_item, const char* items_separated_by_zeros, int height_in_items)
1469 const char* p = items_separated_by_zeros; // FIXME-OPT: Avoid computing this, or at least only when combo is open
1493 const char* PrintFmt; // Unused
1494 const char* ScanFmt;
1516 static const char* PatchFormatStringFloatToInt(const char* fmt)
1520 const char* fmt_start = ImParseFormatFindStart(fmt); // Find % (if any, and ignore %%)
1521 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).
1537 static inline int DataTypeFormatString(char* buf, int buf_size, ImGuiDataType data_type, const void* data_ptr, const char* format)
1588 static bool DataTypeApplyOpFromText(const char* buf, const char* initial_value_buf, ImGuiDataType data_type, void* data_ptr, const char* format)
1595 char op = buf[0];
1679 static const char* ImAtoi(const char* src, TYPE* output)
1692 TYPE ImGui::RoundScalarWithFormatT(const char* format, ImGuiDataType data_type, TYPE v)
1694 const char* fmt_start = ImParseFormatFindStart(format);
1697 char v_str[64];
1699 const char* p = v_str;
1730 bool ImGui::DragBehaviorT(ImGuiDataType data_type, TYPE* v, float v_speed, const TYPE v_min, const TYPE v_max, const char* format, float power, ImGuiDragFlags flags)
1834 bool ImGui::DragBehavior(ImGuiID id, ImGuiDataType data_type, void* v, float v_speed, const void* v_min, const void* v_max, const char* format, float power, ImGuiDragFlags flags)
1861 bool ImGui::DragScalar(const char* label, ImGuiDataType data_type, void* v, float v_speed, const void* v_min, const void* v_max, const char* format, float power)
1926 char value_buf[64];
1927 const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, v, format);
1937 bool ImGui::DragScalarN(const char* label, ImGuiDataType data_type, void* v, int components, float v_speed, const void* v_min, const void* v_max, const char* format, float power)
1956 v = (void*)((char*)v + type_size);
1965 bool ImGui::DragFloat(const char* label, float* v, float v_speed, float v_min, float v_max, const char* format, float power)
1970 bool ImGui::DragFloat2(const char* label, float v[2], float v_speed, float v_min, float v_max, const char* format, float power)
1975 bool ImGui::DragFloat3(const char* label, float v[3], float v_speed, float v_min, float v_max, const char* format, float power)
1980 bool ImGui::DragFloat4(const char* label, float v[4], float v_speed, float v_min, float v_max, const char* format, float power)
1985 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, float power)
2010 bool ImGui::DragInt(const char* label, int* v, float v_speed, int v_min, int v_max, const char* format)
2015 bool ImGui::DragInt2(const char* label, int v[2], float v_speed, int v_min, int v_max, const char* format)
2020 bool ImGui::DragInt3(const char* label, int v[3], float v_speed, int v_min, int v_max, const char* format)
2025 bool ImGui::DragInt4(const char* label, int v[4], float v_speed, int v_min, int v_max, const char* format)
2030 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)
2104 bool ImGui::SliderBehaviorT(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, TYPE* v, const TYPE v_min, const TYPE v_max, const char* format, float power, ImGuiSliderFlags flags, ImRect* out_grab_bb)
2269 bool ImGui::SliderBehavior(const ImRect& bb, ImGuiID id, ImGuiDataType data_type, void* v, const void* v_min, const void* v_max, const char* format, float power, ImGuiSliderFlags flags, ImRect* out_grab_bb)
2297 bool ImGui::SliderScalar(const char* label, ImGuiDataType data_type, void* v, const void* v_min, const void* v_max, const char* format, float power)
2362 char value_buf[64];
2363 const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, v, format);
2374 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)
2393 v = (void*)((char*)v + type_size);
2402 bool ImGui::SliderFloat(const char* label, float* v, float v_min, float v_max, const char* format, float power)
2407 bool ImGui::SliderFloat2(const char* label, float v[2], float v_min, float v_max, const char* format, float power)
2412 bool ImGui::SliderFloat3(const char* label, float v[3], float v_min, float v_max, const char* format, float power)
2417 bool ImGui::SliderFloat4(const char* label, float v[4], float v_min, float v_max, const char* format, float power)
2422 bool ImGui::SliderAngle(const char* label, float* v_rad, float v_degrees_min, float v_degrees_max, const char* format)
2432 bool ImGui::SliderInt(const char* label, int* v, int v_min, int v_max, const char* format)
2437 bool ImGui::SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* format)
2442 bool ImGui::SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* format)
2447 bool ImGui::SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* format)
2452 bool ImGui::VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_type, void* v, const void* v_min, const void* v_max, const char* format, float power)
2503 char value_buf[64];
2504 const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), data_type, v, format);
2512 bool ImGui::VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min, float v_max, const char* format, float power)
2517 bool ImGui::VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v_max, const char* format)
2544 const char* ImParseFormatFindStart(const char* fmt)
2546 while (char c = fmt[0])
2557 const char* ImParseFormatFindEnd(const char* fmt)
2564 for (char c; (c = *fmt) != 0; fmt++)
2579 const char* ImParseFormatTrimDecorations(const char* fmt, char* buf, size_t buf_size)
2581 const char* fmt_start = ImParseFormatFindStart(fmt);
2584 const char* fmt_end = ImParseFormatFindEnd(fmt_start);
2593 int ImParseFormatPrecision(const char* fmt, int default_precision)
2617 bool ImGui::InputScalarAsWidgetReplacement(const ImRect& bb, ImGuiID id, const char* label, ImGuiDataType data_type, void* data_ptr, const char* format)
2626 char fmt_buf[32];
2627 char data_buf[32];
2644 bool ImGui::InputScalar(const char* label, ImGuiDataType data_type, void* data_ptr, const void* step, const void* step_fast, const char* format, ImGuiInputTextFlags flags)
2657 char buf[64];
2707 bool ImGui::InputScalarN(const char* label, ImGuiDataType data_type, void* v, int components, const void* step, const void* step_fast, const char* format, ImGuiInputTextFlags flags)
2726 v = (void*)((char*)v + type_size);
2735 bool ImGui::InputFloat(const char* label, float* v, float step, float step_fast, const char* format, ImGuiInputTextFlags flags)
2741 bool ImGui::InputFloat2(const char* label, float v[2], const char* format, ImGuiInputTextFlags flags)
2746 bool ImGui::InputFloat3(const char* label, float v[3], const char* format, ImGuiInputTextFlags flags)
2751 bool ImGui::InputFloat4(const char* label, float v[4], const char* format, ImGuiInputTextFlags flags)
2756 // Prefer using "const char* format" directly, which is more flexible and consistent with other API.
2758 bool ImGui::InputFloat(const char* label, float* v, float step, float step_fast, int decimal_precision, ImGuiInputTextFlags flags)
2760 char format[16] = "%f";
2766 bool ImGui::InputFloat2(const char* label, float v[2], int decimal_precision, ImGuiInputTextFlags flags)
2768 char format[16] = "%f";
2774 bool ImGui::InputFloat3(const char* label, float v[3], int decimal_precision, ImGuiInputTextFlags flags)
2776 char format[16] = "%f";
2782 bool ImGui::InputFloat4(const char* label, float v[4], int decimal_precision, ImGuiInputTextFlags flags)
2784 char format[16] = "%f";
2791 bool ImGui::InputInt(const char* label, int* v, int step, int step_fast, ImGuiInputTextFlags flags)
2794 const char* format = (flags & ImGuiInputTextFlags_CharsHexadecimal) ? "%08X" : "%d";
2798 bool ImGui::InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags)
2803 bool ImGui::InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags)
2808 bool ImGui::InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags)
2813 bool ImGui::InputDouble(const char* label, double* v, double step, double step_fast, const char* format, ImGuiInputTextFlags flags)
2827 bool ImGui::InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
2833 bool ImGui::InputTextMultiline(const char* label, char* buf, size_t buf_size, const ImVec2& size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data)
2838 static int InputTextCalcTextLenAndLineCount(const char* text_begin, const char** out_text_end)
2841 const char* s = text_begin;
2842 while (char c = *s++) // We are only matching for \n so we can ignore UTF-8 decoding
3017 char* dst = Buf + pos;
3018 const char* src = Buf + pos + bytes_count;
3019 while (char c = *src++)
3032 void ImGuiInputTextCallbackData::InsertChars(int pos, const char* new_text, const char* new_text_end)
3054 memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char));
3129 bool ImGui::InputTextEx(const char* label, char* buf, int buf_size, const ImVec2& size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* callback_user_data)
3230 const char* buf_end = NULL;
3280 const char* buf_end = NULL;
3439 if (const char* clipboard = GetClipboardText())
3445 for (const char* s = clipboard; *s; )
3468 const char* apply_new_text = NULL;
3608 const char* buf_display = (g.ActiveId == id && is_editable) ? edit_state.TempBuffer.Data : buf; buf = NULL;
3769 const char* buf_end = NULL;
3820 bool ImGui::ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags)
3828 bool ImGui::ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags)
3839 const char* label_display_end = FindRenderedTextEnd(label);
3882 const char* ids[4] = { "##X", "##Y", "##Z", "##W" };
3883 const char* fmt_table_int[3][4] =
3889 const char* fmt_table_float[3][4] =
3922 char buf[64];
3931 char* p = buf;
4036 bool ImGui::ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags)
4102 bool ImGui::ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags, const float* ref_col)
4238 const char* label_display_end = FindRenderedTextEnd(label);
4410 bool ImGui::ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags flags, ImVec2 size)
4501 void ImGui::ColorTooltip(const char* text, const float* col, ImGuiColorEditFlags flags)
4508 const char* text_end = text ? FindRenderedTextEnd(text, NULL) : text;
4553 char buf[64];
4627 bool ImGui::TreeNode(const char* str_id, const char* fmt, ...)
4636 bool ImGui::TreeNode(const void* ptr_id, const char* fmt, ...)
4645 bool ImGui::TreeNode(const char* label)
4653 bool ImGui::TreeNodeV(const char* str_id, const char* fmt, va_list args)
4658 bool ImGui::TreeNodeV(const void* ptr_id, const char* fmt, va_list args)
4663 bool ImGui::TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags)
4672 bool ImGui::TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, ...)
4681 bool ImGui::TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, ...)
4690 bool ImGui::TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args)
4697 const char* label_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
4701 bool ImGui::TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args)
4708 const char* label_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt, args);
4759 bool ImGui::TreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, const char* label, const char* label_end)
4876 const char log_prefix[] = "\n##";
4877 const char log_suffix[] = "##";
4911 void ImGui::TreePush(const char* str_id)
4978 bool ImGui::CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags)
4987 bool ImGui::CollapsingHeader(const char* label, bool* p_open, ImGuiTreeNodeFlags flags)
5021 bool ImGui::Selectable(const char* label, bool selected, ImGuiSelectableFlags flags, const ImVec2& size_arg)
5112 bool ImGui::Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags, const ImVec2& size_arg)
5133 bool ImGui::ListBoxHeader(const char* label, const ImVec2& size_arg)
5166 bool ImGui::ListBoxHeader(const char* label, int items_count, int height_in_items)
5201 bool ImGui::ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_items)
5207 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)
5220 const char* item_text;
5249 void 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)
5371 const float v = *(const float*)(const void*)((const unsigned char*)plot_data->Values + (size_t)idx * plot_data->Stride);
5375 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)
5381 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)
5386 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)
5392 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)
5404 void ImGui::Value(const char* prefix, bool b)
5409 void ImGui::Value(const char* prefix, int v)
5414 void ImGui::Value(const char* prefix, unsigned int v)
5419 void ImGui::Value(const char* prefix, float v, const char* float_format)
5423 char fmt[64];
5589 bool ImGui::BeginMenu(const char* label, bool enabled)
5744 bool ImGui::MenuItem(const char* label, const char* shortcut, bool selected, bool enabled)
5788 bool ImGui::MenuItem(const char* label, const char* shortcut, bool* p_selected, bool enabled)
5824 static ImU32 TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label);
5863 bool ImGui::BeginTabBar(const char* str_id, ImGuiTabBarFlags flags)
6033 const char* tab_name = tab_bar->GetTabName(tab);
6120 static ImU32 ImGui::TabBarCalcTabID(ImGuiTabBar* tab_bar, const char* label)
6282 const char* tab_name = tab_bar->GetTabName(tab);
6308 bool ImGui::BeginTabItem(const char* label, bool* p_open, ImGuiTabItemFlags flags)
6339 bool ImGui::TabItemEx(ImGuiTabBar* tab_bar, const char* label, bool* p_open, ImGuiTabItemFlags flags)
6530 void ImGui::SetTabItemClosed(const char* label)
6543 ImVec2 ImGui::TabItemCalcSize(const char* label, bool has_close_button)
6582 bool ImGui::TabItemLabelAndCloseButton(ImDrawList* draw_list, const ImRect& bb, ImGuiTabItemFlags flags, ImVec2 frame_padding, const char* label, ImGuiID tab_id, ImGuiID close_button_id)
6590 const char* TAB_UNSAVED_MARKER = "*";
6627 const char* label_display_end = FindRenderedTextEnd(label);
6632 const char* label_end = NULL;