Updated Traditional Chinese translation(Hong Kong and Taiwan)
[evolution.git] / filter / e-filter-int.h
blobbe0aa4e65a33e9b03a07a04df71e91cdda0ce62e
1 /*
2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2 of the License, or (at your option) version 3.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with the program; if not, see <http://www.gnu.org/licenses/>
16 * Authors:
17 * Jeffrey Stedfast <fejj@ximian.com>
19 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
23 #ifndef E_FILTER_INT_H
24 #define E_FILTER_INT_H
26 #include "e-filter-element.h"
28 /* Standard GObject macros */
29 #define E_TYPE_FILTER_INT \
30 (e_filter_int_get_type ())
31 #define E_FILTER_INT(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST \
33 ((obj), E_TYPE_FILTER_INT, EFilterInt))
34 #define E_FILTER_INT_CLASS(cls) \
35 (G_TYPE_CHECK_CLASS_CAST \
36 ((cls), E_TYPE_FILTER_INT, EFilterIntClass))
37 #define E_IS_FILTER_INT(obj) \
38 (G_TYPE_CHECK_INSTANCE_TYPE \
39 ((obj), E_TYPE_FILTER_INT))
40 #define E_IS_FILTER_INT_CLASS(cls) \
41 (G_TYPE_CHECK_CLASS_TYPE \
42 ((cls), E_TYPE_FILTER_INT))
43 #define E_FILTER_INT_GET_CLASS(obj) \
44 (G_TYPE_INSTANCE_GET_CLASS \
45 ((obj), E_TYPE_FILTER_INT, EFilterIntClass))
47 G_BEGIN_DECLS
49 typedef struct _EFilterInt EFilterInt;
50 typedef struct _EFilterIntClass EFilterIntClass;
51 typedef struct _EFilterIntPrivate EFilterIntPrivate;
53 struct _EFilterInt {
54 EFilterElement parent;
55 EFilterIntPrivate *priv;
57 gchar *type;
58 gint val;
59 gint min;
60 gint max;
63 struct _EFilterIntClass {
64 EFilterElementClass parent_class;
67 GType e_filter_int_get_type (void);
68 EFilterElement *e_filter_int_new (void);
69 EFilterElement *e_filter_int_new_type (const gchar *type,
70 gint min,
71 gint max);
72 void e_filter_int_set_value (EFilterInt *f_int,
73 gint value);
75 G_END_DECLS
77 #endif /* E_FILTER_INT_H */