Ignore:
Timestamp:
Aug 2, 2009, 1:09:35 PM (11 years ago)
Author:
Sam Hocevar
Message:

Make the libcaca color values an enum again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca.h

    r3604 r3606  
    6868 *
    6969 *  @{ */
    70 #define CACA_BLACK 0x00 /**< The colour index for black. */
    71 #define CACA_BLUE 0x01 /**< The colour index for blue. */
    72 #define CACA_GREEN 0x02 /**< The colour index for green. */
    73 #define CACA_CYAN 0x03 /**< The colour index for cyan. */
    74 #define CACA_RED 0x04 /**< The colour index for red. */
    75 #define CACA_MAGENTA 0x05 /**< The colour index for magenta. */
    76 #define CACA_BROWN 0x06 /**< The colour index for brown. */
    77 #define CACA_LIGHTGRAY 0x07 /**< The colour index for light gray. */
    78 #define CACA_DARKGRAY 0x08 /**< The colour index for dark gray. */
    79 #define CACA_LIGHTBLUE 0x09 /**< The colour index for blue. */
    80 #define CACA_LIGHTGREEN 0x0a /**< The colour index for light green. */
    81 #define CACA_LIGHTCYAN 0x0b /**< The colour index for light cyan. */
    82 #define CACA_LIGHTRED 0x0c /**< The colour index for light red. */
    83 #define CACA_LIGHTMAGENTA 0x0d /**< The colour index for light magenta. */
    84 #define CACA_YELLOW 0x0e /**< The colour index for yellow. */
    85 #define CACA_WHITE 0x0f /**< The colour index for white. */
    86 #define CACA_DEFAULT 0x10 /**< The output driver's default colour. */
    87 #define CACA_TRANSPARENT 0x20 /**< The transparent colour. */
    88 
    89 #define CACA_BOLD 0x01 /**< The style mask for bold. */
    90 #define CACA_ITALICS 0x02 /**< The style mask for italics. */
    91 #define CACA_UNDERLINE 0x04 /**< The style mask for underline. */
    92 #define CACA_BLINK 0x08 /**< The style mask for blink. */
     70enum caca_color
     71{
     72    CACA_BLACK =        0x00, /**< The colour index for black. */
     73    CACA_BLUE =         0x01, /**< The colour index for blue. */
     74    CACA_GREEN =        0x02, /**< The colour index for green. */
     75    CACA_CYAN =         0x03, /**< The colour index for cyan. */
     76    CACA_RED =          0x04, /**< The colour index for red. */
     77    CACA_MAGENTA =      0x05, /**< The colour index for magenta. */
     78    CACA_BROWN =        0x06, /**< The colour index for brown. */
     79    CACA_LIGHTGRAY =    0x07, /**< The colour index for light gray. */
     80    CACA_DARKGRAY =     0x08, /**< The colour index for dark gray. */
     81    CACA_LIGHTBLUE =    0x09, /**< The colour index for blue. */
     82    CACA_LIGHTGREEN =   0x0a, /**< The colour index for light green. */
     83    CACA_LIGHTCYAN =    0x0b, /**< The colour index for light cyan. */
     84    CACA_LIGHTRED =     0x0c, /**< The colour index for light red. */
     85    CACA_LIGHTMAGENTA = 0x0d, /**< The colour index for light magenta. */
     86    CACA_YELLOW =       0x0e, /**< The colour index for yellow. */
     87    CACA_WHITE =        0x0f, /**< The colour index for white. */
     88    CACA_DEFAULT =      0x10, /**< The output driver's default colour. */
     89    CACA_TRANSPARENT =  0x20, /**< The transparent colour. */
     90};
     91
     92enum caca_style
     93{
     94    CACA_BOLD =      0x01, /**< The style mask for bold. */
     95    CACA_ITALICS =   0x02, /**< The style mask for italics. */
     96    CACA_UNDERLINE = 0x04, /**< The style mask for underline. */
     97    CACA_BLINK =     0x08, /**< The style mask for blink. */
     98};
    9399/*  @} */
    94100
Note: See TracChangeset for help on using the changeset viewer.