2024-05-29 10:47:25 -04:00
|
|
|
#ifndef MXRECT16_H
|
|
|
|
#define MXRECT16_H
|
|
|
|
|
|
|
|
#include "mxtypes.h"
|
|
|
|
|
|
|
|
// SIZE 0x08
|
|
|
|
struct MxRect16 {
|
|
|
|
// FUNCTION: BETA10 0x10097ee0
|
|
|
|
MxRect16() {}
|
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x100981f0
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetLeft(MxS16 p_left) { m_left = p_left; }
|
2024-05-29 10:47:25 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x10098220
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetTop(MxS16 p_top) { m_top = p_top; }
|
2024-05-29 10:47:25 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x10098250
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetRight(MxS16 p_right) { m_right = p_right; }
|
2024-05-29 10:47:25 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x10098280
|
2024-07-04 19:06:32 -04:00
|
|
|
void SetBottom(MxS16 p_bottom) { m_bottom = p_bottom; }
|
2024-05-29 10:47:25 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x10098300
|
2024-07-04 19:06:32 -04:00
|
|
|
MxS16 GetLeft() const { return m_left; }
|
2024-05-29 10:47:25 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x10098330
|
2024-07-04 19:06:32 -04:00
|
|
|
MxS16 GetTop() const { return m_top; }
|
2024-05-29 10:47:25 -04:00
|
|
|
|
|
|
|
// There is no GetRight()
|
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x10098360
|
2024-07-04 19:06:32 -04:00
|
|
|
MxS16 GetBottom() const { return m_bottom; }
|
2024-05-29 10:47:25 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x10098390
|
2024-07-04 19:06:32 -04:00
|
|
|
MxS16 GetWidth() const { return m_right - m_left + 1; }
|
2024-05-29 10:47:25 -04:00
|
|
|
|
|
|
|
// FUNCTION: BETA10 0x100983c0
|
2024-07-04 19:06:32 -04:00
|
|
|
MxS16 GetHeight() const { return m_bottom - m_top + 1; }
|
2024-05-29 10:47:25 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
MxS16 m_left; // 0x00
|
|
|
|
MxS16 m_top; // 0x02
|
|
|
|
MxS16 m_right; // 0x04
|
|
|
|
MxS16 m_bottom; // 0x06
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXRECT16_H
|