//////////////////////////////////////////////////////////////////////////////////////////////////// // NoesisGUI - http://www.noesisengine.com // Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved. //////////////////////////////////////////////////////////////////////////////////////////////////// namespace Noesis { //////////////////////////////////////////////////////////////////////////////////////////////////// inline Thickness::Thickness(): left(0.0f), top(0.0f), right(0.0f), bottom(0.0f) { } //////////////////////////////////////////////////////////////////////////////////////////////////// inline Thickness::Thickness(float thickness): left(thickness), top(thickness), right(thickness), bottom(thickness) { } //////////////////////////////////////////////////////////////////////////////////////////////////// inline Thickness::Thickness(float lr, float tb): left(lr), top(tb), right(lr), bottom(tb) { } //////////////////////////////////////////////////////////////////////////////////////////////////// inline Thickness::Thickness(float l, float t, float r, float b): left(l), top(t), right(r), bottom(b) { } //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Thickness::operator==(const Thickness& thickness) const { return left == thickness.left && top == thickness.top && right == thickness.right && bottom == thickness.bottom; } //////////////////////////////////////////////////////////////////////////////////////////////////// inline bool Thickness::operator!=(const Thickness& thickness) const { return !(*this == thickness); } }