1
#ifndef __EGG_LIST_BOX_H__
2
#define __EGG_LIST_BOX_H__
10
#define EGG_TYPE_LIST_BOX (egg_list_box_get_type ())
11
#define EGG_LIST_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_LIST_BOX, EggListBox))
12
#define EGG_LIST_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_LIST_BOX, EggListBoxClass))
13
#define EGG_IS_LIST_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_LIST_BOX))
14
#define EGG_IS_LIST_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_LIST_BOX))
15
#define EGG_LIST_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_LIST_BOX, EggListBoxClass))
17
typedef struct _EggListBox EggListBox;
18
typedef struct _EggListBoxClass EggListBoxClass;
19
typedef struct _EggListBoxPrivate EggListBoxPrivate;
23
GtkContainer parent_instance;
24
EggListBoxPrivate * priv;
27
struct _EggListBoxClass
29
GtkContainerClass parent_class;
30
void (*child_selected) (EggListBox* self, GtkWidget* child);
31
void (*child_activated) (EggListBox* self, GtkWidget* child);
32
void (*activate_cursor_child) (EggListBox* self);
33
void (*toggle_cursor_child) (EggListBox* self);
34
void (*move_cursor) (EggListBox* self, GtkMovementStep step, gint count);
35
void (*refilter) (EggListBox* self);
38
typedef gboolean (*EggListBoxFilterFunc) (GtkWidget* child, void* user_data);
39
typedef void (*EggListBoxUpdateSeparatorFunc) (GtkWidget** separator, GtkWidget* child, GtkWidget* before, void* user_data);
41
GType egg_list_box_get_type (void) G_GNUC_CONST;
42
GtkWidget* egg_list_box_get_selected_child (EggListBox *self);
43
GtkWidget* egg_list_box_get_child_at_y (EggListBox *self,
45
void egg_list_box_select_child (EggListBox *self,
47
void egg_list_box_set_adjustment (EggListBox *self,
48
GtkAdjustment *adjustment);
49
void egg_list_box_add_to_scrolled (EggListBox *self,
50
GtkScrolledWindow *scrolled);
51
void egg_list_box_set_selection_mode (EggListBox *self,
52
GtkSelectionMode mode);
53
void egg_list_box_set_filter_func (EggListBox *self,
54
EggListBoxFilterFunc f,
56
GDestroyNotify f_target_destroy_notify);
57
void egg_list_box_set_separator_funcs (EggListBox *self,
58
EggListBoxUpdateSeparatorFunc update_separator,
59
void *update_separator_target,
60
GDestroyNotify update_separator_target_destroy_notify);
61
void egg_list_box_refilter (EggListBox *self);
62
void egg_list_box_resort (EggListBox *self);
63
void egg_list_box_reseparate (EggListBox *self);
64
void egg_list_box_set_sort_func (EggListBox *self,
67
GDestroyNotify f_target_destroy_notify);
68
void egg_list_box_child_changed (EggListBox *self,
70
void egg_list_box_set_activate_on_single_click (EggListBox *self,
72
void egg_list_box_drag_unhighlight_widget (EggListBox *self);
73
void egg_list_box_drag_highlight_widget (EggListBox *self,
75
EggListBox* egg_list_box_new (void);