]> www.fi.muni.cz Git - evince.git/blob - shell/eggfindbar.h
hook up the find bar widget; now we just need a document to find things in
[evince.git] / shell / eggfindbar.h
1 /* Copyright (C) 2004 Red Hat, Inc.
2
3 This library is free software; you can redistribute it and/or
4 modify it under the terms of the GNU Library General Public License as
5 published by the Free Software Foundation; either version 2 of the
6 License, or (at your option) any later version.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public
14 License along with the Gnome Library; see the file COPYING.LIB.  If not,
15 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16 Boston, MA 02111-1307, USA.
17 */
18
19 #ifndef __EGG_FIND_BAR_H__
20 #define __EGG_FIND_BAR_H__
21
22 #include <gtk/gtkbin.h>
23
24 G_BEGIN_DECLS
25
26 #define EGG_TYPE_FIND_BAR            (egg_find_bar_get_type ())
27 #define EGG_FIND_BAR(object)         (G_TYPE_CHECK_INSTANCE_CAST ((object), EGG_TYPE_FIND_BAR, EggFindBar))
28 #define EGG_FIND_BAR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_FIND_BAR, EggFindBarClass))
29 #define EGG_IS_FIND_BAR(object)      (G_TYPE_CHECK_INSTANCE_TYPE ((object), EGG_TYPE_FIND_BAR))
30 #define EGG_IS_FIND_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_FIND_BAR))
31 #define EGG_FIND_BAR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_FIND_BAR, EggFindBarClass))
32
33 typedef struct _EggFindBar        EggFindBar;
34 typedef struct _EggFindBarClass   EggFindBarClass;
35
36 struct _EggFindBar
37 {
38   GtkBin parent_instance;
39
40   /*< private >*/
41   gpointer private_data;
42 };
43
44 struct _EggFindBarClass
45 {
46   GtkBinClass parent_class;
47
48   /* Padding for future expansion */
49   void (*_gtk_reserved1) (void);
50   void (*_gtk_reserved2) (void);
51   void (*_gtk_reserved3) (void);
52   void (*_gtk_reserved4) (void);
53 };
54
55 GType                  egg_find_bar_get_type               (void) G_GNUC_CONST;
56 GtkWidget             *egg_find_bar_new                    (void);
57
58 void        egg_find_bar_set_search_string       (EggFindBar *find_bar,
59                                                   const char *search_string);
60 const char* egg_find_bar_get_search_string       (EggFindBar *find_bar);
61 void        egg_find_bar_set_case_sensitive      (EggFindBar *find_bar,
62                                                   gboolean    case_sensitive);
63 gboolean    egg_find_bar_get_case_sensitive      (EggFindBar *find_bar);
64 void        egg_find_bar_get_all_matches_color   (EggFindBar *find_bar,
65                                                   GdkColor   *color);
66 void        egg_find_bar_get_current_match_color (EggFindBar *find_bar,
67                                                   GdkColor   *color);
68 void        egg_find_bar_grab_focus              (EggFindBar *find_bar);
69
70 G_END_DECLS
71
72 #endif /* __EGG_FIND_BAR_H__ */
73
74