aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-08-13 08:17:58 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2017-08-13 08:17:58 +0200
commit62b5872138fc16e33b43d4d394bf516b4623f50d (patch)
treedda3d3c9ee4dd0a0aafa934029dae22fba435310 /src
parent7281d938d2da13005ea2e6f1e07115cfe8cc0373 (diff)
debug
Diffstat (limited to 'src')
-rw-r--r--src/Size.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Size.cs b/src/Size.cs
index 47288b06..ccd1ab31 100644
--- a/src/Size.cs
+++ b/src/Size.cs
@@ -126,7 +126,15 @@ namespace Crow
{
return s.Width <= i && s.Height <= i ? true : false;
}
- public static bool operator <=(Size s1, Size s2)
+ public static bool operator >(Size s, int i)
+ {
+ return s.Width > i && s.Height > i ? true : false;
+ }
+ public static bool operator >=(Size s, int i)
+ {
+ return s.Width >= i && s.Height >= i ? true : false;
+ }
+ public static bool operator <=(Size s1, Size s2)
{
if (s1.Width <= s2.Width && s1.Height <= s2.Height)
return true;