diff options
Diffstat (limited to 'src/interface/Border.h')
| -rw-r--r-- | src/interface/Border.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/interface/Border.h b/src/interface/Border.h index b5ae505..a1ceb81 100644 --- a/src/interface/Border.h +++ b/src/interface/Border.h @@ -40,10 +40,15 @@ namespace ui 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); + return (Top == v.Top && Right == v.Right && Bottom == v.Bottom && Left == v.Left); } inline bool operator != (const Border& v) const |
