module Accessibility {
- enum ValueType {
- SHORTVAL,
- USHORTVAL,
- LONGVAL,
- ULONGVAL,
- FLOATVAL,
- DOUBLEVAL
- };
-
- union SValue switch (ValueType) {
- case Accessibility::SHORTVAL: short val_short;
- case Accessibility::USHORTVAL: unsigned short val_ushort;
- case Accessibility::LONGVAL: long val_long;
- case Accessibility::ULONGVAL: unsigned long val_ulong;
- case Accessibility::FLOATVAL: float val_float;
- case Accessibility::DOUBLEVAL: double val_double;
- };
-
+ /**
+ * An interface supporting controls which allow a
+ * one-dimensional, scalar quantity to be modified or which
+ * reflect a scalar quantity. (If STATE_EDITABLE is not present,
+ * the valuator is treated as "read only".
+ *
+ * @note Events generated by Image instances include:
+ * \li \c "object:value-changed"
+ */
interface Value : Bonobo::Unknown {
- readonly attribute SValue minimumValue;
- readonly attribute SValue maximumValue;
- readonly attribute SValue minimumIncrement;
- attribute SValue currentValue;
+ /**
+ * The minimum value allowed by this valuator.
+ */
+ readonly attribute double minimumValue;
+ /**
+ * The maximum value allowed by this valuator.
+ */
+ readonly attribute double maximumValue;
+ /**
+ * The smallest incremental change which this valuator allows.
+ * If 0, the incremental changes to the valuator are
+ * limited only by the precision of a double precision value
+ * on the platform.
+ */
+ readonly attribute double minimumIncrement;
+ /**
+ * The current value of the valuator.
+ */
+ attribute double currentValue;
+
+ /** \cond
+ * unImplemented:
+ *
+ * placeholders for future expansion.
+ */
+ void unImplemented ();
+ void unImplemented2 ();
+ void unImplemented3 ();
+ void unImplemented4 ();
+ /** \endcond */
};
};