|  |  |  | GtkDatabox Reference Manual |  | 
|---|---|---|---|---|
| GtkDataboxMarkersGtkDataboxMarkers — A GtkDataboxGraph used for displaying labeled markers for xy-values. | 
#include <gtkdatabox_markers.h>
                    GtkDataboxMarkersPrivate;
enum                GtkDataboxMarkersPosition;
enum                GtkDataboxMarkersTextPosition;
enum                GtkDataboxMarkersType;
                    GtkDataboxMarkers;
GtkDataboxGraph*    gtk_databox_markers_new             (guint len,
                                                         gfloat *X,
                                                         gfloat *Y,
                                                         GdkColor *color,
                                                         guint size,
                                                         GtkDataboxMarkersType type);
void                gtk_databox_markers_set_position    (GtkDataboxMarkers *markers,
                                                         guint index,
                                                         GtkDataboxMarkersPosition position);
void                gtk_databox_markers_set_label       (GtkDataboxMarkers *markers,
                                                         guint index,
                                                         GtkDataboxMarkersTextPosition label_position,
                                                         gchar *text,
                                                         gboolean boxed);
GObject +----GtkDataboxGraph +----GtkDataboxXYCGraph +----GtkDataboxMarkers +----GtkDataboxCrossSimple
GtkDataboxMarkers is a GtkDataboxGraph class for displaying labeled markers (circles, triangles, lines) for xy-values.
typedef struct _GtkDataboxMarkersPrivate GtkDataboxMarkersPrivate;
A private data structure used by the GtkDataboxMarkers. It shields all internal things from developers who are just using the object.
   typedef enum
   {
      GTK_DATABOX_MARKERS_C = 0,
      GTK_DATABOX_MARKERS_N,
      GTK_DATABOX_MARKERS_E,
      GTK_DATABOX_MARKERS_S,
      GTK_DATABOX_MARKERS_W
   }
   GtkDataboxMarkersPosition;
Position of a marker relative to its respective X/Y value.
   typedef enum
   {
      GTK_DATABOX_MARKERS_TEXT_CENTER = 0,/* text centered   on marker */
      GTK_DATABOX_MARKERS_TEXT_N,	  /* text north      of marker */
      GTK_DATABOX_MARKERS_TEXT_NE,	  /* text north-east of marker */
      GTK_DATABOX_MARKERS_TEXT_E,	  /* text east       of marker */
      GTK_DATABOX_MARKERS_TEXT_SE,	  /* text south-east of marker */
      GTK_DATABOX_MARKERS_TEXT_S,	  /* text south      of marker */
      GTK_DATABOX_MARKERS_TEXT_SW,	  /* text south-west of marker */
      GTK_DATABOX_MARKERS_TEXT_W,	  /* text west       of marker */
      GTK_DATABOX_MARKERS_TEXT_NW	  /* text north-west of marker */
   }
   GtkDataboxMarkersTextPosition;
Position of a label relative to its repective marker.
| text centered on marker | |
| text north of marker | |
| text north-east of marker | |
| text east of marker | |
| text south-east of marker | |
| text south of marker | |
| text south-west of marker | |
| text west of marker | |
| text north-west of marker | 
   typedef enum
   {
      GTK_DATABOX_MARKERS_NONE = 0,	/* No Marker (just text) */
      GTK_DATABOX_MARKERS_TRIANGLE,	/* Marker is a triangle */
      GTK_DATABOX_MARKERS_SOLID_LINE,	/* Marker is a solid line */
      GTK_DATABOX_MARKERS_DASHED_LINE	/* Marker is a dashed line */
   }
   GtkDataboxMarkersType;
Type of the marker
typedef struct _GtkDataboxMarkers GtkDataboxMarkers;
GtkDataboxMarkers is a GtkDataboxGraph class for displaying labeled markers (circles, triangles, lines) for xy-values.
GtkDataboxGraph* gtk_databox_markers_new (guint len, gfloat *X, gfloat *Y, GdkColor *color, guint size, GtkDataboxMarkersType type);
Creates a new GtkDataboxMarkers object which can be added to a GtkDatabox widget as nice decoration for other graphs.
| 
 | length of XandY | 
| 
 | array of horizontal position values of markers | 
| 
 | array of vertical position values of markers | 
| 
 | color of the markers | 
| 
 | marker size or line width (depending on the type) | 
| 
 | type of markers (e.g. triangle or circle) | 
| Returns : | A new GtkDataboxMarkers object | 
void gtk_databox_markers_set_position (GtkDataboxMarkers *markers, guint index, GtkDataboxMarkersPosition position);
Sets a position for one of the markers.
| 
 | A GtkDataboxMarkers object | 
| 
 | index within the array of X/Y values | 
| 
 | position of the marker (e.g. circle or triangle relative to their X/Y value | 
void gtk_databox_markers_set_label (GtkDataboxMarkers *markers, guint index, GtkDataboxMarkersTextPosition label_position, gchar *text, gboolean boxed);
Sets a label for one of the markers.
| 
 | A GtkDataboxMarkers object | 
| 
 | index within the array of X/Y values | 
| 
 | position of the label relative to the marker | 
| 
 | text to be displayed in the label | 
| 
 | Whether the label is to be enclosed in a box (true) or not (false) |