Searched refs:square_sz (Results 1 - 2 of 2) sorted by relevance
/third_party/skia/third_party/externals/imgui/ |
H A D | imgui_widgets.cpp | 1081 const float square_sz = GetFrameHeight(); in Checkbox() local 1083 const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); in Checkbox() 1099 const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); in Checkbox() 1108 ImVec2 pad(ImMax(1.0f, IM_FLOOR(square_sz / 3.6f)), ImMax(1.0f, IM_FLOOR(square_sz / 3.6f))); in Checkbox() 1113 const float pad = ImMax(1.0f, IM_FLOOR(square_sz / 6.0f)); in Checkbox() 1114 RenderCheckMark(window->DrawList, check_bb.Min + ImVec2(pad, pad), check_col, square_sz - pad * 2.0f); in Checkbox() 1187 const float square_sz = GetFrameHeight(); in RadioButton() local 1189 const ImRect check_bb(pos, pos + ImVec2(square_sz, square_s in RadioButton() [all...] |
/third_party/mesa3d/src/imgui/ |
H A D | imgui_widgets.cpp | 917 const float square_sz = GetFrameHeight(); in Checkbox() local 919 const ImRect total_bb(pos, pos + ImVec2(square_sz + (label_size.x > 0.0f ? style.ItemInnerSpacing.x + label_size.x : 0.0f), label_size.y + style.FramePadding.y * 2.0f)); in Checkbox() 932 const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); in Checkbox() 937 const float pad = ImMax(1.0f, (float)(int)(square_sz / 6.0f)); in Checkbox() 938 RenderCheckMark(check_bb.Min + ImVec2(pad, pad), GetColorU32(ImGuiCol_CheckMark), square_sz - pad*2.0f); in Checkbox() 976 const float square_sz = GetFrameHeight(); in RadioButton() local 978 const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz)); in RadioButton() 979 const ImRect total_bb(pos, pos + ImVec2(square_sz in RadioButton() [all...] |
Completed in 8 milliseconds