mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 06:28:01 +02:00
color: Add enum value for the largest stock color.
Useful if we wish to keep a cache of patterns for the very common stock colors...
This commit is contained in:
parent
b7b65b5315
commit
9c98656fb1
2 changed files with 9 additions and 7 deletions
|
|
@ -67,13 +67,14 @@ _cairo_stock_color (cairo_stock_t stock)
|
|||
return &cairo_color_black;
|
||||
case CAIRO_STOCK_TRANSPARENT:
|
||||
return &cairo_color_transparent;
|
||||
|
||||
case CAIRO_STOCK_NUM_COLORS:
|
||||
default:
|
||||
ASSERT_NOT_REACHED;
|
||||
/* If the user can get here somehow, give a color that indicates a
|
||||
* problem. */
|
||||
return &cairo_color_magenta;
|
||||
}
|
||||
|
||||
ASSERT_NOT_REACHED;
|
||||
|
||||
/* If the user can get here somehow, give a color that indicates a
|
||||
* problem. */
|
||||
return &cairo_color_magenta;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -306,7 +306,8 @@ typedef struct _cairo_format_masks {
|
|||
typedef enum {
|
||||
CAIRO_STOCK_WHITE,
|
||||
CAIRO_STOCK_BLACK,
|
||||
CAIRO_STOCK_TRANSPARENT
|
||||
CAIRO_STOCK_TRANSPARENT,
|
||||
CAIRO_STOCK_NUM_COLORS,
|
||||
} cairo_stock_t;
|
||||
|
||||
typedef enum _cairo_image_transparency {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue