diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-22 14:14:17 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-22 14:14:17 (GMT) |
| commit | 9abe51526cac2634af0541c3de69834dd30e9f78 (patch) | |
| tree | 6ae4deadfe00a83094b9d288d8c11d8ce823577a /src/interface/Border.h | |
| parent | 2c311b9a36a88fadd96f3d39acb1ab2590835d81 (diff) | |
| download | powder-9abe51526cac2634af0541c3de69834dd30e9f78.zip powder-9abe51526cac2634af0541c3de69834dd30e9f78.tar.gz | |
Move all GUI source files into gui/
Diffstat (limited to 'src/interface/Border.h')
| -rw-r--r-- | src/interface/Border.h | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/src/interface/Border.h b/src/interface/Border.h deleted file mode 100644 index a1ceb81..0000000 --- a/src/interface/Border.h +++ /dev/null @@ -1,69 +0,0 @@ -#pragma once -#include "Platform.h" - -namespace ui -{ - - struct Border - { -#if ENABLE_FLOAT_UI -# define BORDER_T float -#else -# define BORDER_T int -#endif - - BORDER_T Top; - BORDER_T Right; - BORDER_T Bottom; - BORDER_T Left; - - Border(BORDER_T all): - Top(all), - Right(all), - Bottom(all), - Left(all) - { - } - - Border(BORDER_T v, BORDER_T h): - Top(v), - Right(h), - Bottom(v), - Left(h) - { - } - - Border(BORDER_T top, BORDER_T right, BORDER_T bottom, BORDER_T left): - Top(top), - Right(right), - Bottom(bottom), - Left(left) - { - } - - inline bool operator == (const int& v) const - { - return (Top == v && Right == v && Bottom == v && Left == v); - } - - inline bool operator == (const Border& v) const - { - return (Top == v.Top && Right == v.Right && Bottom == v.Bottom && Left == v.Left); - } - - inline bool operator != (const Border& v) const - { - return (Top != v.Top || Right != v.Right || Bottom != v.Bottom || Left != v.Left); - } - - inline void operator = (const Border& v) - { - Top = v.Top; - Right = v.Right; - Bottom = v.Bottom; - Left = v.Left; - } - - }; - -} |
