From 25f795b04f80641d0fa37f015973cba7e6da0ae6 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 26 Jun 2008 17:22:01 +0200 Subject: [PATCH] graph: add comments Signed-off-by: Julien Danjou --- widgets/graph.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/widgets/graph.c b/widgets/graph.c index 527173c2d..686d56e81 100644 --- a/widgets/graph.c +++ b/widgets/graph.c @@ -86,6 +86,7 @@ plot_delete(plot_t **g) DO_SLIST(plot_t, plot, plot_delete) +/** The private graph data structure */ typedef struct { /** Width of the widget */ @@ -148,6 +149,14 @@ graph_plot_add(graph_data_t *d, const char *title) return plot; } +/** Draw a graph widget. + * \param ctx The draw context. + * \param screen The screen number. + * \param w The widget node we are called from. + * \param offset The offset to draw at. + * \param used The already used width. + * \param p A pointer to the object we're drawing onto. + */ static int graph_draw(draw_context_t *ctx, int screen __attribute__ ((unused)), @@ -547,4 +556,5 @@ graph_new(alignment_t align) return w; } + // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80