GwyColorAxis — Simple axis with a false color scale
void | (*GwyColorAxisMapFunc) () |
GtkWidget * | gwy_color_axis_new () |
GtkWidget * | gwy_color_axis_new_with_range () |
void | gwy_color_axis_get_range () |
void | gwy_color_axis_set_range () |
GwySIUnit * | gwy_color_axis_get_si_unit () |
void | gwy_color_axis_set_si_unit () |
void | gwy_color_axis_set_gradient () |
const gchar * | gwy_color_axis_get_gradient () |
GwyTicksStyle | gwy_color_axis_get_ticks_style () |
void | gwy_color_axis_set_ticks_style () |
gboolean | gwy_color_axis_get_labels_visible () |
void | gwy_color_axis_set_labels_visible () |
void | gwy_color_axis_set_tick_map_func () |
char * | gradient | Read / Write |
gboolean | labels-visible | Read / Write |
GtkOrientation | orientation | Read / Write / Construct Only |
GwySIUnit * | si-unit | Read / Write |
GwyTicksStyle | ticks-style | Read / Write |
struct | GwyColorAxis |
struct | GwyColorAxisClass |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GwyColorAxis
GwyColorAxis implements AtkImplementorIface and GtkBuildable.
#include <libgwydgets/gwydgets.h>
void (*GwyColorAxisMapFunc) (GwyColorAxis *axis
,const gdouble *z
,gdouble *mapped
,guint n
,gpointer user_data
);
Type of color axis non-linear tick mapping function.
axis |
A color axis. |
|
z |
Array of length |
|
mapped |
Array of length |
|
n |
Length of |
|
user_data |
Data passed to |
Since: 2.39
GtkWidget *
gwy_color_axis_new (GtkOrientation orientation
);
Creates a new color axis.
orientation |
The orientation of the axis. |
The newly created color axis as a GtkWidget.
GtkWidget * gwy_color_axis_new_with_range (GtkOrientation orientation
,gdouble min
,gdouble max
);
Creates a new color axis.
orientation |
The orientation of the axis. |
|
min |
The minimum. |
|
max |
The maximum. |
The newly created color axis as a GtkWidget.
void gwy_color_axis_get_range (GwyColorAxis *axis
,gdouble *min
,gdouble *max
);
Gets the range of a color axis.
axis |
A color axis. |
|
min |
Location to store the range maximum (or |
|
max |
Location to store the range minimum (or |
void gwy_color_axis_set_range (GwyColorAxis *axis
,gdouble min
,gdouble max
);
Sets the range of a color axis.
axis |
A color axis. |
|
min |
The range minimum. |
|
max |
The range maximum. |
GwySIUnit *
gwy_color_axis_get_si_unit (GwyColorAxis *axis
);
Gets the SI unit a color axis displays.
axis |
A color axis. |
The SI unit.
void gwy_color_axis_set_si_unit (GwyColorAxis *axis
,GwySIUnit *unit
);
Sets the SI unit a color axis displays.
axis |
A color axis. |
|
unit |
A SI unit to display next to minimum and maximum value. |
void gwy_color_axis_set_gradient (GwyColorAxis *axis
,const gchar *gradient
);
Sets the color gradient a color axis should use.
axis |
A color axis. |
|
gradient |
Name of gradient |
const gchar *
gwy_color_axis_get_gradient (GwyColorAxis *axis
);
Gets the color gradient a color axis uses.
axis |
A color axis. |
The color gradient.
GwyTicksStyle
gwy_color_axis_get_ticks_style (GwyColorAxis *axis
);
Gets ticks style of a color axis.
axis |
A color axis. |
The ticks style.
void gwy_color_axis_set_ticks_style (GwyColorAxis *axis
,GwyTicksStyle ticks_style
);
Sets the ticks style of a color axis.
axis |
A color axis. |
|
ticks_style |
The ticks style to use. |
gboolean
gwy_color_axis_get_labels_visible (GwyColorAxis *axis
);
Gets the visibility of labels of a color axis.
axis |
A color axis. |
TRUE
if labels are displayed, FALSE
if they are omitted.
void gwy_color_axis_set_labels_visible (GwyColorAxis *axis
,gboolean labels_visible
);
Sets the visibility of labels of a color axis.
axis |
A color axis. |
|
labels_visible |
|
void gwy_color_axis_set_tick_map_func (GwyColorAxis *axis
,GwyColorAxisMapFunc func
,gpointer user_data
);
Set the tick mapping function for a color axis.
The axis calculates tick positions as for the linear axis and then places
them non-linearly using func
. Hence a mapping function should be used with
ticks mode GWY_TICKS_STYLE_UNLABELLED
because minimum tick spacing is not
guaranteed.
axis |
A color axis. |
|
func |
Tick mapping function. |
|
user_data |
Data to pass to |
Since: 2.39
struct GwyColorAxis;
struct GwyColorAxisClass { GtkWidgetClass parent_class; void (*reserved1)(void); void (*reserved2)(void); };
“gradient”
property“gradient” char *
Name of color gradient the axis displays.
Owner: GwyColorAxis
Flags: Read / Write
Default value: NULL
“labels-visible”
property“labels-visible” gboolean
Whether minimum and maximum labels are visible.
Owner: GwyColorAxis
Flags: Read / Write
Default value: TRUE
“orientation”
property“orientation” GtkOrientation
Axis orientation.
Owner: GwyColorAxis
Flags: Read / Write / Construct Only
Default value: GTK_ORIENTATION_VERTICAL
“si-unit”
property“si-unit” GwySIUnit *
SI unit to display in labels.
Owner: GwyColorAxis
Flags: Read / Write
“ticks-style”
property“ticks-style” GwyTicksStyle
The style of axis ticks.
Owner: GwyColorAxis
Flags: Read / Write
Default value: GWY_TICKS_STYLE_AUTO
GwyAxis -- Axis for use in graphs, GwyRuler -- Horizontal and vertical rulers