2023-10-31 11:30:13 -04:00
|
|
|
#ifndef MXSIZE32_H
|
|
|
|
#define MXSIZE32_H
|
|
|
|
|
|
|
|
#include "mxtypes.h"
|
|
|
|
|
|
|
|
class MxSize32 {
|
|
|
|
public:
|
|
|
|
MxSize32() {}
|
2023-12-29 23:55:36 -05:00
|
|
|
MxSize32(MxS32 p_width, MxS32 p_height) { CopyFrom(p_width, p_height); }
|
2023-10-31 11:30:13 -04:00
|
|
|
|
2023-12-21 10:52:42 -05:00
|
|
|
inline MxS32 GetWidth() const { return m_width; }
|
|
|
|
inline MxS32 GetHeight() const { return m_height; }
|
|
|
|
|
|
|
|
private:
|
2023-12-29 23:55:36 -05:00
|
|
|
inline void CopyFrom(MxS32 p_width, MxS32 p_height)
|
2023-12-29 16:30:17 -05:00
|
|
|
{
|
|
|
|
this->m_width = p_width;
|
|
|
|
this->m_height = p_height;
|
|
|
|
}
|
|
|
|
|
2023-10-31 11:30:13 -04:00
|
|
|
MxS32 m_width;
|
|
|
|
MxS32 m_height;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXSIZE32_H
|