summaryrefslogtreecommitdiff
path: root/src/interface/Border.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2013-03-24 12:24:17 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2013-03-24 12:24:17 (GMT)
commit9b5b85f9b01cbda7ef9a7ec2a15b2a35630a5b9d (patch)
treeac7d040253b459ce102e476cb19ab59e3cfa90d7 /src/interface/Border.h
parent6bf98ccdca39936a3c51367862eed7c49f8786ec (diff)
parentbdc69f31c0be94191015838886bdcc2bc67f1acb (diff)
downloadpowder-9b5b85f9b01cbda7ef9a7ec2a15b2a35630a5b9d.zip
powder-9b5b85f9b01cbda7ef9a7ec2a15b2a35630a5b9d.tar.gz
Merge branch 'reorganisation' of github.com:FacialTurd/The-Powder-Toy
Diffstat (limited to 'src/interface/Border.h')
-rw-r--r--src/interface/Border.h69
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;
- }
-
- };
-
-}