stockcol.h File Reference

(r1785/r751)

Go to the source code of this file.

Enumerations

enum  StockColour {
  TRANS, BLACK, DKGREY, MIDGREY,
  LTGREY, GREY = LTGREY, WHITE, RED,
  GREEN, BLUE, CYAN, MAGENTA,
  YELLOW, COLOUR_UNSELECTEDBLOB, COLOUR_SELECTEDBLOB, COLOUR_BEZIERBLOB,
  COLOUR_BEZIERLINE, COLOUR_XORNEW, COLOUR_XOREDIT, COLOUR_XORDRAG,
  COLOUR_XORSELECT, COLOUR_GRID, COLOUR_TOOLBLOB, COLOUR_LINEDEFAULT,
  COLOUR_FILLDEFAULT, COLOUR_NONE = TRANS, COLOUR_TRANS = TRANS, COLOUR_BLACK = BLACK,
  COLOUR_DKGREY = DKGREY, COLOUR_MIDGREY = MIDGREY, COLOUR_LTGREY = LTGREY, COLOUR_GREY = LTGREY,
  COLOUR_WHITE = WHITE, COLOUR_RED = RED, COLOUR_GREEN = GREEN, COLOUR_BLUE = BLUE,
  COLOUR_CYAN = CYAN, COLOUR_MAGENTA = MAGENTA, COLOUR_YELLOW = YELLOW
}


Enumeration Type Documentation

enum StockColour
 

Comment: Stock Colours are currently being rebuilt See the top of kernel.h for details on the new stock colours.

Anyway, the old ones are TRANS, BLACK, GREY, etc etc and you must not use them any more. In fact, they'll generate ENSURE failures in the near future.

The new ones are:

COLOUR_NONE (100% transparent, i.e. 'no colour') COLOUR_TRANS

COLOUR_BLACK

COLOUR_DKGREY COLOUR_MIDGREY COLOUR_LTGREY COLOUR_GREY (Same as LTGREY)

COLOUR_WHITE

COLOUR_RED COLOUR_GREEN COLOUR_BLUE

COLOUR_CYAN COLOUR_MAGENTA COLOUR_YELLOW

However, you shouldn't need the above ones, as you should generally be using one of the following, which will probably become user preferences one day.

COLOUR_UNSELECTEDBLOB // Drag blob (handle) things COLOUR_SELECTEDBLOB // (when selected & unselected)

COLOUR_BEZIERBLOB // Bezier control blob COLOUR_BEZIERLINE // Bezier tangent line

COLOUR_XORNEW // XOR outline colours (when... COLOUR_XOREDIT // creating new object, editing COLOUR_XORDRAG // existing object, moving/rotating, COLOUR_XORSELECT // dragging a selection rectangle)

COLOUR_GRIDMAJOR // Grid crosses & points COLOUR_GRIDMINOR

COLOUR_TOOLBLOB // Tool blobs (center of rotation etc)

COLOUR_LINEDEFAULT // Document default line colour COLOUR_FILLDEFAULT // Document default fill colour

If you are the slightest bit unsure which one to use, ask Jason immediately. Not that he'll have a clue either, mind...

Enumerator:
TRANS 
BLACK 
DKGREY 
MIDGREY 
LTGREY 
GREY 
WHITE 
RED 
GREEN 
BLUE 
CYAN 
MAGENTA 
YELLOW 
COLOUR_UNSELECTEDBLOB 
COLOUR_SELECTEDBLOB 
COLOUR_BEZIERBLOB 
COLOUR_BEZIERLINE 
COLOUR_XORNEW 
COLOUR_XOREDIT 
COLOUR_XORDRAG 
COLOUR_XORSELECT 
COLOUR_GRID 
COLOUR_TOOLBLOB 
COLOUR_LINEDEFAULT 
COLOUR_FILLDEFAULT 
COLOUR_NONE 
COLOUR_TRANS 
COLOUR_BLACK 
COLOUR_DKGREY 
COLOUR_MIDGREY 
COLOUR_LTGREY 
COLOUR_GREY 
COLOUR_WHITE 
COLOUR_RED 
COLOUR_GREEN 
COLOUR_BLUE 
COLOUR_CYAN 
COLOUR_MAGENTA 
COLOUR_YELLOW 

Definition at line 171 of file stockcol.h.

00172 {
00173     // **** Deprecated colours - DO NOT USE any from this first block
00174     TRANS,
00175     BLACK,
00176     DKGREY,
00177     MIDGREY,
00178     LTGREY,
00179     GREY = LTGREY,
00180     WHITE,
00181     RED,
00182     GREEN,
00183     BLUE,
00184     CYAN,
00185     MAGENTA,
00186     YELLOW,
00187 
00188 
00189 
00190 
00191     // Predefined SCREEN colours that may one day become user preferences
00192     COLOUR_UNSELECTEDBLOB,          // Drag blob (handle) things
00193     COLOUR_SELECTEDBLOB,            // (when selected & unselected)
00194     
00195     COLOUR_BEZIERBLOB,              // Bezier control blob
00196     COLOUR_BEZIERLINE,              // Bezier tangent line
00197 
00198     COLOUR_XORNEW,                  // XOR outline colours (when...
00199     COLOUR_XOREDIT,                 // creating new object, editing
00200     COLOUR_XORDRAG,                 // existing object, moving/rotating,
00201     COLOUR_XORSELECT,               // dragging a selection rectangle)
00202 
00203     COLOUR_GRID,                    // Grid crosses & points
00204 
00205     COLOUR_TOOLBLOB,                // Tool blobs (center of rotation etc)
00206 
00207     // Predefined DOCUMENT colours
00208     COLOUR_LINEDEFAULT,             // Document default line colour
00209     COLOUR_FILLDEFAULT,             // Document default fill colour
00210 
00211 
00212 
00213     // Predefined stock colours
00214     COLOUR_NONE     = TRANS,                    // } No colour (fully transparent)
00215     COLOUR_TRANS    = TRANS,                    // }
00216     COLOUR_BLACK    = BLACK,
00217     COLOUR_DKGREY   = DKGREY,
00218     COLOUR_MIDGREY  = MIDGREY,
00219     COLOUR_LTGREY   = LTGREY,
00220     COLOUR_GREY     = LTGREY,
00221     COLOUR_WHITE    = WHITE,
00222     COLOUR_RED      = RED,
00223     COLOUR_GREEN    = GREEN,
00224     COLOUR_BLUE     = BLUE,
00225     COLOUR_CYAN     = CYAN,
00226     COLOUR_MAGENTA  = MAGENTA,
00227     COLOUR_YELLOW   = YELLOW
00228 };


Generated on Sat Nov 10 03:49:21 2007 for Camelot by  doxygen 1.4.4