Code

Fixed icon loading, cacheing and fallback to use stock mechanisms.
[inkscape.git] / src / display / nr-filter-utils.h
index 5ac6fa5ab405711a58e2c2c84b10d3281b5c9d4c..91c295e94e7a052897e9f49a8315d86ef415569b 100644 (file)
@@ -14,6 +14,7 @@
 
 #include "round.h"
 
+/* Shouldn't these be inlined? */
 namespace NR {
 
 /**
@@ -25,6 +26,14 @@ namespace NR {
  */
 int clamp(int const val);
 
+/**
+ * Clamps an integer value to a value between 0 and 255^3.
+ *
+ * \return 0 if the value is smaller than 0, 255^3 (16581375) if it is greater than 255^3, else v
+ * \param v the value to clamp
+ */
+int clamp3(int const val);
+
 /**
  * Macro to use the clamp function with double inputs and unsigned char output
  */