RawPixData

Holds a PixData object in raw form.



struct RawPixData

Description:

RawPixData is an aggregate struct used to feed data to the PixData class, which converts the data to a QPixmap.

Each RawPixData variable defines up to MAXOBJS "thingies" to draw. Each "thingy" consists of a series of coordinate pairs describing the vector positions to use when drawing. There are three types of "thingies" you can draw using RawPixData:

Currently, MAXOBJS==10.

Because you can't assign values to 2D C-arrays without pre-defining the array dimensions, we store some of the data for all of the "thingies" as strings. That way, you can create a QPixmap using less than MAXOBJS "thingies".

I have since thought about creating a format for the PixData class that is nothing but an array of strings, each of which contains data for a PixData object. However, I've since decided that it ain't broke, so why fix it? If there's really a big need for vector-drawn pixmaps, someone can always modify this class and create that format.


Please note: The following documentation of the struct members is not in order. The list at the beginning of this documentation specifies that. I've reordered the descriptions of the members to make the documentation flow more smoothly.


Example

To end this documentation, I want to give you an example. This is the actual, honest-to-goodness definition of the RawPixData variable for the power button icon. It's direct from the source code, and specifies two line segments, side-by-side, centered inside of a circle.

  RawPixData powerd={
     FALSE,
     1.0,
     1.0,
     32,
     2,
     FALSE,
     {".25,.25  .74,.74",
     ".49,.375  .49,.624  .5,.375  .5,.624",
     "","","","","","","",""},
     "2 4",
     "cl" };
  

alphabetic index hierarchy of classes


Copyright 1997 by John Weiss [John.Weiss@colorado.edu] "generated by doc++"?! More like mangled ...

generated by doc++