Top | ![]() |
![]() |
![]() |
![]() |
GOGraphWidgetGOGraphWidget — Widget showing a GogGraph. |
GogChart * | go_graph_widget_get_chart () |
GogGraph * | go_graph_widget_get_graph () |
GogRenderer * | go_graph_widget_get_renderer () |
GtkWidget * | go_graph_widget_new () |
void | go_graph_widget_set_size_mode () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkLayout ╰── GOGraphWidget
GOGraphWidget implements AtkImplementorIface, GtkBuildable and GtkScrollable.
GtkWidget *
go_graph_widget_new (GogGraph *graph
);
Creates a new GOGraphWidget with an embedded GogGraph. If graph is NULL, the graph will be auto-created, and a GogChart will be added graph.
void go_graph_widget_set_size_mode (GOGraphWidget *widget
,GOGraphWidgetSizeMode size_mode
,int width
,int height
);
Sets the size mode of the GOGraphWidget. It is used to determine the size and position of the drawn chart. The following sizing modes are supported:
GO_GRAPH_WIDGET_SIZE_MODE_FIT, aspect ratio set. The aspect ratio is guaranteed to be maintained, i.e. the graph is never squeezed, and will always fit into the visible area.
GO_GRAPH_WIDGET_SIZE_MODE_FIT, no aspect ratio set. The aspect ratio is adapted to make the graph exactly fit into the visible area.
GO_GRAPH_WIDGET_SIZE_MODE_FIT_WIDTH, aspect ratio set. The aspect ratio is guaranteed to be maintained, i.e. the graph is never squezzed, and will always occupy the whole width of the visible area.
GO_GRAPH_WIDGET_SIZE_MODE_FIT_HEIGHT, aspect ratio set. The aspect ratio is guaranteed to be maintained, i.e. the graph is never squezzed, and will always occupy the whole height of the visible area.
GO_GRAPH_WIDGET_SIZE_MODE_FIT_FIXED_SIZE, no aspect ratio set. The graph will occupy the area specified by width/height, its aspect ratio will be determined by height/width.