Use macros instead of raw numbers for login type
[rofl0r-ixchat.git] / src / fe-gtk / chanview.h
blob75b5ef1f515d5c98072493fffd058c3c20f1baff
1 typedef struct _chanview chanview;
2 typedef struct _chan chan;
4 chanview *chanview_new (int type, int trunc_len, gboolean sort, gboolean use_icons, GtkStyle *style);
5 void chanview_set_callbacks (chanview *cv,
6 void (*cb_focus) (chanview *, chan *, int tag, void *userdata),
7 void (*cb_xbutton) (chanview *, chan *, int tag, void *userdata),
8 gboolean (*cb_contextmenu) (chanview *, chan *, int tag, void *userdata, GdkEventButton *),
9 int (*cb_compare) (void *a, void *b));
10 void chanview_set_impl (chanview *cv, int type);
11 chan *chanview_add (chanview *cv, char *name, void *family, void *userdata, gboolean allow_closure, int tag, GdkPixbuf *icon);
12 int chanview_get_size (chanview *cv);
13 GtkWidget *chanview_get_box (chanview *cv);
14 void chanview_move_focus (chanview *cv, gboolean relative, int num);
15 GtkOrientation chanview_get_orientation (chanview *cv);
16 void chanview_set_orientation (chanview *cv, gboolean vertical);
18 int chan_get_tag (chan *ch);
19 void *chan_get_userdata (chan *ch);
20 void chan_focus (chan *ch);
21 void chan_move (chan *ch, int delta);
22 void chan_move_family (chan *ch, int delta);
23 void chan_set_color (chan *ch, PangoAttrList *list);
24 void chan_rename (chan *ch, char *new_name, int trunc_len);
25 gboolean chan_remove (chan *ch, gboolean force);
26 gboolean chan_is_collapsed (chan *ch);
27 chan * chan_get_parent (chan *ch);
29 #define FOCUS_NEW_ALL 1
30 #define FOCUS_NEW_ONLY_ASKED 2
31 #define FOCUS_NEW_NONE 0