NetSurf
sexy_icon_entry.h
Go to the documentation of this file.
1/*
2 * file libsexy/sexy-icon-entry.h Entry widget
3 *
4 * Copyright (C) 2004-2006 Christian Hammond.
5 * redistributed under GPLv2
6 *
7 * libsexy is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * NetSurf is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>
18 * or write to the Free Software Foundation, Inc.,
19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 */
21#ifndef _SEXY_ICON_ENTRY_H_
22#define _SEXY_ICON_ENTRY_H_
23
27
28#include <gtk/gtk.h>
29
30#define SEXY_TYPE_ICON_ENTRY (sexy_icon_entry_get_type())
31#define SEXY_ICON_ENTRY(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST((obj), SEXY_TYPE_ICON_ENTRY, SexyIconEntry))
33#define SEXY_ICON_ENTRY_CLASS(klass) \
34 (G_TYPE_CHECK_CLASS_CAST((klass), SEXY_TYPE_ICON_ENTRY, SexyIconEntryClass))
35#define SEXY_IS_ICON_ENTRY(obj) \
36 (G_TYPE_CHECK_INSTANCE_TYPE((obj), SEXY_TYPE_ICON_ENTRY))
37#define SEXY_IS_ICON_ENTRY_CLASS(klass) \
38 (G_TYPE_CHECK_CLASS_TYPE((klass), SEXY_TYPE_ICON_ENTRY))
39#define SEXY_ICON_ENTRY_GET_CLASS(obj) \
40 (G_TYPE_INSTANCE_GET_CLASS ((obj), SEXY_TYPE_ICON_ENTRY, SexyIconEntryClass))
41
42typedef enum
43{
46
48
50{
51 GtkEntry parent_object;
52
54
55 void (*gtk_reserved1)(void);
56 void (*gtk_reserved2)(void);
57 void (*gtk_reserved3)(void);
58 void (*gtk_reserved4)(void);
59};
60
62{
63 GtkEntryClass parent_class;
64
65 /* Signals */
67 int button);
69 int button);
70
71 void (*gtk_reserved1)(void);
72 void (*gtk_reserved2)(void);
73 void (*gtk_reserved3)(void);
74 void (*gtk_reserved4)(void);
75};
76
77G_BEGIN_DECLS
78
80
81GtkWidget *sexy_icon_entry_new(void);
82
84 SexyIconEntryPosition position,
85 GtkImage *icon);
86
88 SexyIconEntryPosition position,
89 gboolean highlight);
90
91GtkImage *sexy_icon_entry_get_icon(const SexyIconEntry *entry,
92 SexyIconEntryPosition position);
93
95 SexyIconEntryPosition position);
97
98G_END_DECLS
99
100#endif /* _SEXY_ICON_ENTRY_H_ */
gboolean sexy_icon_entry_get_icon_highlight(const SexyIconEntry *entry, SexyIconEntryPosition position)
SexyIconEntryPosition
@ SEXY_ICON_ENTRY_SECONDARY
@ SEXY_ICON_ENTRY_PRIMARY
GtkImage * sexy_icon_entry_get_icon(const SexyIconEntry *entry, SexyIconEntryPosition position)
GtkWidget * sexy_icon_entry_new(void)
void sexy_icon_entry_set_icon_highlight(SexyIconEntry *entry, SexyIconEntryPosition position, gboolean highlight)
void sexy_icon_entry_set_icon(SexyIconEntry *entry, SexyIconEntryPosition position, GtkImage *icon)
G_BEGIN_DECLS GType sexy_icon_entry_get_type(void)
void sexy_icon_entry_add_clear_button(SexyIconEntry *icon_entry)
void(* gtk_reserved3)(void)
void(* icon_released)(SexyIconEntry *entry, SexyIconEntryPosition icon_pos, int button)
void(* gtk_reserved4)(void)
void(* icon_pressed)(SexyIconEntry *entry, SexyIconEntryPosition icon_pos, int button)
GtkEntryClass parent_class
void(* gtk_reserved2)(void)
void(* gtk_reserved1)(void)
GtkEntry parent_object
void(* gtk_reserved4)(void)
void(* gtk_reserved1)(void)
void(* gtk_reserved3)(void)
void(* gtk_reserved2)(void)
SexyIconEntryPriv * priv