![]() | ![]() | ![]() | Gwyddion Widgets Library Reference Manual | ![]() |
---|
GwyColorAxis — Simple axis with a false color scale
typedef GwyColorAxisParams; struct GwyColorAxis; struct GwyColorAxisClass; GtkWidget* gwy_color_axis_new (GtkOrientation orientation, gdouble min, gdouble max, GwyPalette *pal); void gwy_color_axis_get_range (GwyColorAxis *axis, gdouble *min, gdouble *max); void gwy_color_axis_set_range (GwyColorAxis *axis, gdouble min, gdouble max); void gwy_color_axis_set_unit (GwyColorAxis *axis, GwySIUnit *unit); void gwy_color_axis_set_palette (GwyColorAxis *axis, GwyPalette *pal); GwyPalette* gwy_color_axis_get_palette (GwyColorAxis *axis);
GObject +----GtkObject +----GtkWidget +----GwyColorAxis
GwyColorAxis implements AtkImplementorIface.
typedef struct { gint tick_length; gint textarea; /*text area width*/ PangoFontDescription *font; } GwyColorAxisParams;
struct GwyColorAxisClass { GtkWidgetClass parent_class; gpointer reserved1; gpointer reserved2; };
GtkWidget* gwy_color_axis_new (GtkOrientation orientation, gdouble min, gdouble max, GwyPalette *pal);
Creates a new color axis.
orientation: | The orientation of the axis. |
min: | The minimum. |
max: | The maximum. |
pal: | The palette the color axis should use. |
Returns : | The newly created color axis as a GtkWidget. |
void gwy_color_axis_get_range (GwyColorAxis *axis, gdouble *min, gdouble *max);
Gets the range of color axis axis.
axis: | A color axis. |
min: | Where the range maximum should be stored (or NULL). |
max: | Where the range minimum should be stored (or NULL). |
void gwy_color_axis_set_range (GwyColorAxis *axis, gdouble min, gdouble max);
Sets the range for color axis axis to [min, max].
axis: | A color axis. |
min: | The minimum. |
max: | The maximum. |
void gwy_color_axis_set_unit (GwyColorAxis *axis, GwySIUnit *unit);
axis: | |
unit: |
void gwy_color_axis_set_palette (GwyColorAxis *axis, GwyPalette *pal);
Sets the palette for color axis axis to pal.
axis: | A color axis. |
pal: | A palette. |
GwyPalette* gwy_color_axis_get_palette (GwyColorAxis *axis);
Returns the palette the color axis axis uses.
axis: | A color axis. |
Returns : | The palette, as GwyPalette. |
<< GwyLayerMask | Graph >> |