Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
Public Member Functions | Public Attributes | List of all members
ImRect Struct Reference

#include <imgui_internal.h>

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 &rhs)
 
void Add (const ImRect &rhs)
 
void Expand (const float amount)
 
void Expand (const ImVec2 &amount)
 
void Translate (const ImVec2 &v)
 
void ClipWith (const ImRect &clip)
 
void Floor ()
 
ImVec2 GetClosestPoint (ImVec2 p, bool on_edge) const
 

Public Attributes

ImVec2 Min
 
ImVec2 Max
 

Detailed Description

Definition at line 253 of file imgui_internal.h.

Constructor & Destructor Documentation

ImRect::ImRect ( )
inline

Definition at line 258 of file imgui_internal.h.

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

Definition at line 259 of file imgui_internal.h.

ImRect::ImRect ( const ImVec4 v)
inline

Definition at line 260 of file imgui_internal.h.

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

Definition at line 261 of file imgui_internal.h.

Member Function Documentation

void ImRect::Add ( const ImVec2 rhs)
inline

Definition at line 274 of file imgui_internal.h.

void ImRect::Add ( const ImRect rhs)
inline

Definition at line 275 of file imgui_internal.h.

void ImRect::ClipWith ( const ImRect clip)
inline

Definition at line 279 of file imgui_internal.h.

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

Definition at line 271 of file imgui_internal.h.

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

Definition at line 272 of file imgui_internal.h.

void ImRect::Expand ( const float  amount)
inline

Definition at line 276 of file imgui_internal.h.

void ImRect::Expand ( const ImVec2 amount)
inline

Definition at line 277 of file imgui_internal.h.

void ImRect::Floor ( )
inline

Definition at line 280 of file imgui_internal.h.

ImVec2 ImRect::GetBL ( ) const
inline

Definition at line 269 of file imgui_internal.h.

ImVec2 ImRect::GetBR ( ) const
inline

Definition at line 270 of file imgui_internal.h.

ImVec2 ImRect::GetCenter ( ) const
inline

Definition at line 263 of file imgui_internal.h.

ImVec2 ImRect::GetClosestPoint ( ImVec2  p,
bool  on_edge 
) const
inline

Definition at line 281 of file imgui_internal.h.

float ImRect::GetHeight ( ) const
inline

Definition at line 266 of file imgui_internal.h.

ImVec2 ImRect::GetSize ( ) const
inline

Definition at line 264 of file imgui_internal.h.

ImVec2 ImRect::GetTL ( ) const
inline

Definition at line 267 of file imgui_internal.h.

ImVec2 ImRect::GetTR ( ) const
inline

Definition at line 268 of file imgui_internal.h.

float ImRect::GetWidth ( ) const
inline

Definition at line 265 of file imgui_internal.h.

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

Definition at line 273 of file imgui_internal.h.

void ImRect::Translate ( const ImVec2 v)
inline

Definition at line 278 of file imgui_internal.h.

Member Data Documentation

ImVec2 ImRect::Max

Definition at line 256 of file imgui_internal.h.

ImVec2 ImRect::Min

Definition at line 255 of file imgui_internal.h.


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