Top |
Functions
GogAxisColorMap * | gog_axis_color_map_edit () |
void | (*GogAxisColorMapHandler) () |
gboolean | gog_axis_color_map_delete () |
GogAxisColorMap * | gog_axis_color_map_dup () |
void | gog_axis_color_map_foreach () |
GogAxisColorMap * | gog_axis_color_map_from_colors () |
GOColor | gog_axis_color_map_get_color () |
GogAxisColorMap const * | gog_axis_color_map_get_from_id () |
unsigned | gog_axis_color_map_get_max () |
char const * | gog_axis_color_map_get_id () |
char const * | gog_axis_color_map_get_name () |
GoResourceType | gog_axis_color_map_get_resource_type () |
GdkPixbuf * | gog_axis_color_map_get_snapshot () |
void | gog_axis_color_map_to_cairo () |
Description
Used to map color and pseudo-3d axes values to the actual color. The first
color maps 0 and the last a positive integer returned by
gog_axis_color_map_get_max()
. For color axes, these integer values must
themselves be mapped to the minimum and maximum of the axis (unless the
axis is inverted). For pseudo-3d axes, successive colors are obtained for
integer values, cycling to the first color when the colors number is not
large enough.
Functions
gog_axis_color_map_edit ()
GogAxisColorMap * gog_axis_color_map_edit (GogAxisColorMap *map
,GOCmdContext *cc
);
Opens a dialog to edit the color map. If map
is NULL
, creates a new one
unless the user cancels the edition.
GogAxisColorMapHandler ()
void (*GogAxisColorMapHandler) (GogAxisColorMap const *map
,gpointer user_data
);
Type of the callback to pass to gog_axis_color_map_foreach()
to iterate through color maps.
gog_axis_color_map_delete ()
gboolean
gog_axis_color_map_delete (GogAxisColorMap *map
);
Destroys the color map and remove it from the user directory and from the database.
gog_axis_color_map_dup ()
GogAxisColorMap *
gog_axis_color_map_dup (GogAxisColorMap const *map
);
Duplicates the color map.
gog_axis_color_map_foreach ()
void gog_axis_color_map_foreach (GogAxisColorMapHandler handler
,gpointer user_data
);
Executes handler
to each color map installed on the system or loaded from
a document.
gog_axis_color_map_from_colors ()
GogAxisColorMap * gog_axis_color_map_from_colors (char const *name
,unsigned nb
,GOColor const *colors
,GoResourceType type
);
Creates a color map using colors
.
gog_axis_color_map_get_color ()
GOColor gog_axis_color_map_get_color (GogAxisColorMap const *map
,double x
);
Maps x
to a color.
gog_axis_color_map_get_from_id ()
GogAxisColorMap const *
gog_axis_color_map_get_from_id (char const *id
);
Retrieves the color map whose identifier is id
.
gog_axis_color_map_get_max ()
unsigned
gog_axis_color_map_get_max (GogAxisColorMap const *map
);
Retrieves the value corresponding to the last color in the map. The first always corresponds to 0.
gog_axis_color_map_get_id ()
char const *
gog_axis_color_map_get_id (GogAxisColorMap const *map
);
Retrieves the color map name.
gog_axis_color_map_get_name ()
char const *
gog_axis_color_map_get_name (GogAxisColorMap const *map
);
Retrieves the color map localized name.
gog_axis_color_map_get_resource_type ()
GoResourceType
gog_axis_color_map_get_resource_type (GogAxisColorMap const *map
);
Retrieves the resource type for map
.
gog_axis_color_map_get_snapshot ()
GdkPixbuf * gog_axis_color_map_get_snapshot (GogAxisColorMap const *map
,gboolean discrete
,gboolean horizontal
,unsigned width
,unsigned height
);
Builds a snapshot of the color map.
gog_axis_color_map_to_cairo ()
void gog_axis_color_map_to_cairo (GogAxisColorMap const *map
,cairo_t *cr
,unsigned discrete
,gboolean horizontal
,double width
,double height
);
When discrete
is larger than 1, it will be interpreted as the number of
major ticks used. The number of colors will then be discrete
− 1.
Draws a snapshot of the color map inside the rectangle.
Property Details
The “resource-type”
property
“resource-type” GoResourceType
The resource type for the color map.
Flags: Read / Write / Construct Only
Default value: GO_RESOURCE_INVALID