Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
aurore::Rect Struct Reference

#include <aurore/core/geometry.hpp>

Public Member Functions

 Rect ()
 
 Rect (Point origin, Size size)
 
 Rect (float x, float y, float width, float height)
 
float getWidth () const
 
float getHeight () const
 
float getMinX () const
 
float getMinY () const
 
float getMidX () const
 
float getMidY () const
 
float getMaxX () const
 
float getMaxY () const
 
bool operator== (const Rect &other) const
 
bool pointInside (Point point)
 
std::string describe ()
 
bool collideWith (const Rect &other) const
 
bool inscribed (const Rect &other) const
 
Rect offsetBy (const Point &origin) const
 

Public Attributes

Point origin
 
Size size
 

Constructor & Destructor Documentation

◆ Rect() [1/3]

aurore::Rect::Rect ( )

◆ Rect() [2/3]

aurore::Rect::Rect ( Point  origin,
Size  size 
)

◆ Rect() [3/3]

aurore::Rect::Rect ( float  x,
float  y,
float  width,
float  height 
)

Member Function Documentation

◆ collideWith()

bool aurore::Rect::collideWith ( const Rect &  other) const

◆ describe()

std::string aurore::Rect::describe ( )

◆ getHeight()

float aurore::Rect::getHeight ( ) const

◆ getMaxX()

float aurore::Rect::getMaxX ( ) const

◆ getMaxY()

float aurore::Rect::getMaxY ( ) const

◆ getMidX()

float aurore::Rect::getMidX ( ) const

◆ getMidY()

float aurore::Rect::getMidY ( ) const

◆ getMinX()

float aurore::Rect::getMinX ( ) const

◆ getMinY()

float aurore::Rect::getMinY ( ) const

◆ getWidth()

float aurore::Rect::getWidth ( ) const

◆ inscribed()

bool aurore::Rect::inscribed ( const Rect &  other) const

◆ offsetBy()

Rect aurore::Rect::offsetBy ( const Point &  origin) const

◆ operator==()

bool aurore::Rect::operator== ( const Rect &  other) const

◆ pointInside()

bool aurore::Rect::pointInside ( Point  point)

Member Data Documentation

◆ origin

Point aurore::Rect::origin

◆ size

Size aurore::Rect::size

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