]> www.fi.muni.cz Git - evince.git/blob - shell/eggfindbar.h
eef556154f6b78a92320df4a673b72f2e0e9d3f2
[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/gtk.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 typedef struct _EggFindBarPrivate EggFindBarPrivate;
36
37 struct _EggFindBar
38 {
39   GtkToolbar parent;
40
41   /*< private >*/
42   EggFindBarPrivate *priv;
43 };
44
45 struct _EggFindBarClass
46 {
47   GtkToolbarClass parent_class;
48
49   void (* next)     (EggFindBar *find_bar);
50   void (* previous) (EggFindBar *find_bar);
51   void (* close)    (EggFindBar *find_bar);
52   void (* scroll)   (EggFindBar *find_bar, GtkScrollType* scroll);
53
54   /* Padding for future expansion */
55   void (*_gtk_reserved1) (void);
56   void (*_gtk_reserved2) (void);
57   void (*_gtk_reserved3) (void);
58   void (*_gtk_reserved4) (void);
59 };
60
61 GType                  egg_find_bar_get_type               (void) G_GNUC_CONST;
62 GtkWidget             *egg_find_bar_new                    (void);
63
64 void        egg_find_bar_set_search_string       (EggFindBar *find_bar,
65                                                   const char *search_string);
66 const char* egg_find_bar_get_search_string       (EggFindBar *find_bar);
67 void        egg_find_bar_set_case_sensitive      (EggFindBar *find_bar,
68                                                   gboolean    case_sensitive);
69 gboolean    egg_find_bar_get_case_sensitive      (EggFindBar *find_bar);
70 void        egg_find_bar_get_all_matches_color   (EggFindBar *find_bar,
71                                                   GdkColor   *color);
72 void        egg_find_bar_get_current_match_color (EggFindBar *find_bar,
73                                                   GdkColor   *color);
74 void        egg_find_bar_set_status_text         (EggFindBar *find_bar,
75                                                   const char *text);
76
77 G_END_DECLS
78
79 #endif /* __EGG_FIND_BAR_H__ */
80
81