diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-08-13 08:17:58 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2017-08-13 08:17:58 +0200 |
| commit | 62b5872138fc16e33b43d4d394bf516b4623f50d (patch) | |
| tree | dda3d3c9ee4dd0a0aafa934029dae22fba435310 /src | |
| parent | 7281d938d2da13005ea2e6f1e07115cfe8cc0373 (diff) | |
debug
Diffstat (limited to 'src')
| -rw-r--r-- | src/Size.cs | 10 |
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; |