Laxkit  0.0.7.1
Public Member Functions | Public Attributes
Laxkit::ColorSystem Class Reference

Defines a color system, like RGB, CMYK, etc. More...

Inheritance diagram for Laxkit::ColorSystem:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ColornewColor (int n,...)
 Return a new Color instance with the given channel values.
virtual int AlphaChannel ()=0
 Return the channel index of the alpha channel, or -1 if none.
- Public Member Functions inherited from Laxkit::anObject
 anObject ()
 Set object_id=getUniqueNumber().
virtual ~anObject ()
 Empty virtual destructor.
virtual const charwhattype ()
 Returns the type of anObject.
virtual anObjectduplicate (anObject *ref=NULL)
virtual int inc_count ()
 Increment the data's count by 1. Returns count.
virtual int dec_count ()
 Decrement the count of the data, deleting if count is less than or equal to 0.
virtual int the_count ()
- Public Member Functions inherited from LaxFiles::DumpUtility
virtual void dump_out (FILE *f, int indent, int what, Laxkit::anObject *savecontext)=0
 what==0 means write out an Attribute formatted file.
virtual Attributedump_out_atts (Attribute *att, int what, Laxkit::anObject *savecontext)
 Default is return NULL. what==0 means write out normal Attribute formatted things.
virtual void dump_in (FILE *f, int indent, int what, Laxkit::anObject *loadcontext, Attribute **att)
 Read in a file segment as an Attribute, and pass parsing duties to dump_in_atts.
virtual void dump_in_atts (Attribute *att, int flag, Laxkit::anObject *loadcontext)=0
 Read the Attribute and take away what it can.
virtual ~DumpUtility ()
 Empty virtual destructor.

Public Attributes

charname
unsigned int systemid
unsigned long style
PtrStack< ColorPrimaryprimaries
- Public Attributes inherited from Laxkit::anObject
int suppress_debug
DeleteRefCountedFunc deleteMe
 Called when the count is decremented to 0.
unsigned long object_id
charobject_idstr

Additional Inherited Members

- Protected Attributes inherited from Laxkit::anObject
int _count
 The reference count of the object.

Detailed Description

Defines a color system, like RGB, CMYK, etc.

//ColorSystem::style:
#define COLOR_ADDITIVE (1<<0)
#define COLOR_SUBTRACTIVE (1<<1)
#define COLOR_SPOT (1<<2)
#define COLOR_ALPHAOK (1<<3)
#define COLOR_SPECIAL_INK (1<<4)

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

Mon Feb 17 2014 11:52:59, Laxkit