]> git.saurik.com Git - wxWidgets.git/commitdiff
Helper for clipping to range.
authorWłodzimierz Skiba <abx@abx.art.pl>
Fri, 5 May 2006 17:28:33 +0000 (17:28 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Fri, 5 May 2006 17:28:33 +0000 (17:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/utils.h

index f5d087d38551108c80db19f2bb16f62276ff3bf9..9f7031537a2dc04a40c33486d3c4f327e2029de3 100644 (file)
@@ -54,6 +54,7 @@ class WXDLLIMPEXP_CORE wxWindowList;
 
 #define wxMax(a,b)            (((a) > (b)) ? (a) : (b))
 #define wxMin(a,b)            (((a) < (b)) ? (a) : (b))
+#define wxClip(a,b,c)         (((a) < (b)) ? (b) : (((a) > (c)) ? (c) : (a)))
 
 // wxGetFreeMemory can return huge amount of memory on 32-bit platforms as well
 // so to always use long long for its result type on all platforms which