diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-07-12 12:52:18 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2012-04-07 02:11:31 (GMT) |
commit | d232e10f8fadfbaae834c0ba124cef16cd0bc356 (patch) | |
tree | 52b5280c0f8339714e247517a8f40e37381ba6be /src/FbTk/Resource.hh | |
parent | 137d2edaa8cb5f4f41e2ef85de3b4316b32daf79 (diff) | |
download | fluxbox_paul-d232e10f8fadfbaae834c0ba124cef16cd0bc356.zip fluxbox_paul-d232e10f8fadfbaae834c0ba124cef16cd0bc356.tar.bz2 |
Add RangeTraits class which automatically clamps the value of resources
and start using it.
Diffstat (limited to 'src/FbTk/Resource.hh')
-rw-r--r-- | src/FbTk/Resource.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/FbTk/Resource.hh b/src/FbTk/Resource.hh index c6f12d6..37a7ed3 100644 --- a/src/FbTk/Resource.hh +++ b/src/FbTk/Resource.hh | |||
@@ -281,6 +281,9 @@ typedef Resource<int, IntTraits<int> > IntResource; | |||
281 | typedef Resource<unsigned int, IntTraits<unsigned int> > UIntResource; | 281 | typedef Resource<unsigned int, IntTraits<unsigned int> > UIntResource; |
282 | typedef Resource<std::string, StringTraits> StringResource; | 282 | typedef Resource<std::string, StringTraits> StringResource; |
283 | 283 | ||
284 | typedef RangeTraits<IntTraits<int> > RangedIntTraits; | ||
285 | typedef Resource<int, RangedIntTraits> RangedIntResource; | ||
286 | |||
284 | } // end namespace FbTk | 287 | } // end namespace FbTk |
285 | 288 | ||
286 | #endif // FBTK_RESOURCE_HH | 289 | #endif // FBTK_RESOURCE_HH |