~ubuntu-branches/ubuntu/wily/baobab/wily-proposed

« back to all changes in this revision

Viewing changes to egg-list-box/egg-list-box.h

  • Committer: Package Import Robot
  • Author(s): Jackson Doak
  • Date: 2014-10-15 23:15:13 UTC
  • mfrom: (2.2.1 experimental) (2.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20141015231513-6cpun88orgfpyzdv
Tags: 3.14.1-1ubuntu1
* Merge from Debian unstable. (LP: #1268721) Remaining changes:
* debian/patches/use_traditional_titlebars_in_unity.patch:
  - Use the traditional menubar under Unity
* debian/patches/git_fix_pie_chart.patch:
  - Fx top level pie chart. (LP: #1393333)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __EGG_LIST_BOX_H__
2
 
#define __EGG_LIST_BOX_H__
3
 
 
4
 
#include <glib.h>
5
 
#include <gtk/gtk.h>
6
 
 
7
 
G_BEGIN_DECLS
8
 
 
9
 
 
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))
16
 
 
17
 
typedef struct _EggListBox EggListBox;
18
 
typedef struct _EggListBoxClass EggListBoxClass;
19
 
typedef struct _EggListBoxPrivate EggListBoxPrivate;
20
 
 
21
 
struct _EggListBox
22
 
{
23
 
  GtkContainer parent_instance;
24
 
  EggListBoxPrivate * priv;
25
 
};
26
 
 
27
 
struct _EggListBoxClass
28
 
{
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);
36
 
};
37
 
 
38
 
typedef gboolean (*EggListBoxFilterFunc) (GtkWidget* child, void* user_data);
39
 
typedef void (*EggListBoxUpdateSeparatorFunc) (GtkWidget** separator, GtkWidget* child, GtkWidget* before, void* user_data);
40
 
 
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,
44
 
                                                       gint                           y);
45
 
void        egg_list_box_select_child                 (EggListBox                    *self,
46
 
                                                       GtkWidget                     *child);
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,
55
 
                                                       void                          *f_target,
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,
65
 
                                                       GCompareDataFunc               f,
66
 
                                                       void                          *f_target,
67
 
                                                       GDestroyNotify                 f_target_destroy_notify);
68
 
void        egg_list_box_child_changed                (EggListBox                    *self,
69
 
                                                       GtkWidget                     *widget);
70
 
void        egg_list_box_set_activate_on_single_click (EggListBox                    *self,
71
 
                                                       gboolean                       single);
72
 
void        egg_list_box_drag_unhighlight_widget      (EggListBox                    *self);
73
 
void        egg_list_box_drag_highlight_widget        (EggListBox                    *self,
74
 
                                                       GtkWidget                     *widget);
75
 
EggListBox* egg_list_box_new                          (void);
76
 
 
77
 
G_END_DECLS
78
 
 
79
 
#endif