2023-04-27 22:19:39 -04:00
|
|
|
#ifndef MXRECT32_H
|
|
|
|
#define MXRECT32_H
|
|
|
|
|
|
|
|
class MxRect32
|
|
|
|
{
|
|
|
|
public:
|
2023-06-22 12:19:48 -04:00
|
|
|
MxRect32() { }
|
2023-08-28 05:49:15 -04:00
|
|
|
MxRect32(MxS32 p_left, MxS32 p_top, MxS32 p_right, MxS32 p_bottom)
|
2023-06-21 03:30:46 -04:00
|
|
|
{
|
|
|
|
this->m_left = p_left;
|
|
|
|
this->m_top = p_top;
|
|
|
|
this->m_right = p_right;
|
|
|
|
this->m_bottom = p_bottom;
|
|
|
|
}
|
|
|
|
|
2023-08-28 05:49:15 -04:00
|
|
|
MxS32 m_left;
|
|
|
|
MxS32 m_top;
|
|
|
|
MxS32 m_right;
|
|
|
|
MxS32 m_bottom;
|
2023-10-16 16:09:08 -04:00
|
|
|
|
|
|
|
inline MxS32 GetWidth()
|
|
|
|
{
|
|
|
|
return (m_right - m_left) + 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline MxS32 GetHeight()
|
|
|
|
{
|
|
|
|
return (m_bottom - m_top) + 1;
|
|
|
|
}
|
2023-04-27 22:19:39 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXRECT32_H
|