Home
last modified time | relevance | path

Searched refs:items_height (Results 1 - 4 of 4) sorted by relevance

/third_party/mesa3d/src/imgui/
H A Dimgui.h632 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.
1659 // - (Step 2: dummy step only required if an explicit items_height was passed to constructor or Begin() and user call Step(). Does nothing and switch to Step 3.)
1668 // items_height: Use -1.0f to be calculated automatically on first step. Otherwise pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing().
1669 // If you don't specify an items_height, you NEED to call Step(). If you specify items_height you may call the old Begin()/End() api directly, but prefer calling 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, float items_height = -1.0f); // Automatically called by constructor if you passed 'items_count' or by Step() in Step 1.
H A Dimgui.cpp2199 // Use case A: Begin() called from constructor with items_height<0, then called again from Sync() in StepNo 1
2200 // Use case B: Begin() called from constructor with items_height>0
2202 void ImGuiListClipper::Begin(int count, float items_height) in Begin() argument
2205 ItemsHeight = items_height; in Begin()
2247 float items_height = ImGui::GetCursorPosY() - StartPosY; in Step() local
2248 IM_ASSERT(items_height > 0.0f); // If this triggers, it means Item 0 hasn't moved the cursor vertically in Step()
2249 Begin(ItemsCount-1, items_height); in Step()
2255 if (StepNo == 2) // Step 2: dummy step only required if an explicit items_height was passed to constructor or Begin() and user still call Step(). Does nothing and switch to Step 3. in Step()
3923 void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end) in CalcListClipping() argument
3946 int start = (int)((unclipped_rect.Min.y - pos.y) / items_height); in CalcListClipping()
[all...]
/third_party/skia/third_party/externals/imgui/
H A Dimgui.h872 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.
2205 // items_height: Use -1.0f to be calculated automatically on first step. Otherwise pass in the distance between your items, typically GetTextLineHeightWithSpacing() or GetFrameHeightWithSpacing().
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_height); } // [removed in 1.79] in ImGuiListClipper()
H A Dimgui.cpp2247 void ImGui::CalcListClipping(int items_count, float items_height, int* out_items_display_start, int* out_items_display_end) in CalcListClipping() argument
2272 int start = (int)((unclipped_rect.Min.y - pos.y) / items_height); in CalcListClipping()
2273 int end = (int)((unclipped_rect.Max.y - pos.y) / items_height); in CalcListClipping()
2323 // Use case A: Begin() called from constructor with items_height<0, then called again from Step() in StepNo 1
2324 // Use case B: Begin() called from constructor with items_height>0
2326 void ImGuiListClipper::Begin(int items_count, float items_height) in Begin() argument
2336 ItemsHeight = items_height; in Begin()

Completed in 59 milliseconds