octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

color & radio classes


From: Shai Ayal
Subject: color & radio classes
Date: Wed, 16 May 2007 21:48:13 +0300

I attach a test DLD function whihc implements radio & color properties
based on John's sugestions. The color property can also have an
optional radio component (i.e. it can be a valid colorspec or a radio
value). it compiles with mkoctfile.

Questions:
1) error in constructor: test case dd3 emmits an error but neverthless
accepts the invalid color -- should I just fallback to a default color
in this case?
2) naming conventsions: I named color_values to be similar to
radio_values although the correct name should be color_value since it
holds just one value. Is this OK or confusing?
3) general c++ question: what is the "color_property::operator
octave_value (void) const" operator, and how do I use it?

Comments are welcome

Shai

Attachment: test_prop.cc
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]