1 /* Copyright (C) 2004 Red Hat, Inc.
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.
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.
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., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301, USA.
20 #ifndef __EGG_FIND_BAR_H__
21 #define __EGG_FIND_BAR_H__
27 #define EGG_TYPE_FIND_BAR (egg_find_bar_get_type ())
28 #define EGG_FIND_BAR(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), EGG_TYPE_FIND_BAR, EggFindBar))
29 #define EGG_FIND_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_FIND_BAR, EggFindBarClass))
30 #define EGG_IS_FIND_BAR(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), EGG_TYPE_FIND_BAR))
31 #define EGG_IS_FIND_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_FIND_BAR))
32 #define EGG_FIND_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_FIND_BAR, EggFindBarClass))
34 typedef struct _EggFindBar EggFindBar;
35 typedef struct _EggFindBarClass EggFindBarClass;
36 typedef struct _EggFindBarPrivate EggFindBarPrivate;
43 EggFindBarPrivate *priv;
46 struct _EggFindBarClass
48 GtkToolbarClass parent_class;
50 void (* next) (EggFindBar *find_bar);
51 void (* previous) (EggFindBar *find_bar);
52 void (* close) (EggFindBar *find_bar);
53 void (* scroll) (EggFindBar *find_bar, GtkScrollType* scroll);
55 /* Padding for future expansion */
56 void (*_gtk_reserved1) (void);
57 void (*_gtk_reserved2) (void);
58 void (*_gtk_reserved3) (void);
59 void (*_gtk_reserved4) (void);
62 GType egg_find_bar_get_type (void) G_GNUC_CONST;
63 GtkWidget *egg_find_bar_new (void);
65 void egg_find_bar_set_search_string (EggFindBar *find_bar,
66 const char *search_string);
67 const char* egg_find_bar_get_search_string (EggFindBar *find_bar);
68 void egg_find_bar_set_case_sensitive (EggFindBar *find_bar,
69 gboolean case_sensitive);
70 gboolean egg_find_bar_get_case_sensitive (EggFindBar *find_bar);
71 void egg_find_bar_get_all_matches_color (EggFindBar *find_bar,
73 void egg_find_bar_get_current_match_color (EggFindBar *find_bar,
75 void egg_find_bar_set_status_text (EggFindBar *find_bar,
80 #endif /* __EGG_FIND_BAR_H__ */