GtkDatabox A set of GTK+ widgets to display large amounts of numerical data quickly and easily.

- Main Page
- Data Structures
- Files

- File List
- Globals

Data Structures | Enumerations | Functions
gtk/gtkdatabox_graph.c File Reference
`#include <gtkdatabox_graph.h>`
`#include <gtk/gtkstyle.h>`
`#include <gtk/gtkgc.h>`
Include dependency graph for gtkdatabox_graph.c:

## Data Structures

struct | _GtkDataboxGraphPrivate

## Enumerations

enum | { GRAPH_COLOR = 1, GRAPH_SIZE, GRAPH_HIDE }

## Functions

GdkGC * | gtk_databox_graph_create_gc (GtkDataboxGraph *graph, GtkDatabox *box)
GType | gtk_databox_graph_get_type (void)
void | gtk_databox_graph_draw (GtkDataboxGraph *graph, GtkDatabox *box)
gint | gtk_databox_graph_calculate_extrema (GtkDataboxGraph *graph, gfloat *min_x, gfloat *max_x, gfloat *min_y, gfloat *max_y)
void | gtk_databox_graph_set_color (GtkDataboxGraph *graph, GdkColor *color)
GdkColor * | gtk_databox_graph_get_color (GtkDataboxGraph *graph)
void | gtk_databox_graph_set_size (GtkDataboxGraph *graph, gint size)
gint | gtk_databox_graph_get_size (GtkDataboxGraph *graph)
void | gtk_databox_graph_set_gc (GtkDataboxGraph *graph, GdkGC *gc)
GdkGC * | gtk_databox_graph_get_gc (GtkDataboxGraph *graph)
void | gtk_databox_graph_set_hide (GtkDataboxGraph *graph, gboolean hide)
gboolean | gtk_databox_graph_get_hide (GtkDataboxGraph *graph)

## Enumeration Type Documentation

anonymous enum

Enumerator:

  GRAPH_COLOR |
  GRAPH_SIZE |
  GRAPH_HIDE |

## Function Documentation

gint gtk_databox_graph_calculate_extrema | ( | GtkDataboxGraph * | graph,
|  | gfloat * | min_x,
|  | gfloat * | max_x,
|  | gfloat * | min_y,
|  | gfloat * | max_y
| ) |  |

gtk_databox_graph_calculate_extrema: : A GtkDataboxGraph object : Will be filled with the lowest x value of the dataset : Will be filled with the highest x value of the dataset : Will be filled with the lowest y value of the dataset : Will be filled with the highest y value of the dataset

Virtual function which determines the minimum and maximum x and y values of the values of this GtkDataboxGraph object if applicable (there are graphs which do not contain data).

Return value: 0 on success, -1 if no data is available,

Here is the caller graph for this function:

GdkGC* gtk_databox_graph_create_gc | ( | GtkDataboxGraph * | graph,
|  | GtkDatabox * | box
| ) |  |

gtk_databox_graph_create_gc: : A GtkDataboxGraph object : A GtkDatabox object

Virtual function which creates a graphics context for the .

Typically called by derived graph objects when the graphics context is needed for the first time.

Return value: The new graphics context.

void gtk_databox_graph_draw | ( | GtkDataboxGraph * | graph,
|  | GtkDatabox * | box
| ) |  |

gtk_databox_graph_draw: : A GtkDataboxGraph object : A GtkDatabox object

Virtual function which draws the GtkDataboxGraph on the drawing area of the GtkDatabox object.

Typically this function is called by GtkDatabox objects.

GdkColor* gtk_databox_graph_get_color | ( | GtkDataboxGraph * | graph | ) |

gtk_databox_graph_get_color: : A GtkDataboxGraph object

Gets the current color of the graph elements (e.g. points).

Return value: The color of the graph.

GdkGC* gtk_databox_graph_get_gc | ( | GtkDataboxGraph * | graph | ) |

gtk_databox_graph_get_gc: : A GtkDataboxGraph object

Gets the current graphics context of the graph.

Return value: The current graphics context of the graph.

gboolean gtk_databox_graph_get_hide | ( | GtkDataboxGraph * | graph | ) |

gtk_databox_graph_get_hide: : A GtkDataboxGraph object

Gets the current "hide" status.

Return value: Whether the graph is hidden (true) or not (false).

gint gtk_databox_graph_get_size | ( | GtkDataboxGraph * | graph | ) |

gtk_databox_graph_get_size: : A GtkDataboxGraph object

Gets the size of the graph elements (e.g. the line width).

Return value: size of the graph elements

GType gtk_databox_graph_get_type | ( | void |  | ) |

void gtk_databox_graph_set_color | ( | GtkDataboxGraph * | graph,
|  | GdkColor * | color
| ) |  |

gtk_databox_graph_set_color: : A GtkDataboxGraph object : Color which is to be used by the graph object

Sets the color which the GtkDataboxGraph object is supposed to be using when drawing itself.

void gtk_databox_graph_set_gc | ( | GtkDataboxGraph * | graph,
|  | GdkGC * | gc
| ) |  |

gtk_databox_graph_set_gc: : A GtkDataboxGraph object : Graphics contex for the graph object

Sets the graphics context which the GtkDataboxGraph object is supposed to be using when drawing itself.

void gtk_databox_graph_set_hide | ( | GtkDataboxGraph * | graph,
|  | gboolean | hide
| ) |  |

gtk_databox_graph_set_hide: : A GtkDataboxGraph object : Declares whether should be hidden (true) or not (false).

Hidden graphs are not shown, when the GtkDatabox containing them is redrawn.

void gtk_databox_graph_set_size | ( | GtkDataboxGraph * | graph,
|  | gint | size
| ) |  |

gtk_databox_graph_set_size: : A GtkDataboxGraph object : Size of graph elements for the graph object

Sets the size (e.g. line width) which the GtkDataboxGraph object is supposed to be using when drawing itself.

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines