Lines Matching refs:Min
482 ImVec2 Min; // Upper-left member
485 … ImRect() : Min(FLT_MAX,FLT_MAX), Max(-FLT_MAX,-FLT_MAX) {} in ImRect()
486 … ImRect(const ImVec2& min, const ImVec2& max) : Min(min), Max(max) {} in ImRect()
487 … ImRect(const ImVec4& v) : Min(v.x, v.y), Max(v.z, v.w) {} in ImRect()
488 … ImRect(float x1, float y1, float x2, float y2) : Min(x1, y1), Max(x2, y2) {} in ImRect()
490 …ImVec2 GetCenter() const { return ImVec2((Min.x + Max.x) * 0.5f, (Min.y + M… in GetCenter()
491 ImVec2 GetSize() const { return ImVec2(Max.x - Min.x, Max.y - Min.y); } in GetSize()
492 float GetWidth() const { return Max.x - Min.x; } in GetWidth()
493 float GetHeight() const { return Max.y - Min.y; } in GetHeight()
494 ImVec2 GetTL() const { return Min; } // Top-left in GetTL()
495 ImVec2 GetTR() const { return ImVec2(Max.x, Min.y); } // Top-right in GetTR()
496 ImVec2 GetBL() const { return ImVec2(Min.x, Max.y); } // Bottom-left in GetBL()
498 …bool Contains(const ImVec2& p) const { return p.x >= Min.x && p.y >= Min.y && p… in Contains()
499 …bool Contains(const ImRect& r) const { return r.Min.x >= Min.x && r.Min.y >= Min.y && r… in Contains()
500 …s(const ImRect& r) const { return r.Min.y < Max.y && r.Max.y > Min.y && r.Min.x < Max.x && … in Overlaps()
501 … Add(const ImVec2& p) { if (Min.x > p.x) Min.x = p.x; if (Min.y > p.y) … in Add()
502 …Add(const ImRect& r) { if (Min.x > r.Min.x) Min.x = r.Min.x; if (Min.y > r.Min.y) M… in Add()
503 …void Expand(const float amount) { Min.x -= amount; Min.y -= amount; Max.x += a… in Expand()
504 …void Expand(const ImVec2& amount) { Min.x -= amount.x; Min.y -= amount.y; Max.x += a… in Expand()
505 …void Translate(const ImVec2& d) { Min.x += d.x; Min.y += d.y; Max.x += d.x; Max.y … in Translate()
506 void TranslateX(float dx) { Min.x += dx; Max.x += dx; } in TranslateX()
507 void TranslateY(float dy) { Min.y += dy; Max.y += dy; } in TranslateY()
508 …void ClipWith(const ImRect& r) { Min = ImMax(Min, r.Min); Max = ImMin(Max, r.Max)… in ClipWith()
509 …d ClipWithFull(const ImRect& r) { Min = ImClamp(Min, r.Min, r.Max); Max = ImClamp(Max… in ClipWithFull()
510 …void Floor() { Min.x = (float)(int)Min.x; Min.y = (float)(int)M… in Floor()
511 bool IsInverted() const { return Min.x > Max.x || Min.y > Max.y; } in IsInverted()