Adding cursor example program
[platform/upstream/evolution-data-server.git] / tests / cursor-example / cursor-search.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2013 Intel Corporation
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of version 2 of the GNU Lesser General Public
7  * License as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  *
19  * Author: Tristan Van Berkom <tristanvb@openismus.com>
20  */
21  
22 #ifndef CURSOR_SEARCH_H
23 #define CURSOR_SEARCH_H
24
25 #include <gtk/gtk.h>
26
27 G_BEGIN_DECLS
28
29 #define CURSOR_TYPE_SEARCH            (cursor_search_get_type())
30 #define CURSOR_SEARCH(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), CURSOR_TYPE_SEARCH, CursorSearch))
31 #define CURSOR_SEARCH_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), CURSOR_TYPE_SEARCH, CursorSearchClass))
32 #define CURSOR_IS_SEARCH(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CURSOR_TYPE_SEARCH))
33 #define CURSOR_IS_SEARCH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CURSOR_TYPE_SEARCH))
34 #define CURSOR_SEARCH_GET_CLASS(o)    (G_TYPE_INSTANCE_GET_CLASS ((o), CURSOR_SEARCH, CursorSearchClass))
35
36 typedef struct _CursorSearch         CursorSearch;
37 typedef struct _CursorSearchPrivate  CursorSearchPrivate;
38 typedef struct _CursorSearchClass    CursorSearchClass;
39
40 struct _CursorSearch
41 {
42         GtkSearchEntry parent_instance;
43
44         CursorSearchPrivate *priv;
45 };
46
47 struct _CursorSearchClass
48 {
49         GtkSearchEntryClass parent_class;
50 };
51
52 GType        cursor_search_get_type  (void) G_GNUC_CONST;
53 GtkWidget   *cursor_search_new       (void);
54 const gchar *cursor_search_get_sexp  (CursorSearch *search);
55
56 G_END_DECLS
57
58 #endif /* CURSOR_SEARCH_H */