25
25
typedef struct _SexyIconEntryClass SexyIconEntryClass;
26
26
typedef struct _SexyIconEntryPriv SexyIconEntryPriv;
28
#include <gtk/gtkentry.h>
29
#include <gtk/gtkimage.h>
31
#define SEXY_TYPE_ICON_ENTRY (sexy_icon_entry_get_type())
32
#define SEXY_ICON_ENTRY(obj) \
33
(G_TYPE_CHECK_INSTANCE_CAST((obj), SEXY_TYPE_ICON_ENTRY, SexyIconEntry))
34
#define SEXY_ICON_ENTRY_CLASS(klass) \
35
(G_TYPE_CHECK_CLASS_CAST((klass), SEXY_TYPE_ICON_ENTRY, SexyIconEntryClass))
36
#define SEXY_IS_ICON_ENTRY(obj) \
37
(G_TYPE_CHECK_INSTANCE_TYPE((obj), SEXY_TYPE_ICON_ENTRY))
38
#define SEXY_IS_ICON_ENTRY_CLASS(klass) \
39
(G_TYPE_CHECK_CLASS_TYPE((klass), SEXY_TYPE_ICON_ENTRY))
40
#define SEXY_ICON_ENTRY_GET_CLASS(obj) \
41
(G_TYPE_INSTANCE_GET_CLASS ((obj), SEXY_TYPE_ICON_ENTRY, SexyIconEntryClass))
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,\
34
#define SEXY_ICON_ENTRY_CLASS( klass ) \
35
( G_TYPE_CHECK_CLASS_CAST( ( klass ), SEXY_TYPE_ICON_ENTRY,\
36
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,\
43
SexyIconEntryClass ) )
45
SEXY_ICON_ENTRY_PRIMARY,
46
SEXY_ICON_ENTRY_SECONDARY
47
SEXY_ICON_ENTRY_PRIMARY,
48
SEXY_ICON_ENTRY_SECONDARY
48
49
} SexyIconEntryPosition;
50
51
struct _SexyIconEntry
52
GtkEntry parent_object;
54
SexyIconEntryPriv *priv;
56
void (*gtk_reserved1)(void);
57
void (*gtk_reserved2)(void);
58
void (*gtk_reserved3)(void);
59
void (*gtk_reserved4)(void);
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 );
62
63
struct _SexyIconEntryClass
64
GtkEntryClass parent_class;
67
void (*icon_pressed)(SexyIconEntry *entry, SexyIconEntryPosition icon_pos,
69
void (*icon_released)(SexyIconEntry *entry, SexyIconEntryPosition icon_pos,
72
void (*gtk_reserved1)(void);
73
void (*gtk_reserved2)(void);
74
void (*gtk_reserved3)(void);
75
void (*gtk_reserved4)(void);
65
GtkEntryClass parent_class;
68
void ( *icon_pressed )( SexyIconEntry * entry,
69
SexyIconEntryPosition icon_pos,
71
void ( *icon_released )( SexyIconEntry * entry,
72
SexyIconEntryPosition icon_pos,
75
void ( *gtk_reserved1 )( void );
76
void ( *gtk_reserved2 )( void );
77
void ( *gtk_reserved3 )( void );
78
void ( *gtk_reserved4 )( void );
80
GType sexy_icon_entry_get_type(void);
82
GtkWidget *sexy_icon_entry_new(void);
84
void sexy_icon_entry_set_icon(SexyIconEntry *entry,
85
SexyIconEntryPosition position,
88
void sexy_icon_entry_set_icon_highlight(SexyIconEntry *entry,
89
SexyIconEntryPosition position,
92
GtkImage *sexy_icon_entry_get_icon(const SexyIconEntry *entry,
93
SexyIconEntryPosition position);
95
gboolean sexy_icon_entry_get_icon_highlight(const SexyIconEntry *entry,
96
SexyIconEntryPosition position);
97
void sexy_icon_entry_add_clear_button(SexyIconEntry *icon_entry);
83
GType sexy_icon_entry_get_type( void );
85
GtkWidget *sexy_icon_entry_new( void );
87
void sexy_icon_entry_set_icon( SexyIconEntry * entry,
88
SexyIconEntryPosition position,
91
void sexy_icon_entry_set_icon_highlight(
98
GtkImage * sexy_icon_entry_get_icon( const SexyIconEntry * entry,
99
SexyIconEntryPosition position );
101
gboolean sexy_icon_entry_get_icon_highlight(
102
const SexyIconEntry *entry,
103
SexyIconEntryPosition
106
void sexy_icon_entry_add_clear_button( SexyIconEntry *icon_entry );