2005-03-24 11:46:49 -05:00
|
|
|
#ifndef _HAVE_CLTR_PHOTO_GRID_H
|
|
|
|
#define _HAVE_CLTR_PHOTO_GRID_H
|
|
|
|
|
|
|
|
#include "cltr.h"
|
|
|
|
|
2005-04-03 12:13:08 -04:00
|
|
|
typedef struct CltrPhotoGrid CltrPhotoGrid;
|
2005-03-24 11:46:49 -05:00
|
|
|
|
2005-04-03 12:13:08 -04:00
|
|
|
typedef struct CltrPhotoGridCell CltrPhotoGridCell;
|
2005-03-24 11:46:49 -05:00
|
|
|
|
2005-04-03 12:13:08 -04:00
|
|
|
#define CLTR_PHOTO_GRID(w) (CltrPhotoGrid*)(w)
|
|
|
|
|
|
|
|
typedef enum CltrPhotoGridState
|
2005-03-24 11:46:49 -05:00
|
|
|
{
|
|
|
|
CLTR_PHOTO_GRID_STATE_BROWSE ,
|
|
|
|
CLTR_PHOTO_GRID_STATE_ZOOM_IN ,
|
|
|
|
CLTR_PHOTO_GRID_STATE_ZOOMED ,
|
|
|
|
CLTR_PHOTO_GRID_STATE_ZOOM_OUT ,
|
|
|
|
CLTR_PHOTO_GRID_STATE_ZOOMED_MOVE ,
|
2005-03-31 13:19:25 -05:00
|
|
|
CLTR_PHOTO_GRID_STATE_SCROLLED_MOVE ,
|
2005-03-24 11:46:49 -05:00
|
|
|
}
|
2005-04-03 12:13:08 -04:00
|
|
|
CltrPhotoGridState;
|
2005-03-24 11:46:49 -05:00
|
|
|
|
2005-04-03 12:13:08 -04:00
|
|
|
typedef enum CltrPhotoGridCellState
|
2005-03-27 15:12:19 -05:00
|
|
|
{
|
|
|
|
CLTR_PHOTO_GRID_CELL_STATE_APPEARING,
|
|
|
|
CLTR_PHOTO_GRID_CELL_STATE_STATIC,
|
|
|
|
}
|
2005-04-03 12:13:08 -04:00
|
|
|
CltrPhotoGridCellState;
|
2005-03-24 11:46:49 -05:00
|
|
|
|
2005-04-22 14:03:55 -04:00
|
|
|
GMutex*
|
|
|
|
cltr_photo_grid_mutex(CltrPhotoGrid *grid);
|
|
|
|
|
|
|
|
void
|
|
|
|
cltr_photo_grid_set_populated(CltrPhotoGrid *grid, gboolean populated);
|
2005-03-24 11:46:49 -05:00
|
|
|
|
2005-04-03 12:13:08 -04:00
|
|
|
CltrPhotoGridCell*
|
|
|
|
cltr_photo_grid_cell_new(CltrPhotoGrid *grid,
|
2005-04-22 14:03:55 -04:00
|
|
|
Pixbuf *pixb);
|
|
|
|
|
|
|
|
Pixbuf*
|
|
|
|
cltr_photo_grid_cell_pixbuf(CltrPhotoGridCell *cell);
|
|
|
|
|
|
|
|
CltrPhotoGridCell*
|
|
|
|
cltr_photo_grid_get_active_cell(CltrPhotoGrid *grid);
|
|
|
|
|
|
|
|
void
|
|
|
|
cltr_photo_grid_set_active_cell(CltrPhotoGrid *grid, CltrPhotoGridCell *cell);
|
|
|
|
|
|
|
|
CltrPhotoGridCell*
|
|
|
|
cltr_photo_grid_get_first_cell(CltrPhotoGrid *grid);
|
|
|
|
|
2005-03-24 11:46:49 -05:00
|
|
|
|
|
|
|
void
|
2005-04-03 12:13:08 -04:00
|
|
|
cltr_photo_grid_append_cell(CltrPhotoGrid *grid,
|
|
|
|
CltrPhotoGridCell *cell);
|
2005-03-24 11:46:49 -05:00
|
|
|
|
|
|
|
void
|
2005-04-03 12:13:08 -04:00
|
|
|
cltr_photo_grid_navigate(CltrPhotoGrid *grid,
|
2005-03-24 11:46:49 -05:00
|
|
|
CltrDirection direction) ;
|
|
|
|
|
|
|
|
void /* bleh badly named */
|
2005-04-03 12:13:08 -04:00
|
|
|
cltr_photo_grid_activate_cell(CltrPhotoGrid *grid);
|
2005-03-24 11:46:49 -05:00
|
|
|
|
2005-03-27 15:12:19 -05:00
|
|
|
gpointer
|
|
|
|
cltr_photo_grid_populate(gpointer data) ;
|
2005-03-24 11:46:49 -05:00
|
|
|
|
|
|
|
void
|
2005-04-03 12:13:08 -04:00
|
|
|
cltr_photo_grid_redraw(CltrPhotoGrid *grid);
|
2005-03-24 11:46:49 -05:00
|
|
|
|
2005-04-03 12:13:08 -04:00
|
|
|
CltrWidget*
|
|
|
|
cltr_photo_grid_new(int width,
|
|
|
|
int height,
|
2005-03-24 11:46:49 -05:00
|
|
|
int n_cols,
|
|
|
|
int n_rows,
|
2005-04-03 12:13:08 -04:00
|
|
|
const gchar *img_path);
|
|
|
|
|
2005-03-24 11:46:49 -05:00
|
|
|
|
|
|
|
#endif
|