Laxkit  0.0.7.1
Public Member Functions | Public Attributes
LaxInterfaces::GradientDataSpot Class Reference

GradientData keeps a stack of these. More...

List of all members.

Public Member Functions

 GradientDataSpot (double tt, Laxkit::ScreenColor *col)
 GradientDataSpot (double tt, int rr, int gg, int bb, int aa)
virtual void dump_out (FILE *f, int indent, int what, Laxkit::anObject *context)
virtual void dump_in (FILE *f, int indent, Laxkit::anObject *context, LaxFiles::Attribute **Att=NULL)
 Dump in an attribute, then call dump_in_atts(thatatt,0,context).
virtual void dump_in_atts (LaxFiles::Attribute *att, int flag, Laxkit::anObject *context)
 Fill the t, red, green, blue, alpha, based on the corresponding attributes.

Public Attributes

double t
Laxkit::ScreenColor color

Detailed Description

GradientData keeps a stack of these.

Keeps position t, and color. The color components are in range [0,0xffff].


Member Function Documentation

void LaxInterfaces::GradientDataSpot::dump_in ( FILE *  f,
int  indent,
Laxkit::anObject context,
LaxFiles::Attribute **  Att = NULL 
)
virtual

Dump in an attribute, then call dump_in_atts(thatatt,0,context).

If Att!=NULL, then return the attribute used to read in the stuff. This allows holding classes to have extra attributes within the spot field to exist and not be discarded.

Todo:
*** allow import of Gimp, Inkscape/svg, scribus gradients

References LaxFiles::Attribute::dump_in().

void LaxInterfaces::GradientDataSpot::dump_out ( FILE *  f,
int  indent,
int  what,
Laxkit::anObject context 
)
virtual

Outputs something like:

  t .754
  rgba 100 255 34 65535
 

If what==-1, then dump out a psuedocode mockup of what gets dumped. Otherwise dumps out in indented data format described above.

Todo:
could have rgba vs. rgba16

Referenced by LaxInterfaces::GradientData::dump_out().


The documentation for this class was generated from the following files:

Mon Feb 17 2014 11:52:58, Laxkit