DDNet documentation
Loading...
Searching...
No Matches
CScreenRect Class Reference

#include <graphics.h>

Collaboration diagram for CScreenRect:
[legend]

Public Member Functions

 CScreenRect (float Left, float Top, float Width, float Height)
 CScreenRect (const vec2 &TopLeft, const vec2 &BottomRight)
CScreenRect Move (const vec2 &Position) const
constexpr vec2 Size () const
constexpr float Width () const
constexpr float Height () const
constexpr bool Inside (const vec2 &Position) const
void Expand (float Width, float Height)
void Expand (float Size)

Public Attributes

vec2 m_TopLeft
vec2 m_BottomRight

Constructor & Destructor Documentation

◆ CScreenRect() [1/2]

CScreenRect::CScreenRect ( float Left,
float Top,
float Width,
float Height )
inline

◆ CScreenRect() [2/2]

CScreenRect::CScreenRect ( const vec2 & TopLeft,
const vec2 & BottomRight )
inline

Member Function Documentation

◆ Expand() [1/2]

void CScreenRect::Expand ( float Size)
inline

◆ Expand() [2/2]

void CScreenRect::Expand ( float Width,
float Height )
inline

◆ Height()

float CScreenRect::Height ( ) const
inlineconstexpr

◆ Inside()

bool CScreenRect::Inside ( const vec2 & Position) const
inlineconstexpr

◆ Move()

CScreenRect CScreenRect::Move ( const vec2 & Position) const
inline

◆ Size()

vec2 CScreenRect::Size ( ) const
inlineconstexpr

◆ Width()

float CScreenRect::Width ( ) const
inlineconstexpr

Member Data Documentation

◆ m_BottomRight

vec2 CScreenRect::m_BottomRight

◆ m_TopLeft

vec2 CScreenRect::m_TopLeft

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