Ember
Loading...
Searching...
No Matches
EmberCore::Size Struct Reference

2D size with integer dimensions More...

#include <Geometry.h>

Public Member Functions

 Size ()=default
 Size (int width, int height)
bool operator== (const Size &other) const
bool operator!= (const Size &other) const
bool IsEmpty () const

Public Attributes

int width = 0
int height = 0

Detailed Description

2D size with integer dimensions

Definition at line 23 of file Geometry.h.

Constructor & Destructor Documentation

◆ Size() [1/2]

EmberCore::Size::Size ( )
default

◆ Size() [2/2]

EmberCore::Size::Size ( int width,
int height )
inline

Definition at line 28 of file Geometry.h.

Member Function Documentation

◆ IsEmpty()

bool EmberCore::Size::IsEmpty ( ) const
inline

Definition at line 34 of file Geometry.h.

◆ operator!=()

bool EmberCore::Size::operator!= ( const Size & other) const
inline

Definition at line 32 of file Geometry.h.

◆ operator==()

bool EmberCore::Size::operator== ( const Size & other) const
inline

Definition at line 30 of file Geometry.h.

Member Data Documentation

◆ height

int EmberCore::Size::height = 0

Definition at line 25 of file Geometry.h.

◆ width

int EmberCore::Size::width = 0

Definition at line 24 of file Geometry.h.


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