mutter/clutter/cltr-list.h

67 lines
1.3 KiB
C
Raw Normal View History

2005-04-07 18:46:43 -04:00
#ifndef _HAVE_CLTR_LIST_H
#define _HAVE_CLTR_LIST_H
#include "cltr.h"
typedef struct CltrList CltrList;
2005-05-15 19:16:19 -04:00
typedef struct CltrListCell CltrListCell;
2005-04-07 18:46:43 -04:00
#define CLTR_LIST(w) ((CltrList*)(w))
2005-05-15 19:16:19 -04:00
typedef void (*CltrListCellActivate) (CltrList *list,
CltrListCell *cell,
void *userdata) ;
2005-04-07 18:46:43 -04:00
typedef enum CltrListState
{
CLTR_LIST_STATE_LOADING ,
CLTR_LIST_STATE_LOAD_COMPLETE ,
CLTR_LIST_STATE_BROWSE ,
CLTR_LIST_STATE_SCROLL_UP ,
CLTR_LIST_STATE_SCROLL_DOWN
}
CltrListState;
2005-05-15 19:16:19 -04:00
CltrListCell*
cltr_list_cell_new(CltrList *list,
Pixbuf *thump_pixb,
char *text);
2005-05-16 18:38:57 -04:00
void
cltr_list_cell_set_pixbuf(CltrListCell *cell,
Pixbuf *thump_pixb);
2005-05-15 19:16:19 -04:00
void
cltr_list_append_cell(CltrList *list, CltrListCell *cell);
2005-04-07 18:46:43 -04:00
CltrWidget*
cltr_list_new(int width,
int height,
int cell_width,
int cell_height);
2005-05-16 18:38:57 -04:00
CltrListCell*
cltr_list_get_active_cell(CltrList *list);
2005-05-15 19:16:19 -04:00
void
cltr_list_on_activate_cell(CltrList *list,
CltrListCellActivate callback,
gpointer *userdata);
gboolean
2005-05-23 17:21:50 -04:00
cltr_list_get_active_cell_video_box_co_ords(CltrList *list,
int *x1,
int *y1,
int *x2,
int *y2);
2005-05-15 19:16:19 -04:00
2005-04-07 18:46:43 -04:00
void
cltr_list_scroll_down(CltrList *list);
void
cltr_list_scroll_up(CltrList *list);
#endif