mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
bee101b1f4
* Add clang-tidy readability-redundant-inline-specifier * fix * Update CONTRIBUTING.md * format * fix
25 lines
443 B
C++
25 lines
443 B
C++
#ifndef MXSIZE32_H
|
|
#define MXSIZE32_H
|
|
|
|
#include "mxtypes.h"
|
|
|
|
class MxSize32 {
|
|
public:
|
|
MxSize32() {}
|
|
MxSize32(MxS32 p_width, MxS32 p_height) { CopyFrom(p_width, p_height); }
|
|
|
|
MxS32 GetWidth() const { return m_width; }
|
|
MxS32 GetHeight() const { return m_height; }
|
|
|
|
private:
|
|
void CopyFrom(MxS32 p_width, MxS32 p_height)
|
|
{
|
|
this->m_width = p_width;
|
|
this->m_height = p_height;
|
|
}
|
|
|
|
MxS32 m_width;
|
|
MxS32 m_height;
|
|
};
|
|
|
|
#endif // MXSIZE32_H
|