ezEngine Release 26.3
Loading...
Searching...
No Matches
ezSizeTemplate< Type > Class Template Reference

Generic two-dimensional size representation with width and height components. More...

#include <Size.h>

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
 ezSizeTemplate ()
 Default constructor does not initialize the data.
 
 ezSizeTemplate (Type width, Type height)
 Constructor to set all values.
 
bool HasNonZeroArea () const
 Returns true if the area described by the size is non zero.
 

Public Attributes

Type width
 
Type height
 

Detailed Description

template<typename Type>
class ezSizeTemplate< Type >

Generic two-dimensional size representation with width and height components.

Provides a simple container for representing rectangular dimensions in 2D space. The template parameter allows using different numeric types (integers, floats) depending on precision requirements. Common typedefs include ezSizeU32, ezSizeFloat, and ezSizeDouble. Primarily used for representing viewport dimensions, texture sizes, and UI element bounds.


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