Searched refs:wrap_pos_x (Results 1 – 3 of 3) sorted by relevance
2939 float ImGui::CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x) in CalcWrapWidthForPos() argument2941 if (wrap_pos_x < 0.0f) in CalcWrapWidthForPos()2945 if (wrap_pos_x == 0.0f) in CalcWrapWidthForPos()2946 wrap_pos_x = GetContentRegionMax().x + window->Pos.x; in CalcWrapWidthForPos()2947 else if (wrap_pos_x > 0.0f) in CalcWrapWidthForPos()2948 … wrap_pos_x += window->Pos.x - window->Scroll.x; // wrap_pos_x is provided is window local space in CalcWrapWidthForPos()2950 return ImMax(wrap_pos_x - pos.x, 1.0f); in CalcWrapWidthForPos()5741 void ImGui::PushTextWrapPos(float wrap_pos_x) in PushTextWrapPos() argument5744 window->DC.TextWrapPos = wrap_pos_x; in PushTextWrapPos()5745 window->DC.TextWrapPosStack.push_back(wrap_pos_x); in PushTextWrapPos()
1382 IMGUI_API float CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x);
140 const float wrap_pos_x = window->DC.TextWrapPos; in TextUnformatted() local141 const bool wrap_enabled = wrap_pos_x >= 0.0f; in TextUnformatted()220 …nst float wrap_width = wrap_enabled ? CalcWrapWidthForPos(window->DC.CursorPos, wrap_pos_x) : 0.0f; in TextUnformatted()