VR-Vantage
Loading...
Searching...
No Matches
ImRect Struct Reference

Public Member Functions

 ImRect ()
 ImRect (const ImVec2 &min, const ImVec2 &max)
 ImRect (const ImVec4 &v)
 ImRect (float x1, float y1, float x2, float y2)
ImVec2 GetCenter () const
ImVec2 GetSize () const
float GetWidth () const
float GetHeight () const
float GetArea () const
ImVec2 GetTL () const
ImVec2 GetTR () const
ImVec2 GetBL () const
ImVec2 GetBR () const
bool Contains (const ImVec2 &p) const
bool Contains (const ImRect &r) const
bool Overlaps (const ImRect &r) const
void Add (const ImVec2 &p)
void Add (const ImRect &r)
void Expand (const float amount)
void Expand (const ImVec2 &amount)
void Translate (const ImVec2 &d)
void TranslateX (float dx)
void TranslateY (float dy)
void ClipWith (const ImRect &r)
void ClipWithFull (const ImRect &r)
void Floor ()
bool IsInverted () const
ImVec4 ToVec4 () const

Public Attributes

ImVec2 Min
ImVec2 Max

Constructor & Destructor Documentation

◆ ImRect() [1/4]

ImRect::ImRect ( )
inline

References Max, and Min.

Referenced by Add(), ClipWith(), ClipWithFull(), Contains(), and Overlaps().

◆ ImRect() [2/4]

ImRect::ImRect ( const ImVec2 & min,
const ImVec2 & max )
inline

References Max, and Min.

◆ ImRect() [3/4]

ImRect::ImRect ( const ImVec4 & v)
inline

References Max, and Min.

◆ ImRect() [4/4]

ImRect::ImRect ( float x1,
float y1,
float x2,
float y2 )
inline

References Max, and Min.

Member Function Documentation

◆ GetCenter()

ImVec2 ImRect::GetCenter ( ) const
inline

References Max, and Min.

◆ GetSize()

ImVec2 ImRect::GetSize ( ) const
inline

References Max, and Min.

◆ GetWidth()

float ImRect::GetWidth ( ) const
inline

References Max, and Min.

◆ GetHeight()

float ImRect::GetHeight ( ) const
inline

References Max, and Min.

◆ GetArea()

float ImRect::GetArea ( ) const
inline

References Max, and Min.

◆ GetTL()

ImVec2 ImRect::GetTL ( ) const
inline

References Min.

◆ GetTR()

ImVec2 ImRect::GetTR ( ) const
inline

References Max, and Min.

◆ GetBL()

ImVec2 ImRect::GetBL ( ) const
inline

References Max, and Min.

◆ GetBR()

ImVec2 ImRect::GetBR ( ) const
inline

References Max.

◆ Contains() [1/2]

bool ImRect::Contains ( const ImVec2 & p) const
inline

References Max, Min, ImVec2::x, and ImVec2::y.

◆ Contains() [2/2]

bool ImRect::Contains ( const ImRect & r) const
inline

References ImRect(), Max, Min, ImVec2::x, and ImVec2::y.

◆ Overlaps()

bool ImRect::Overlaps ( const ImRect & r) const
inline

References ImRect(), Max, Min, ImVec2::x, and ImVec2::y.

◆ Add() [1/2]

void ImRect::Add ( const ImVec2 & p)
inline

References Max, Min, ImVec2::x, and ImVec2::y.

◆ Add() [2/2]

void ImRect::Add ( const ImRect & r)
inline

References ImRect(), Max, Min, ImVec2::x, and ImVec2::y.

◆ Expand() [1/2]

void ImRect::Expand ( const float amount)
inline

References Max, and Min.

◆ Expand() [2/2]

void ImRect::Expand ( const ImVec2 & amount)
inline

References Max, Min, ImVec2::x, and ImVec2::y.

◆ Translate()

void ImRect::Translate ( const ImVec2 & d)
inline

References Max, Min, ImVec2::x, and ImVec2::y.

◆ TranslateX()

void ImRect::TranslateX ( float dx)
inline

References Max, and Min.

◆ TranslateY()

void ImRect::TranslateY ( float dy)
inline

References Max, and Min.

◆ ClipWith()

void ImRect::ClipWith ( const ImRect & r)
inline

References ImMax(), ImMin(), ImRect(), Max, and Min.

◆ ClipWithFull()

void ImRect::ClipWithFull ( const ImRect & r)
inline

References ImClamp(), ImRect(), Max, and Min.

◆ Floor()

void ImRect::Floor ( )
inline

References IM_FLOOR, Max, and Min.

◆ IsInverted()

bool ImRect::IsInverted ( ) const
inline

References Max, and Min.

◆ ToVec4()

ImVec4 ImRect::ToVec4 ( ) const
inline

References Max, and Min.

Member Data Documentation

◆ Min

◆ Max


The documentation for this struct was generated from the following file: