From af1b3098c28bbf1ce7cf64131c33ac578a01213b Mon Sep 17 00:00:00 2001 From: Krisztian Pifko Date: Wed, 16 Jan 2002 17:26:54 +0000 Subject: new file, implements the ECellProgress object. 2002-01-16 Krisztian Pifko * e-cell-progress.c, e-cell-progress.h: new file, implements the ECellProgress object. * Makefile.am (libetable_la_SOURCES, libetableinclude_HEADERS): added e-cell-progress.c and e-cell-progress.h. svn path=/trunk/; revision=15341 --- widgets/table/e-cell-progress.h | 74 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 widgets/table/e-cell-progress.h (limited to 'widgets/table/e-cell-progress.h') diff --git a/widgets/table/e-cell-progress.h b/widgets/table/e-cell-progress.h new file mode 100644 index 0000000000..4cd09ed0de --- /dev/null +++ b/widgets/table/e-cell-progress.h @@ -0,0 +1,74 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * e-cell-progress.h - Progress display cell object. + * Copyright 1999-2002, Ximian, Inc. + * Copyright 2001, 2002, Krisztian Pifko + * + * Authors: + * Krisztian Pifko + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License, version 2, as published by the Free Software Foundation. + * + * This library 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 + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +#ifndef _E_CELL_PROGRESS_H_ +#define _E_CELL_PROGRESS_H_ + +#include +#include +#include + +BEGIN_GNOME_DECLS + +#define E_CELL_PROGRESS_TYPE (e_cell_progress_get_type ()) +#define E_CELL_PROGRESS(o) (GTK_CHECK_CAST ((o), E_CELL_PROGRESS_TYPE, ECellProgress)) +#define E_CELL_PROGRESS_CLASS(k) (GTK_CHECK_CLASS_CAST((k), E_CELL_PROGRESS_TYPE, ECellProgressClass)) +#define E_IS_CELL_PROGRESS(o) (GTK_CHECK_TYPE ((o), E_CELL_PROGRESS_TYPE)) +#define E_IS_CELL_PROGRESS_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), E_CELL_PROGRESS_TYPE)) + +typedef struct { + ECell parent; + + int padding; + int border; + int min; + int max; + guchar red; + guchar green; + guchar blue; + + guchar *buffer; + GdkPixbuf *image; + + int width; + int height; +} ECellProgress; + +typedef struct { + ECellClass parent_class; +} ECellProgressClass; + +GtkType e_cell_progress_get_type (void); +ECell *e_cell_progress_new (int min, int max, int width, int height); +void e_cell_progress_construct (ECellProgress *eprog, int padding, int border, + int min, int max, int width, int height, guchar red, guchar green, guchar blue); +void e_cell_progress_set_padding (ECellProgress *eprog, int padding); +void e_cell_progress_set_border (ECellProgress *eprog, int border); +void e_cell_progress_set_color (ECellProgress *eprog, guchar red, guchar green, guchar blue); + +END_GNOME_DECLS + +#endif /* _E_CELL_PROGRESS_H_ */ + + -- cgit v1.2.3