mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
Introduce clang-format (#240)
This commit is contained in:

committed by
GitHub

parent
e928fc9425
commit
b449da1fa3
@@ -1,32 +1,25 @@
|
||||
#ifndef MXRECT32_H
|
||||
#define MXRECT32_H
|
||||
|
||||
class MxRect32
|
||||
{
|
||||
class MxRect32 {
|
||||
public:
|
||||
MxRect32() { }
|
||||
MxRect32(MxS32 p_left, MxS32 p_top, MxS32 p_right, MxS32 p_bottom)
|
||||
{
|
||||
this->m_left = p_left;
|
||||
this->m_top = p_top;
|
||||
this->m_right = p_right;
|
||||
this->m_bottom = p_bottom;
|
||||
}
|
||||
MxRect32() {}
|
||||
MxRect32(MxS32 p_left, MxS32 p_top, MxS32 p_right, MxS32 p_bottom)
|
||||
{
|
||||
this->m_left = p_left;
|
||||
this->m_top = p_top;
|
||||
this->m_right = p_right;
|
||||
this->m_bottom = p_bottom;
|
||||
}
|
||||
|
||||
MxS32 m_left;
|
||||
MxS32 m_top;
|
||||
MxS32 m_right;
|
||||
MxS32 m_bottom;
|
||||
MxS32 m_left;
|
||||
MxS32 m_top;
|
||||
MxS32 m_right;
|
||||
MxS32 m_bottom;
|
||||
|
||||
inline MxS32 GetWidth()
|
||||
{
|
||||
return (m_right - m_left) + 1;
|
||||
}
|
||||
inline MxS32 GetWidth() { return (m_right - m_left) + 1; }
|
||||
|
||||
inline MxS32 GetHeight()
|
||||
{
|
||||
return (m_bottom - m_top) + 1;
|
||||
}
|
||||
inline MxS32 GetHeight() { return (m_bottom - m_top) + 1; }
|
||||
};
|
||||
|
||||
#endif // MXRECT32_H
|
||||
|
Reference in New Issue
Block a user