Lines Matching defs:pos

156             ImVec2 pos = text_pos;
173 pos.y += lines_skipped * line_height;
180 ImRect line_rect(pos, pos + ImVec2(FLT_MAX, line_height));
191 RenderText(pos, line, line_end, false);
195 pos.y += line_height;
208 pos.y += lines_skipped * line_height;
211 text_size.y += (pos - text_pos).y;
555 ImVec2 pos = window->DC.CursorPos;
557 pos.y += window->DC.CurrentLineTextBaseOffset - style.FramePadding.y;
560 const ImRect bb(pos, pos + size);
662 bool ImGui::CloseButton(ImGuiID id, const ImVec2& pos, float radius)
669 const ImRect bb(pos - ImVec2(radius,radius), pos + ImVec2(radius,radius));
691 bool ImGui::CollapseButton(ImGuiID id, const ImVec2& pos)
696 ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize) + g.Style.FramePadding * 2.0f);
918 const ImVec2 pos = window->DC.CursorPos;
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));
932 const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz));
977 const ImVec2 pos = window->DC.CursorPos;
978 const ImRect check_bb(pos, pos + ImVec2(square_sz, square_sz));
979 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));
1034 ImVec2 pos = window->DC.CursorPos;
1035 ImRect bb(pos, pos + CalcItemSize(size_arg, CalcItemWidth(), g.FontSize + style.FramePadding.y*2.0f));
1364 ImVec2 pos = FindBestWindowPosForPopupEx(frame_bb.GetBL(), size_expected, &popup_window->AutoPosLastDirection, r_outer, frame_bb, ImGuiPopupPositionPolicy_ComboBox);
1365 SetNextWindowPos(pos);
2931 static void STB_TEXTEDIT_DELETECHARS(STB_TEXTEDIT_STRING* obj, int pos, int n)
2933 ImWchar* dst = obj->TextW.Data + pos;
2940 const ImWchar* src = obj->TextW.Data + pos + n;
2946 static bool STB_TEXTEDIT_INSERTCHARS(STB_TEXTEDIT_STRING* obj, int pos, const ImWchar* new_text, int new_text_len)
2950 IM_ASSERT(pos <= text_len);
2966 if (pos != text_len)
2967 memmove(text + pos + new_text_len, text + pos, (size_t)(text_len - pos) * sizeof(ImWchar));
2968 memcpy(text + pos, new_text, (size_t)new_text_len * sizeof(ImWchar));
3014 void ImGuiInputTextCallbackData::DeleteChars(int pos, int bytes_count)
3016 IM_ASSERT(pos + bytes_count <= BufTextLen);
3017 char* dst = Buf + pos;
3018 const char* src = Buf + pos + bytes_count;
3023 if (CursorPos + bytes_count >= pos)
3025 else if (CursorPos >= pos)
3026 CursorPos = pos;
3032 void ImGuiInputTextCallbackData::InsertChars(int pos, const char* new_text, const char* new_text_end)
3052 if (BufTextLen != pos)
3053 memmove(Buf + pos + new_text_len, Buf + pos, (size_t)(BufTextLen - pos));
3054 memcpy(Buf + pos, new_text, (size_t)new_text_len * sizeof(char));
3057 if (CursorPos >= pos)
4092 static void RenderArrowsForVerticalBar(ImDrawList* draw_list, ImVec2 pos, ImVec2 half_sz, float bar_w)
4094 ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x + 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Right, IM_COL32_BLACK);
4095 ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + half_sz.x, pos.y), half_sz, ImGuiDir_Right, IM_COL32_WHITE);
4096 ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x - 1, pos.y), ImVec2(half_sz.x + 2, half_sz.y + 1), ImGuiDir_Left, IM_COL32_BLACK);
4097 ImGui::RenderArrowPointingAt(draw_list, ImVec2(pos.x + bar_w - half_sz.x, pos.y), half_sz, ImGuiDir_Left, IM_COL32_WHITE);
5036 ImVec2 pos = window->DC.CursorPos;
5037 pos.y += window->DC.CurrentLineTextBaseOffset;
5038 ImRect bb_inner(pos, pos + size);
5044 float w_draw = ImMax(label_size.x, window->Pos.x + max_x - window_padding.x - pos.x);
5046 ImRect bb(pos, pos + size_draw);
5611 ImVec2 popup_pos, pos = window->DC.CursorPos;
5617 popup_pos = ImVec2(pos.x - 1.0f - (float)(int)(style.ItemSpacing.x * 0.5f), pos.y - style.FramePadding.y + window->MenuBarHeight());
5628 popup_pos = ImVec2(pos.x, pos.y - style.WindowPadding.y);
5633 RenderArrow(pos + ImVec2(window->MenuColumns.Pos[2] + extra_w + g.FontSize * 0.30f, 0.0f), ImGuiDir_Right);
5752 ImVec2 pos = window->DC.CursorPos;
5777 RenderText(pos + ImVec2(window->MenuColumns.Pos[1] + extra_w, 0.0f), shortcut, NULL, false);
5781 RenderCheckMark(pos + ImVec2(window->MenuColumns.Pos[2] + extra_w + g.FontSize * 0.40f, g.FontSize * 0.134f * 0.5f), GetColorU32(enabled ? ImGuiCol_Text : ImGuiCol_TextDisabled), g.FontSize * 0.866f);
6432 ImVec2 pos = window->DC.CursorPos;
6433 ImRect bb(pos, pos + size);