Updated Spanish translation
[anjuta-git-plugin.git] / plugins / debug-manager / sexy-icon-entry.h
blob162de082fb5ec0f061cc731c48337efc5f89e5f8
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * @file libsexy/sexy-icon-entry.h Entry widget
5 * @Copyright (C) 2004-2006 Christian Hammond.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
22 #ifndef _SEXY_ICON_ENTRY_H_
23 #define _SEXY_ICON_ENTRY_H_
25 typedef struct _SexyIconEntry SexyIconEntry;
26 typedef struct _SexyIconEntryClass SexyIconEntryClass;
27 typedef struct _SexyIconEntryPriv SexyIconEntryPriv;
29 #include <gtk/gtkentry.h>
30 #include <gtk/gtkimage.h>
32 #define SEXY_TYPE_ICON_ENTRY (sexy_icon_entry_get_type())
33 #define SEXY_ICON_ENTRY(obj) \
34 (G_TYPE_CHECK_INSTANCE_CAST((obj), SEXY_TYPE_ICON_ENTRY, SexyIconEntry))
35 #define SEXY_ICON_ENTRY_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_CAST((klass), SEXY_TYPE_ICON_ENTRY, SexyIconEntryClass))
37 #define SEXY_IS_ICON_ENTRY(obj) \
38 (G_TYPE_CHECK_INSTANCE_TYPE((obj), SEXY_TYPE_ICON_ENTRY))
39 #define SEXY_IS_ICON_ENTRY_CLASS(klass) \
40 (G_TYPE_CHECK_CLASS_TYPE((klass), SEXY_TYPE_ICON_ENTRY))
41 #define SEXY_ICON_ENTRY_GET_CLASS(obj) \
42 (G_TYPE_INSTANCE_GET_CLASS ((obj), SEXY_TYPE_ICON_ENTRY, SexyIconEntryClass))
44 typedef enum
46 SEXY_ICON_ENTRY_PRIMARY,
47 SEXY_ICON_ENTRY_SECONDARY
49 } SexyIconEntryPosition;
51 struct _SexyIconEntry
53 GtkEntry parent_object;
55 SexyIconEntryPriv *priv;
57 void (*gtk_reserved1)(void);
58 void (*gtk_reserved2)(void);
59 void (*gtk_reserved3)(void);
60 void (*gtk_reserved4)(void);
63 struct _SexyIconEntryClass
65 GtkEntryClass parent_class;
67 /* Signals */
68 void (*icon_pressed)(SexyIconEntry *entry, SexyIconEntryPosition icon_pos,
69 int button);
70 void (*icon_released)(SexyIconEntry *entry, SexyIconEntryPosition icon_pos,
71 int button);
73 void (*gtk_reserved1)(void);
74 void (*gtk_reserved2)(void);
75 void (*gtk_reserved3)(void);
76 void (*gtk_reserved4)(void);
79 G_BEGIN_DECLS
81 GType sexy_icon_entry_get_type(void);
83 GtkWidget *sexy_icon_entry_new(void);
85 void sexy_icon_entry_set_icon(SexyIconEntry *entry,
86 SexyIconEntryPosition position,
87 GtkImage *icon);
89 void sexy_icon_entry_set_icon_highlight(SexyIconEntry *entry,
90 SexyIconEntryPosition position,
91 gboolean highlight);
93 GtkImage *sexy_icon_entry_get_icon(const SexyIconEntry *entry,
94 SexyIconEntryPosition position);
96 gboolean sexy_icon_entry_get_icon_highlight(const SexyIconEntry *entry,
97 SexyIconEntryPosition position);
98 void sexy_icon_entry_add_clear_button(SexyIconEntry *icon_entry);
100 G_END_DECLS
102 #endif /* _SEXY_ICON_ENTRY_H_ */