VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
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
 
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
 

Public Attributes

ImVec2 Min
 
ImVec2 Max
 

Constructor & Destructor Documentation

ImRect::ImRect ( )
inline
ImRect::ImRect ( const ImVec2 min,
const ImVec2 max 
)
inline
ImRect::ImRect ( const ImVec4 v)
inline
ImRect::ImRect ( float  x1,
float  y1,
float  x2,
float  y2 
)
inline

Member Function Documentation

ImVec2 ImRect::GetCenter ( ) const
inline
ImVec2 ImRect::GetSize ( ) const
inline
float ImRect::GetWidth ( ) const
inline
float ImRect::GetHeight ( ) const
inline
ImVec2 ImRect::GetTL ( ) const
inline
ImVec2 ImRect::GetTR ( ) const
inline
ImVec2 ImRect::GetBL ( ) const
inline
ImVec2 ImRect::GetBR ( ) const
inline
bool ImRect::Contains ( const ImVec2 p) const
inline

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

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

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

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

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

void ImRect::Add ( const ImVec2 p)
inline

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

void ImRect::Add ( const ImRect r)
inline

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

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

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

void ImRect::Translate ( const ImVec2 d)
inline

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

void ImRect::TranslateX ( float  dx)
inline
void ImRect::TranslateY ( float  dy)
inline
void ImRect::ClipWith ( const ImRect r)
inline

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

void ImRect::ClipWithFull ( const ImRect r)
inline

References ImClamp(), Max, and Min.

void ImRect::Floor ( )
inline

References IM_FLOOR.

bool ImRect::IsInverted ( ) const
inline

Member Data Documentation

ImVec2 ImRect::Min
ImVec2 ImRect::Max

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)