Home
last modified time | relevance | path

Searched refs:IM_ARRAYSIZE (Results 1 – 25 of 42) sorted by relevance

12

/third_party/flutter/skia/third_party/externals/imgui/
Dimgui_demo.cpp460 ImGui::PlotLines("Curve", arr, IM_ARRAYSIZE(arr)); in ShowDemoWindowWidgets()
473 ImGui::Combo("combo", &item_current, items, IM_ARRAYSIZE(items)); in ShowDemoWindowWidgets()
480 ImGui::InputText("input text", str0, IM_ARRAYSIZE(str0)); in ShowDemoWindowWidgets()
537 …Box("listbox\n(single select)", &listbox_item_current, listbox_items, IM_ARRAYSIZE(listbox_items),… in ShowDemoWindowWidgets()
705 ImGui::InputText("UTF-8 input", buf, IM_ARRAYSIZE(buf)); in ShowDemoWindowWidgets()
776 for (int n = 0; n < IM_ARRAYSIZE(items); n++) in ShowDemoWindowWidgets()
793 ImGui::Combo("combo 3 (array)", &item_current_3, items, IM_ARRAYSIZE(items)); in ShowDemoWindowWidgets()
798 …:Combo("combo 4 (function)", &item_current_4, &FuncHolder::ItemGetter, items, IM_ARRAYSIZE(items)); in ShowDemoWindowWidgets()
933 …ImGui::InputTextMultiline("##source", text, IM_ARRAYSIZE(text), ImVec2(-1.0f, ImGui::GetTextLineHe… in ShowDemoWindowWidgets()
943 ImGui::PlotLines("Frame Times", arr, IM_ARRAYSIZE(arr)); in ShowDemoWindowWidgets()
[all …]
Dimgui.cpp1188 …for (int i = 0; i < IM_ARRAYSIZE(MouseDownDuration); i++) MouseDownDuration[i] = MouseDownDuration… in ImGuiIO()
1189 …for (int i = 0; i < IM_ARRAYSIZE(KeysDownDuration); i++) KeysDownDuration[i] = KeysDownDurationPr… in ImGuiIO()
1190 for (int i = 0; i < IM_ARRAYSIZE(NavInputsDownDuration); i++) NavInputsDownDuration[i] = -1.0f; in ImGuiIO()
1979 ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf)); in ImGuiTextFilter()
1993 bool value_changed = ImGui::InputText(label, InputBuf, IM_ARRAYSIZE(InputBuf)); in Draw()
3151 for (int i = 0; i < IM_ARRAYSIZE(g.IO.MouseDown); i++) in UpdateMouseInputs()
3257 for (int i = 0; i < IM_ARRAYSIZE(g.IO.MouseDown); i++) in UpdateHoveredWindowAndCaptureFlags()
3312 …IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < IM_ARRAYSIZE(g.IO.KeysDown) && "io.KeyMap[] con… in NewFrame()
3404 for (int i = 0; i < IM_ARRAYSIZE(g.IO.KeysDown); i++) in NewFrame()
3416 …g.FramerateSecPerFrameIdx = (g.FramerateSecPerFrameIdx + 1) % IM_ARRAYSIZE(g.FramerateSecPerFrame); in NewFrame()
[all …]
Dimgui_widgets.cpp247 …const char* text_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fm… in TextV()
327 …const char* value_text_end = value_text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempB… in LabelTextV()
352 …const char* text_end = text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt,… in BulletTextV()
1045 ImFormatString(overlay_buf, IM_ARRAYSIZE(overlay_buf), "%.0f%%", fraction*100+0.01f); in ProgressBar()
1348 …ImFormatString(name, IM_ARRAYSIZE(name), "##Combo_%02d", g.BeginPopupStack.Size); // Recycle windo… in BeginCombo()
1505 IM_STATIC_ASSERT(IM_ARRAYSIZE(GDataTypeInfo) == ImGuiDataType_COUNT);
1522 …ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%.*s%%d%s", (int)(fmt_start - fmt), fmt,… in PatchFormatStringFloatToInt()
1692 ImFormatString(v_str, IM_ARRAYSIZE(v_str), fmt_start, v); in RoundScalarWithFormatT()
1924 …const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), d… in DragScalar()
2363 …const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), d… in SliderScalar()
[all …]
Dimgui_draw.cpp350 for (int i = 0; i < IM_ARRAYSIZE(CircleVtx12); i++) in ImDrawListSharedData()
352 const float a = ((float)i * 2 * IM_PI) / (float)IM_ARRAYSIZE(CircleVtx12); in ImDrawListSharedData()
946 const ImVec2& c = _Data->CircleVtx12[a % IM_ARRAYSIZE(_Data->CircleVtx12)]; in PathArcToFast()
1436 for (int n = 0; n < IM_ARRAYSIZE(CustomRectIds); n++) in ImFontAtlas()
1465 for (int n = 0; n < IM_ARRAYSIZE(CustomRectIds); n++) in ClearInputData()
1614 ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "%s, %.0fpx", p, size_pixels); in AddFontFromFileTTF()
2245 …static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E… in GetGlyphRangesChineseSimplifiedCommon()
2249 …E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges… in GetGlyphRangesChineseSimplifiedCommon()
2303 …static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E… in GetGlyphRangesJapanese()
2307 …E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges… in GetGlyphRangesJapanese()
/third_party/skia/third_party/externals/imgui/
Dimgui_demo.cpp608 ImGui::PlotLines("Curve", arr, IM_ARRAYSIZE(arr)); in ShowDemoWindowWidgets()
621 ImGui::Combo("combo", &item_current, items, IM_ARRAYSIZE(items)); in ShowDemoWindowWidgets()
630 ImGui::InputText("input text", str0, IM_ARRAYSIZE(str0)); in ShowDemoWindowWidgets()
645 … ImGui::InputTextWithHint("input text (w/ hint)", "enter text here", str1, IM_ARRAYSIZE(str1)); in ShowDemoWindowWidgets()
726 ImGui::ListBox("listbox", &item_current, items, IM_ARRAYSIZE(items), 4); in ShowDemoWindowWidgets()
946 ImGui::InputText("UTF-8 input", buf, IM_ARRAYSIZE(buf)); in ShowDemoWindowWidgets()
1045 for (int n = 0; n < IM_ARRAYSIZE(items); n++) in ShowDemoWindowWidgets()
1066 ImGui::Combo("combo 3 (array)", &item_current_3, items, IM_ARRAYSIZE(items)); in ShowDemoWindowWidgets()
1071 …ImGui::Combo("combo 4 (function)", &item_current_4, &Funcs::ItemGetter, items, IM_ARRAYSIZE(items)… in ShowDemoWindowWidgets()
1085 for (int n = 0; n < IM_ARRAYSIZE(items); n++) in ShowDemoWindowWidgets()
[all …]
Dimgui.cpp1075 …IM_ASSERT(IM_ARRAYSIZE(ImGuiIO::MouseDown) == ImGuiMouseButton_COUNT && IM_ARRAYSIZE(ImGuiIO::Mous… in ImGuiIO()
1124 …for (int i = 0; i < IM_ARRAYSIZE(MouseDownDuration); i++) MouseDownDuration[i] = MouseDownDuration… in ImGuiIO()
1125 …for (int i = 0; i < IM_ARRAYSIZE(KeysDownDuration); i++) KeysDownDuration[i] = KeysDownDurationPr… in ImGuiIO()
1126 for (int i = 0; i < IM_ARRAYSIZE(NavInputsDownDuration); i++) NavInputsDownDuration[i] = -1.0f; in ImGuiIO()
1193 for (int n = 0; n < IM_ARRAYSIZE(KeysDownDuration); n++) in ClearInputKeys()
1197 for (int n = 0; n < IM_ARRAYSIZE(NavInputsDownDuration); n++) in ClearInputKeys()
2068 ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf)); in ImGuiTextFilter()
2082 bool value_changed = ImGui::InputText(label, InputBuf, IM_ARRAYSIZE(InputBuf)); in Draw()
2574 IM_ASSERT(IM_ARRAYSIZE(GStyleVarInfo) == ImGuiStyleVar_COUNT); in GetStyleVarInfo()
3504 IM_ASSERT(drawlist_no < IM_ARRAYSIZE(viewport->DrawLists)); in GetViewportDrawList()
[all …]
Dimgui_draw.cpp378 for (int i = 0; i < IM_ARRAYSIZE(ArcFastVtx); i++) in ImDrawListSharedData()
380 const float a = ((float)i * 2 * IM_PI) / (float)IM_ARRAYSIZE(ArcFastVtx); in ImDrawListSharedData()
393 for (int i = 0; i < IM_ARRAYSIZE(CircleSegmentCounts); i++) in SetCircleTessellationMaxError()
571 if (radius_idx < IM_ARRAYSIZE(_Data->CircleSegmentCounts)) in _CalcCircleAutoSegmentCount()
2127 …ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "ProggyClean.ttf, %dpx", (int)font_cfg.… in AddFontDefault()
2153 ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "%s, %.0fpx", p, size_pixels); in AddFontFromFileTTF()
2915 …static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E… in GetGlyphRangesChineseSimplifiedCommon()
2919 …E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges… in GetGlyphRangesChineseSimplifiedCommon()
3005 …static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E… in GetGlyphRangesJapanese()
3009 …E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges… in GetGlyphRangesJapanese()
[all …]
Dimgui_widgets.cpp278 …const char* text_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fm… in TextV()
361 …const char* value_text_end = value_text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempB… in LabelTextV()
397 …const char* text_end = text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt,… in BulletTextV()
1266 ImFormatString(overlay_buf, IM_ARRAYSIZE(overlay_buf), "%.0f%%", fraction * 100 + 0.01f); in ProgressBar()
1664 …ImFormatString(name, IM_ARRAYSIZE(name), "##Combo_%02d", g.BeginPopupStack.Size); // Recycle windo… in BeginComboPopup()
1877 IM_STATIC_ASSERT(IM_ARRAYSIZE(GDataTypeInfo) == ImGuiDataType_COUNT);
1894 …ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%.*s%%d%s", (int)(fmt_start - fmt), fmt,… in PatchFormatStringFloatToInt()
2147 …return (decimal_precision < IM_ARRAYSIZE(min_steps)) ? min_steps[decimal_precision] : ImPow(10.0f,… in GetMinimumStepAtDecimalPrecision()
2189 SanitizeFormatString(fmt_start, fmt_sanitized, IM_ARRAYSIZE(fmt_sanitized)); in RoundScalarWithFormatT()
2194 ImFormatString(v_str, IM_ARRAYSIZE(v_str), fmt_start, v); in RoundScalarWithFormatT()
[all …]
/third_party/flutter/skia/third_party/externals/imgui/examples/example_sdl_vulkan/
Dmain.cpp168 pool_info.maxSets = 1000 * IM_ARRAYSIZE(pool_sizes); in SetupVulkan()
169 pool_info.poolSizeCount = (uint32_t)IM_ARRAYSIZE(pool_sizes); in SetupVulkan()
192 …mat(g_PhysicalDevice, wd->Surface, requestSurfaceImageFormat, (size_t)IM_ARRAYSIZE(requestSurfaceI… in SetupVulkanWindowData()
200 …H_SelectPresentMode(g_PhysicalDevice, wd->Surface, &present_modes[0], IM_ARRAYSIZE(present_modes)); in SetupVulkanWindowData()
/third_party/flutter/skia/third_party/externals/imgui/examples/example_glfw_vulkan/
Dmain.cpp178 pool_info.maxSets = 1000 * IM_ARRAYSIZE(pool_sizes); in SetupVulkan()
179 pool_info.poolSizeCount = (uint32_t)IM_ARRAYSIZE(pool_sizes); in SetupVulkan()
202 …mat(g_PhysicalDevice, wd->Surface, requestSurfaceImageFormat, (size_t)IM_ARRAYSIZE(requestSurfaceI… in SetupVulkanWindowData()
210 …H_SelectPresentMode(g_PhysicalDevice, wd->Surface, &present_modes[0], IM_ARRAYSIZE(present_modes)); in SetupVulkanWindowData()
/third_party/skia/third_party/externals/imgui/examples/example_glfw_vulkan/
Dmain.cpp200 pool_info.maxSets = 1000 * IM_ARRAYSIZE(pool_sizes); in SetupVulkan()
201 pool_info.poolSizeCount = (uint32_t)IM_ARRAYSIZE(pool_sizes); in SetupVulkan()
226 …mat(g_PhysicalDevice, wd->Surface, requestSurfaceImageFormat, (size_t)IM_ARRAYSIZE(requestSurfaceI… in SetupVulkanWindow()
234 …H_SelectPresentMode(g_PhysicalDevice, wd->Surface, &present_modes[0], IM_ARRAYSIZE(present_modes)); in SetupVulkanWindow()
/third_party/flutter/skia/third_party/externals/imgui/examples/
Dimgui_impl_freeglut.cpp140 if (key + 256 < IM_ARRAYSIZE(io.KeysDown)) in ImGui_ImplFreeGLUT_SpecialFunc()
150 if (key + 256 < IM_ARRAYSIZE(io.KeysDown)) in ImGui_ImplFreeGLUT_SpecialUpFunc()
Dimgui_impl_osx.mm122 for (int n = 0; n < IM_ARRAYSIZE(io.KeysDown); n++)
133 if (button >= 0 && button < IM_ARRAYSIZE(io.MouseDown))
141 if (button >= 0 && button < IM_ARRAYSIZE(io.MouseDown))
Dimgui_impl_glfw.cpp84 if (action == GLFW_PRESS && button >= 0 && button < IM_ARRAYSIZE(g_MouseJustPressed)) in ImGui_ImplGlfw_MouseButtonCallback()
217 for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) in ImGui_ImplGlfw_UpdateMousePosAndButtons()
Dimgui_impl_sdl.cpp111 IM_ASSERT(key >= 0 && key < IM_ARRAYSIZE(io.KeysDown)); in ImGui_ImplSDL2_ProcessEvent()
/third_party/skia/third_party/externals/imgui/examples/example_sdl_vulkan/
Dmain.cpp192 pool_info.maxSets = 1000 * IM_ARRAYSIZE(pool_sizes); in SetupVulkan()
193 pool_info.poolSizeCount = (uint32_t)IM_ARRAYSIZE(pool_sizes); in SetupVulkan()
218 …mat(g_PhysicalDevice, wd->Surface, requestSurfaceImageFormat, (size_t)IM_ARRAYSIZE(requestSurfaceI… in SetupVulkanWindow()
226 …H_SelectPresentMode(g_PhysicalDevice, wd->Surface, &present_modes[0], IM_ARRAYSIZE(present_modes)); in SetupVulkanWindow()
/third_party/skia/third_party/externals/imgui/backends/
Dimgui_impl_glut.cpp164 if (key + 256 < IM_ARRAYSIZE(io.KeysDown)) in ImGui_ImplGLUT_SpecialFunc()
174 if (key + 256 < IM_ARRAYSIZE(io.KeysDown)) in ImGui_ImplGLUT_SpecialUpFunc()
Dimgui_impl_glfw.cpp124 if (action == GLFW_PRESS && button >= 0 && button < IM_ARRAYSIZE(bd->MouseJustPressed)) in ImGui_ImplGlfw_MouseButtonCallback()
146 if (key >= 0 && key < IM_ARRAYSIZE(io.KeysDown)) in ImGui_ImplGlfw_KeyCallback()
344 for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) in ImGui_ImplGlfw_UpdateMousePosAndButtons()
Dimgui_impl_sdl.cpp144 IM_ASSERT(key >= 0 && key < IM_ARRAYSIZE(io.KeysDown)); in ImGui_ImplSDL2_ProcessEvent()
179 for (int n = 0; n < IM_ARRAYSIZE(global_mouse_whitelist); n++) in ImGui_ImplSDL2_Init()
Dimgui_impl_osx.mm205 for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++)
281 if (button >= 0 && button < IM_ARRAYSIZE(g_MouseDown))
289 if (button >= 0 && button < IM_ARRAYSIZE(g_MouseDown))
/third_party/mesa3d/src/imgui/
Dimgui_memory_editor.h519 …aPreviewAddr, mem_data, mem_size, PreviewDataType, DataFormat_Dec, buf, (size_t)IM_ARRAYSIZE(buf));
522 …aPreviewAddr, mem_data, mem_size, PreviewDataType, DataFormat_Hex, buf, (size_t)IM_ARRAYSIZE(buf));
525 …aPreviewAddr, mem_data, mem_size, PreviewDataType, DataFormat_Bin, buf, (size_t)IM_ARRAYSIZE(buf));
617 IM_ASSERT(out_n < IM_ARRAYSIZE(out_buf)); in FormatBinary()
Dimgui.cpp1199 …for (int i = 0; i < IM_ARRAYSIZE(MouseDownDuration); i++) MouseDownDuration[i] = MouseDownDuration… in ImGuiIO()
1200 …for (int i = 0; i < IM_ARRAYSIZE(KeysDownDuration); i++) KeysDownDuration[i] = KeysDownDurationPr… in ImGuiIO()
1201 for (int i = 0; i < IM_ARRAYSIZE(NavInputsDownDuration); i++) NavInputsDownDuration[i] = -1.0f; in ImGuiIO()
2017 ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf)); in ImGuiTextFilter()
2031 bool value_changed = ImGui::InputText(label, InputBuf, IM_ARRAYSIZE(InputBuf)); in Draw()
3216 for (int i = 0; i < IM_ARRAYSIZE(g.IO.MouseDown); i++) in UpdateMouseInputs()
3322 for (int i = 0; i < IM_ARRAYSIZE(g.IO.MouseDown); i++) in UpdateHoveredWindowAndCaptureFlags()
3377 …IM_ASSERT(g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < IM_ARRAYSIZE(g.IO.KeysDown) && "io.KeyMap[] con… in NewFrame()
3469 for (int i = 0; i < IM_ARRAYSIZE(g.IO.KeysDown); i++) in NewFrame()
3481 …g.FramerateSecPerFrameIdx = (g.FramerateSecPerFrameIdx + 1) % IM_ARRAYSIZE(g.FramerateSecPerFrame); in NewFrame()
[all …]
Dimgui_draw.cpp352 for (int i = 0; i < IM_ARRAYSIZE(CircleVtx12); i++) in ImDrawListSharedData()
354 const float a = ((float)i * 2 * IM_PI) / (float)IM_ARRAYSIZE(CircleVtx12); in ImDrawListSharedData()
948 const ImVec2& c = _Data->CircleVtx12[a % IM_ARRAYSIZE(_Data->CircleVtx12)]; in PathArcToFast()
1445 for (int n = 0; n < IM_ARRAYSIZE(CustomRectIds); n++) in ImFontAtlas()
1474 for (int n = 0; n < IM_ARRAYSIZE(CustomRectIds); n++) in ClearInputData()
1600 …ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "ProggyClean.ttf, %dpx", (int)font_cfg.… in AddFontDefault()
1625 ImFormatString(font_cfg.Name, IM_ARRAYSIZE(font_cfg.Name), "%s, %.0fpx", p, size_pixels); in AddFontFromFileTTF()
2259 …static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E… in GetGlyphRangesChineseSimplifiedCommon()
2263 …E00, accumulative_offsets_from_0x4E00, IM_ARRAYSIZE(accumulative_offsets_from_0x4E00), full_ranges… in GetGlyphRangesChineseSimplifiedCommon()
2317 …static ImWchar full_ranges[IM_ARRAYSIZE(base_ranges) + IM_ARRAYSIZE(accumulative_offsets_from_0x4E… in GetGlyphRangesJapanese()
[all …]
Dimgui_widgets.cpp249 …const char* text_end = g.TempBuffer + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fm… in TextV()
329 …const char* value_text_end = value_text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempB… in LabelTextV()
354 …const char* text_end = text_begin + ImFormatStringV(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), fmt,… in BulletTextV()
1051 ImFormatString(overlay_buf, IM_ARRAYSIZE(overlay_buf), "%.0f%%", fraction*100+0.01f); in ProgressBar()
1354 …ImFormatString(name, IM_ARRAYSIZE(name), "##Combo_%02d", g.BeginPopupStack.Size); // Recycle windo… in BeginCombo()
1511 IM_STATIC_ASSERT(IM_ARRAYSIZE(GDataTypeInfo) == ImGuiDataType_COUNT);
1528 …ImFormatString(g.TempBuffer, IM_ARRAYSIZE(g.TempBuffer), "%.*s%%d%s", (int)(fmt_start - fmt), fmt,… in PatchFormatStringFloatToInt()
1675 …return (decimal_precision < IM_ARRAYSIZE(min_steps)) ? min_steps[decimal_precision] : ImPow(10.0f,… in GetMinimumStepAtDecimalPrecision()
1698 ImFormatString(v_str, IM_ARRAYSIZE(v_str), fmt_start, v); in RoundScalarWithFormatT()
1927 …const char* value_buf_end = value_buf + DataTypeFormatString(value_buf, IM_ARRAYSIZE(value_buf), d… in DragScalar()
[all …]
/third_party/mesa3d/src/intel/tools/imgui/
Dimgui_impl_opengl3.cpp80 IM_ASSERT((int)strlen(glsl_version) + 2 < IM_ARRAYSIZE(g_GlslVersionString)); in ImGui_ImplOpenGL3_Init()

12