GdkRGB, function names
- From: Owen Taylor <otaylor redhat com>
- To: gtk-devel-list gnome org
- Subject: GdkRGB, function names
- Date: 02 Jul 2000 12:13:25 -0400
I'm having a bit of a mental block for coming up with good function
names for a few functions dealing with allocating colors via GdkRGB.
So, I thought I'd ask for suggestions.
Here are the descriptions of the functions and some possibilities:
1) A function to take a GdkColormap and GdkColor and fill in the
pixel field using GdkRGB. (It will never allocate a color just for
this color, but for a pseudo-color visual, it will result in a
color-cube being permanently allocated in the colormap.)
void gdk_rgb_find_color (GdkColormap *colormap, GdkColor *color);
void gdk_rgb_fill_color (GdkColormap *colormap, GdkColor *color);
void gdk_colormap_find_color (GdkColormap *colormap, GdkColor *color);
void gdk_colormap_alloc_rgb_color (GdkColormap *colormap, GdkColor *color);
2) Functions to set the foreground or background of a GC using
the colormap stored in the GC, the above function and a
unallocated GdkColor:
(Note that gdk_gc_set_foreground() exists and takes an allocated
color.)
void gdk_rgb_gc_set_fg_color (GdkGC *gc, GdkColor *color);
void gdk_gc_set_fg_color (GdkGC *gc, GdkColor *color);
void gdk_gc_set_rgb_fg_color (GdkGC *gc, GdkColor *color);
void gdk_gc_find_fg_gc (GdkGC *gc, GdkColor *color);
void gdk_gc_set_fg_color (GdkGC *gc, GdkColor *color, gboolean allocated);
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]