[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: color & radio classes
From: |
Shai Ayal |
Subject: |
Re: color & radio classes |
Date: |
Tue, 22 May 2007 17:47:36 +0300 |
Sorry for replying to my own posts, but no one else seems to answer ...
anyway, I'm attaching the changes proposed in the previous email as a
patch to src/graphics.cc
Shai
2007-05-22 Shai Ayal <address@hidden>
* graphics.cc (color_property): modified to accept both color and
radio values
* graphics.cc: added radio_values, radio_property, color_values
classes
On 5/16/07, Shai Ayal <address@hidden> wrote:
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
color_property_2.patch
Description: Text Data