struct axl::gui::Size

#include <axl_gui_Def.h>

struct Size
{
    // fields

    union
    {
        struct
        {
            int m_width;
            int m_height;
        };

        struct
        {
            uint_t m_width_u;
            uint_t m_height_u;
        };
    };

    // construction

    Size();

    Size(
        int width,
        int height
        );

    // methods

    Size
    operator+(const Size& size2);

    Size
    operator-(const Size& size2);

    void
    setup(
        int width,
        int height
        );

    void
    clipNegative();
};