mirror of https://github.com/Gnucash/gnucash
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
2.2 KiB
61 lines
2.2 KiB
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
/*
|
|
* gog-chart.h :
|
|
*
|
|
* Copyright (C) 2003-2004 Jody Goldberg (jody@gnome.org)
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of version 2 of the GNU General Public
|
|
* License as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
|
* USA
|
|
*/
|
|
|
|
#ifndef GOG_CHART_H
|
|
#define GOG_CHART_H
|
|
|
|
#include <goffice/graph/goffice-graph.h>
|
|
#include <glib-object.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GOG_CHART_TYPE (gog_chart_get_type ())
|
|
#define GOG_CHART(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOG_CHART_TYPE, GogChart))
|
|
#define IS_GOG_CHART(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOG_CHART_TYPE))
|
|
|
|
GType gog_chart_get_type (void);
|
|
|
|
gboolean gog_chart_get_position (GogChart const *chart, unsigned *x, unsigned *y,
|
|
unsigned *cols, unsigned *rows);
|
|
void gog_chart_set_position (GogChart *chart, unsigned x, unsigned y,
|
|
unsigned cols, unsigned rows);
|
|
|
|
void gog_chart_request_cardinality_update (GogChart *chart);
|
|
void gog_chart_get_cardinality (GogChart *chart,
|
|
unsigned *full, unsigned *visible);
|
|
void gog_chart_foreach_elem (GogChart *chart, gboolean only_visible,
|
|
GogEnumFunc handler, gpointer data);
|
|
GSList *gog_chart_get_plots (GogChart const *chart);
|
|
|
|
GogAxisSet gog_chart_axis_set (GogChart const *chart);
|
|
gboolean gog_chart_axis_set_is_valid (GogChart const *chart, GogAxisSet type);
|
|
gboolean gog_chart_axis_set_assign (GogChart *chart, GogAxisSet type);
|
|
GSList *gog_chart_get_axis (GogChart const *chart, GogAxisType type);
|
|
|
|
GogGrid *gog_chart_get_grid (GogChart const *chart);
|
|
|
|
/* View utils */
|
|
GogViewAllocation const *gog_chart_view_get_plot_area (GogView const *view);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* GOG_CHART_H */
|