BoxSizer to Sizer
This commit is contained in:
@@ -74,7 +74,7 @@ iVector2& iVector2::operator += ( const SDL_Rect& other )
|
||||
return *this;
|
||||
}
|
||||
|
||||
iVector2& iVector2::operator -= (const iVector2& other)
|
||||
iVector2& iVector2::operator -= ( const iVector2& other )
|
||||
{
|
||||
x -= int(other.x);
|
||||
y -= int(other.y);
|
||||
@@ -82,7 +82,7 @@ iVector2& iVector2::operator -= (const iVector2& other)
|
||||
return *this;
|
||||
}
|
||||
|
||||
iVector2& iVector2::operator -= (const SDL_Rect& other)
|
||||
iVector2& iVector2::operator -= ( const SDL_Rect& other )
|
||||
{
|
||||
x -= int(other.x);
|
||||
y -= int(other.y);
|
||||
@@ -90,7 +90,7 @@ iVector2& iVector2::operator -= (const SDL_Rect& other)
|
||||
return *this;
|
||||
}
|
||||
|
||||
iVector2 operator + (const iVector2& lhs, const iVector2& rhs)
|
||||
iVector2 operator + ( const iVector2& lhs, const iVector2& rhs )
|
||||
{
|
||||
iVector2 rs = lhs;
|
||||
rs += rhs;
|
||||
|
||||
@@ -25,15 +25,12 @@ namespace MathEngine {
|
||||
iVector2& operator += ( const iVector2& other );
|
||||
iVector2& operator += ( const SDL_Rect& other );
|
||||
|
||||
iVector2& operator -= (const iVector2& other);
|
||||
iVector2& operator -= (const SDL_Rect& other);
|
||||
|
||||
iVector2& operator + ( const iVector2& other );
|
||||
iVector2& operator + ( const SDL_Rect& other );
|
||||
iVector2& operator -= ( const iVector2& other );
|
||||
iVector2& operator -= ( const SDL_Rect& other );
|
||||
|
||||
int x;
|
||||
int y;
|
||||
};/// END STRUCT DEFINITION iVector2
|
||||
}/// END NAMESPACE DEFINITION MathEngine
|
||||
MathEngine::iVector2 operator + (const MathEngine::iVector2& lhs, const MathEngine::iVector2& rhs);
|
||||
MathEngine::iVector2 operator + ( const MathEngine::iVector2& lhs, const MathEngine::iVector2& rhs );
|
||||
#endif/// END IFNDEF _IVECTOR2_HPP_
|
||||
@@ -21,7 +21,7 @@ iVector3::iVector3( const SDL_Rect& copy )
|
||||
z = int(copy.w);
|
||||
}
|
||||
|
||||
iVector3& iVector3::operator=( const SDL_Rect& copy )
|
||||
iVector3& iVector3::operator = ( const SDL_Rect& copy )
|
||||
{
|
||||
x = int(copy.x);
|
||||
y = int(copy.y);
|
||||
@@ -30,7 +30,7 @@ iVector3& iVector3::operator=( const SDL_Rect& copy )
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool iVector3::operator==( const SDL_Rect& other ) const
|
||||
bool iVector3::operator == ( const SDL_Rect& other ) const
|
||||
{
|
||||
bool rtn = false;
|
||||
if ( x == other.x )
|
||||
@@ -47,7 +47,7 @@ iVector3::iVector3( const Vector3& copy )
|
||||
z = int(copy.z);
|
||||
}
|
||||
|
||||
iVector3& iVector3::operator=( const Vector3& copy )
|
||||
iVector3& iVector3::operator = ( const Vector3& copy )
|
||||
{
|
||||
x = int(copy.x);
|
||||
y = int(copy.y);
|
||||
@@ -56,7 +56,7 @@ iVector3& iVector3::operator=( const Vector3& copy )
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool iVector3::operator==( const iVector3& other ) const
|
||||
bool iVector3::operator == ( const iVector3& other ) const
|
||||
{
|
||||
bool rtn = false;
|
||||
if ( x == other.x )
|
||||
|
||||
@@ -21,15 +21,15 @@ namespace MathEngine {
|
||||
|
||||
iVector3( const SDL_Rect& copy );
|
||||
|
||||
iVector3& operator=( const SDL_Rect& copy );
|
||||
iVector3& operator = ( const SDL_Rect& copy );
|
||||
|
||||
bool operator==( const SDL_Rect& other ) const;
|
||||
bool operator == ( const SDL_Rect& other ) const;
|
||||
|
||||
iVector3( const Vector3& copy );
|
||||
|
||||
iVector3& operator=( const Vector3& copy );
|
||||
iVector3& operator = ( const Vector3& copy );
|
||||
|
||||
bool operator==( const iVector3& other ) const;
|
||||
bool operator == ( const iVector3& other ) const;
|
||||
|
||||
int z;
|
||||
};/// END STRUCT DEFINITION iVector3
|
||||
|
||||
@@ -26,7 +26,7 @@ iVector4::iVector4( const SDL_Rect& copy )
|
||||
w = int(copy.h);
|
||||
}
|
||||
|
||||
iVector4& iVector4::operator=( const SDL_Rect& copy )
|
||||
iVector4& iVector4::operator = ( const SDL_Rect& copy )
|
||||
{
|
||||
x = int(copy.x);
|
||||
y = int(copy.y);
|
||||
@@ -36,7 +36,7 @@ iVector4& iVector4::operator=( const SDL_Rect& copy )
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool iVector4::operator==( const SDL_Rect& other ) const
|
||||
bool iVector4::operator == ( const SDL_Rect& other ) const
|
||||
{
|
||||
bool rtn = false;
|
||||
if ( x == other.x )
|
||||
@@ -55,7 +55,7 @@ iVector4::iVector4( const Vector4& copy )
|
||||
w = int(copy.w);
|
||||
}
|
||||
|
||||
iVector4& iVector4::operator=( const Vector4& copy )
|
||||
iVector4& iVector4::operator = ( const Vector4& copy )
|
||||
{
|
||||
x = int(copy.x);
|
||||
y = int(copy.y);
|
||||
@@ -65,7 +65,7 @@ iVector4& iVector4::operator=( const Vector4& copy )
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool iVector4::operator==( const iVector4& other ) const
|
||||
bool iVector4::operator == ( const iVector4& other ) const
|
||||
{
|
||||
bool rtn = false;
|
||||
if ( x == other.x )
|
||||
|
||||
@@ -23,15 +23,15 @@ namespace MathEngine {
|
||||
|
||||
iVector4( const SDL_Rect& copy );
|
||||
|
||||
iVector4& operator=( const SDL_Rect& copy );
|
||||
iVector4& operator = ( const SDL_Rect& copy );
|
||||
|
||||
bool operator==( const SDL_Rect& other ) const;
|
||||
bool operator == ( const SDL_Rect& other ) const;
|
||||
|
||||
iVector4( const Vector4& copy );
|
||||
|
||||
iVector4& operator=( const Vector4& copy );
|
||||
iVector4& operator = ( const Vector4& copy );
|
||||
|
||||
bool operator==( const iVector4& other ) const;
|
||||
bool operator == ( const iVector4& other ) const;
|
||||
|
||||
int w;
|
||||
};/// END STRUCT DEFINITION iVector4
|
||||
|
||||
Reference in New Issue
Block a user