Something went wrong. Try again.
Massive multiplayer game aiming to create a collaborative musical environment.
Something went wrong. Try again.
BoomBox Codebase External CEGUI-0.6.2 ScriptingModules CEGUILua LuaScriptModule package UnifiedCoordSystem.pkg
1.9 kB · 73 lines
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374/*********************************************************************** UDim***********************************************************************/class UDim{ float d_scale @ scale; float d_offset @ offset;
float asAbsolute(float base) const; float asRelative(float base) const;
UDim operator+ (const UDim& other) const; UDim operator- (const UDim& other) const; UDim operator/ (const UDim& other) const; UDim operator* (const UDim& other) const;
bool operator== (const UDim& other) const;
UDim(); UDim(float scale, float offset);};
/*********************************************************************** UVector2***********************************************************************/class UVector2{ UDim d_x @ x; UDim d_y @ y;
Vector2 asAbsolute(const Size& base) const; Vector2 asRelative(const Size& base) const;
UVector2 operator+ (const UVector2& other) const; UVector2 operator- (const UVector2& other) const; UVector2 operator/ (const UVector2& other) const; UVector2 operator* (const UVector2& other) const;
bool operator== (const UVector2& other) const;
UVector2(); UVector2(UDim& scale, UDim& offset);};
/*********************************************************************** URect***********************************************************************/class URect{ UVector2 d_min @ min; UVector2 d_max @ max;
Rect asAbsolute(const Size& base) const; Rect asRelative(const Size& base) const;
const UVector2& getPosition() const; UVector2 getSize() const; UDim getWidth() const; UDim getHeight() const;
void setPosition(const UVector2& pos); void setSize(const UVector2& sz); void setWidth(const UDim& w); void setHeight(const UDim& h);
void offset(const UVector2& sz);
URect(); URect(const UVector2& min, const UVector2& max); URect(const UDim& left, const UDim& top, const UDim& right, const UDim& bottom);};