Synopsis

#include <ntd-widgets.h>

struct              NtdXYSerie;
struct              NtdXYItem;
enum                NtdQueryMode;

GtkObject *         ntd_xy_serie_new                    (void);

const gchar *       ntd_xy_serie_get_x_title            (NtdXYSerie *xy_serie);
const gchar *       ntd_xy_serie_get_y_title            (NtdXYSerie *xy_serie);
void                ntd_xy_serie_set_x_title            (NtdXYSerie *xy_serie,
                                                         const gchar *x_title);
void                ntd_xy_serie_set_y_title            (NtdXYSerie *xy_serie,
                                                         const gchar *y_title);
const NtdXYItem *   ntd_xy_serie_get                    (NtdXYSerie *xy_serie,
                                                         NtdQueryMode mode);
void                ntd_xy_serie_append                 (NtdXYSerie *xy_serie,
                                                         gdouble x,
                                                         gdouble y);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----NtdPlotData
                     +----NtdXYSerie

Properties

  "x-title"                  gchar*                : Read / Write
  "y-title"                  gchar*                : Read / Write

Description

Details

struct NtdXYSerie

struct NtdXYSerie;

struct NtdXYItem

struct NtdXYItem {
    gdouble x;
    gdouble y;
};

enum NtdQueryMode

typedef enum {
    NTD_QUERY_CURRENT,
    NTD_QUERY_FIRST,
    NTD_QUERY_NEXT,
    NTD_QUERY_PREVIOUS,
    NTD_QUERY_LAST
} NtdQueryMode;

ntd_xy_serie_new ()

GtkObject *         ntd_xy_serie_new                    (void);

Creates a new empty xy serie.

Returns :

the newly created object.

ntd_xy_serie_get_x_title ()

const gchar *       ntd_xy_serie_get_x_title            (NtdXYSerie *xy_serie);

ntd_xy_serie_get_y_title ()

const gchar *       ntd_xy_serie_get_y_title            (NtdXYSerie *xy_serie);

ntd_xy_serie_set_x_title ()

void                ntd_xy_serie_set_x_title            (NtdXYSerie *xy_serie,
                                                         const gchar *x_title);

ntd_xy_serie_set_y_title ()

void                ntd_xy_serie_set_y_title            (NtdXYSerie *xy_serie,
                                                         const gchar *y_title);

ntd_xy_serie_get ()

const NtdXYItem *   ntd_xy_serie_get                    (NtdXYSerie *xy_serie,
                                                         NtdQueryMode mode);

ntd_xy_serie_append ()

void                ntd_xy_serie_append                 (NtdXYSerie *xy_serie,
                                                         gdouble x,
                                                         gdouble y);

Property Details

The "x-title" property

  "x-title"                  gchar*                : Read / Write

Description of the x values.

Default value: NULL


The "y-title" property

  "y-title"                  gchar*                : Read / Write

Description of the y values.

Default value: NULL