Lines Matching defs:wrap_pos_x
2939 float ImGui::CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x)
2941 if (wrap_pos_x < 0.0f)
2945 if (wrap_pos_x == 0.0f)
2946 wrap_pos_x = GetContentRegionMax().x + window->Pos.x;
2947 else if (wrap_pos_x > 0.0f)
2948 wrap_pos_x += window->Pos.x - window->Scroll.x; // wrap_pos_x is provided is window local space
2950 return ImMax(wrap_pos_x - pos.x, 1.0f);
5741 void ImGui::PushTextWrapPos(float wrap_pos_x)
5744 window->DC.TextWrapPos = wrap_pos_x;
5745 window->DC.TextWrapPosStack.push_back(wrap_pos_x);