Home
last modified time | relevance | path

Searched refs:wrap_pos_x (Results 1 – 3 of 3) sorted by relevance

/external/mesa3d/src/imgui/
Dimgui.cpp2939 float ImGui::CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x) in CalcWrapWidthForPos() argument
2941 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()
2948wrap_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() argument
5744 window->DC.TextWrapPos = wrap_pos_x; in PushTextWrapPos()
5745 window->DC.TextWrapPosStack.push_back(wrap_pos_x); in PushTextWrapPos()
Dimgui_internal.h1382 IMGUI_API float CalcWrapWidthForPos(const ImVec2& pos, float wrap_pos_x);
Dimgui_widgets.cpp140 const float wrap_pos_x = window->DC.TextWrapPos; in TextUnformatted() local
141 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()