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

Store various characteristics of a fill. More...

Inheritance diagram for LaxInterfaces::FillStyle:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FillStyle (int r, int g, int b, int a, int fr, int fs, int f)
 FillStyle (const FillStyle &f)
FillStyleoperator= (FillStyle &f)
virtual void Color (int r, int g, int b, int a)
 Set the color. Components are 0..0xffff.
virtual void dump_in_atts (LaxFiles::Attribute *att, int flag, Laxkit::anObject *context)
 Reverse of dump_out.
virtual void dump_out (FILE *f, int indent, int what, Laxkit::anObject *context)
virtual int hasFill ()
 Return whether the style will cause any fill or not.
- 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 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 ~DumpUtility ()
 Empty virtual destructor.

Public Attributes

Laxkit::ScreenColor color
int fillrule
int fillstyle
int function
unsigned long mask
- 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

Store various characteristics of a fill.

This is the color used during a solid fill

fillrule (from Xlib): EvenOddRule or WindingRule
fillstyle (from Xlib): FillSolid, FillTiled, FillStippled, or FillOpaqueStippled, plus FillNone (#define as 100)

function is a LaxCompositeOp.


Member Function Documentation

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

Puts something like:

  color 65535 0 65535 65535
  fillrule odd
  fillstyle solid 
  function copy
 

Ignores what. Uses 0 for it (unless -1).

Implements LaxFiles::DumpUtility.

References Laxkit::LAXOP_Source.

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


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

Mon Feb 17 2014 11:52:58, Laxkit