Home
last modified time | relevance | path

Searched refs:items_count (Results 1 - 8 of 8) sorted by relevance

/third_party/alsa-utils/alsamixer/
H A Dproc_files.c35 static unsigned int items_count; variable
65 for (i = 0; i < items_count; ++i) in on_close()
73 items[items_count] = new_item(file_name, NULL); in add_item()
74 if (!items[items_count]) in add_item()
76 ++items_count; in add_item()
77 assert(items_count < ARRAY_SIZE(items)); in add_item()
89 items_count = 0; in create_proc_files_list()
96 items[items_count] = NULL; in create_proc_files_list()
/third_party/mesa3d/src/imgui/
H A Dimgui.h404 IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1);
406 IMGUI_API bool Combo(const char* label, int* current_item, bool(*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int popup_max_height_in_items = -1);
499 IMGUI_API bool ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items = -1);
500 IMGUI_API bool ListBox(const char* label, int* current_item, bool (*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int height_in_items = -1);
502 IMGUI_API bool ListBoxHeader(const char* label, int items_count, int height_in_items = -1); // "
632 IMGUI_API void CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); // calculate coarse clipping for large list of evenly sized items. Prefer using the ImGuiListClipper higher-level helper if you can.
1667 // items_count: Use -1 to ignore (you can call Begin later). Use INT_MAX if you don't know how many items you have (in which case the cursor won't be advanced in the final step).
1670 ImGuiListClipper(int items_count = -1, float items_height = -1.0f) { Begin(items_count, items_height); } // NB: Begin() initialize every fields (as we allow user to call Begin/End multiple times on a same instance if they want). in ImGuiListClipper()
1674 IMGUI_API void Begin(int items_count, floa
[all...]
H A Dimgui_widgets.cpp1272 static float CalcMaxPopupHeightFromItemCount(int items_count) in CalcMaxPopupHeightFromItemCount() argument
1275 if (items_count <= 0) in CalcMaxPopupHeightFromItemCount()
1277 return (g.FontSize + g.Style.ItemSpacing.y) * items_count - g.Style.ItemSpacing.y + (g.Style.WindowPadding.y * 2); in CalcMaxPopupHeightFromItemCount()
1401 int items_count = 0; in Items_SingleStringGetter() local
1405 if (idx == items_count) in Items_SingleStringGetter()
1408 items_count++; in Items_SingleStringGetter()
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) in Combo() argument
1424 if (*current_item >= 0 && *current_item < items_count) in Combo()
1437 for (int i = 0; i < items_count; i++) in Combo()
1459 bool ImGui::Combo(const char* label, int* current_item, const char* const items[], int items_count, in argument
1468 int items_count = 0; Combo() local
[all...]
H A Dimgui.cpp3922 // NB: 'items_count' is only used to clamp the result, if you don't know your count you can use INT_MAX
3923 void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end) in CalcListClipping() argument
3931 *out_items_display_end = items_count; in CalcListClipping()
3955 start = ImClamp(start, 0, items_count); in CalcListClipping()
3956 end = ImClamp(end + 1, start, items_count); in CalcListClipping()
/third_party/skia/third_party/externals/imgui/
H A Dimgui.h521 IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int items_count, int popup_max_height_in_items = -1);
523 IMGUI_API bool Combo(const char* label, int* current_item, bool(*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int popup_max_height_in_items = -1);
632 IMGUI_API bool ListBox(const char* label, int* current_item, const char* const items[], int items_count, int height_in_items = -1);
633 IMGUI_API bool ListBox(const char* label, int* current_item, bool (*items_getter)(void* data, int idx, const char** out_text), void* data, int items_count, int height_in_items = -1);
872 IMGUI_API void CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end); // calculate coarse clipping for large list of evenly sized items. Prefer using the ImGuiListClipper higher-level helper if you can.
2204 // items_count: Use INT_MAX if you don't know how many items you have (in which case the cursor won't be advanced in the final step)
2206 IMGUI_API void Begin(int items_count, float items_height = -1.0f); // Automatically called by constructor if you passed 'items_count' or by Step() in Step 1.
2211 inline ImGuiListClipper(int items_count, float items_height = -1.0f) { memset(this, 0, sizeof(*this)); ItemsCount = -1; Begin(items_count, items_heigh
[all...]
H A Dimgui_widgets.cpp1552 static float CalcMaxPopupHeightFromItemCount(int items_count) in CalcMaxPopupHeightFromItemCount() argument
1555 if (items_count <= 0) in CalcMaxPopupHeightFromItemCount()
1557 return (g.FontSize + g.Style.ItemSpacing.y) * items_count - g.Style.ItemSpacing.y + (g.Style.WindowPadding.y * 2); in CalcMaxPopupHeightFromItemCount()
1764 int items_count = 0; in Items_SingleStringGetter() local
1768 if (idx == items_count) in Items_SingleStringGetter()
1771 items_count++; in Items_SingleStringGetter()
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) in Combo() argument
1787 if (*current_item >= 0 && *current_item < items_count) in Combo()
1800 for (int i = 0; i < items_count; i++) in Combo()
1826 bool ImGui::Combo(const char* label, int* current_item, const char* const items[], int items_count, in argument
1835 int items_count = 0; Combo() local
[all...]
H A Dimgui_demo.cpp4985 static int items_count = IM_ARRAYSIZE(template_items_names) * 2; local
5094 ImGui::DragInt("items_count", &items_count, 0.1f, 0, 9999);
5110 if (items.Size != items_count)
5112 items.resize(items_count, MyItem());
5113 for (int n = 0; n < items_count; n++)
H A Dimgui.cpp410 - removed ListBoxHeader(const char* label, int items_count, int height_in_items = -1) in favor of specifying size. Kept inline redirection function (will obsolete).
2246 // NB: 'items_count' is only used to clamp the result, if you don't know your count you can use INT_MAX
2247 void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end) in CalcListClipping() argument
2255 *out_items_display_end = items_count; in CalcListClipping()
2281 start = ImClamp(start, 0, items_count); in CalcListClipping()
2282 end = ImClamp(end + 1, start, items_count); in CalcListClipping()
2326 void ImGuiListClipper::Begin(int items_count, float items_height) in Begin() argument
2337 ItemsCount = items_count; in Begin()

Completed in 76 milliseconds