Ignore:
Timestamp:
Oct 23, 2009 7:56:25 AM (14 years ago)
Author:
dkearney
Message:

updating potential apis for c cpp and python. adding random() and diff()
functions to the rappture objects. objects should be able to generate a random
value for itself based on how it was configured. objects should be able to
compare itself with another object and tell us what the differences are.

Location:
trunk/examples/objects/api/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/objects/api/c/number

    r1581 r1586  
    5959    void Rp_NumberVValue(Rp_Number *num, void *storage, size_t numHints,
    6060                         va_list arg) const;
     61    void Rp_NumberRandom();
     62    Rp_Chain *Rp_NumberDiff(const Rp_Object *o);
    6163
    6264    void Rp_NumberAddPreset(Rp_Number *num, const char *label,
     
    368370                va_list arg. Values stored in the object are
    369371                not changed.
     372    Code Example:
     373
     374void Rp_NumberRandom();
     375    Purpose: populate the object with a random value
     376    Input Arguments: 0
     377    Return Value: None
     378    Notes: the current value of this object will be populated
     379           with a random value that fits within the min and
     380           max if they were specified.
     381    Code Example:
     382
     383Rp_Chain *Rp_NumberDiff(const Rp_Object *o);
     384    Purpose: return a linked list showing the differences between
     385             this object and Rp_Object *o
     386    Input Arguments: 1
     387        1. const Rp_Object *o - object to diff against
     388    Return Value: list of differences between objects
     389    Notes: None
    370390    Code Example:
    371391
  • trunk/examples/objects/api/c/plot

    r1581 r1586  
    4242    void Rp_PlotVValue(Rp_Plot *p, void *storage, size_t numHints,
    4343                       va_list arg) const;
     44    void Rp_PlotRandom();
     45    Rp_Chain *Rp_PlotDiff(Rp_Plot *o);
    4446
    4547    void Rp_PlotConfigure(Rp_Plot *p, size_t as, ClientData c);
     
    264266    Code Example:
    265267
     268void Rp_PlotRandom();
     269    Purpose: populate the object with a random value
     270    Input Arguments: 0
     271    Return Value: None
     272    Notes: the current value of this object will be populated
     273           with a random value that fits within the min and
     274           max if they were specified.
     275    Code Example:
     276
     277Rp_Chain *Rp_PlotDiff(const Rp_Object *o);
     278    Purpose: return a linked list showing the differences between
     279             this object and Rp_Object *o
     280    Input Arguments: 1
     281        1. const Rp_Object *o - object to diff against
     282    Return Value: list of differences between objects
     283    Notes: None
     284    Code Example:
     285
    266286void Rp_PlotConfigure(Rp_Plot *p, size_t as, ClientData c);
    267287    Purpose: configure the object based on the data in "c".
Note: See TracChangeset for help on using the changeset viewer.