HOG2
Public Member Functions | Public Attributes | List of all members
Graphics::rect Struct Reference

#include <Graphics.h>

Public Member Functions

 rect ()
 
 rect (point center, float rad)
 
 rect (point tl, point br)
 
 rect (float l, float t, float r, float b)
 
rect inset (float delta)
 
rect expand (float delta)
 
rectoperator*= (const point &val)
 
rectoperator|= (const rect &val)
 
void lerp (const rect &val, float percentage)
 

Public Attributes

float left
 
float top
 
float right
 
float bottom
 

Detailed Description

Definition at line 94 of file Graphics.h.

Constructor & Destructor Documentation

◆ rect() [1/4]

Graphics::rect::rect ( )
inline

Definition at line 95 of file Graphics.h.

Referenced by expand(), and inset().

◆ rect() [2/4]

Graphics::rect::rect ( point  center,
float  rad 
)
inline

Definition at line 96 of file Graphics.h.

◆ rect() [3/4]

Graphics::rect::rect ( point  tl,
point  br 
)
inline

Definition at line 97 of file Graphics.h.

◆ rect() [4/4]

Graphics::rect::rect ( float  l,
float  t,
float  r,
float  b 
)
inline

Definition at line 98 of file Graphics.h.

Member Function Documentation

◆ expand()

rect Graphics::rect::expand ( float  delta)
inline

Definition at line 103 of file Graphics.h.

References bottom, left, rect(), right, and top.

◆ inset()

rect Graphics::rect::inset ( float  delta)
inline

Definition at line 101 of file Graphics.h.

References bottom, left, rect(), right, and top.

◆ lerp()

void Graphics::rect::lerp ( const rect val,
float  percentage 
)
inline

Definition at line 121 of file Graphics.h.

References bottom, left, right, and top.

Referenced by PancakePuzzle< N >::Draw(), and HandleFrame().

◆ operator*=()

rect& Graphics::rect::operator*= ( const point val)
inline

Definition at line 105 of file Graphics.h.

References bottom, left, right, top, Graphics::point::x, and Graphics::point::y.

◆ operator|=()

rect& Graphics::rect::operator|= ( const rect val)
inline

Definition at line 113 of file Graphics.h.

References bottom, left, max, min(), right, and top.

Member Data Documentation

◆ bottom

float Graphics::rect::bottom

◆ left

float Graphics::rect::left

◆ right

float Graphics::rect::right

◆ top

float Graphics::rect::top

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