image widget

many assumptions about X backed were made, to be refined if does not
work properly in some setups
This commit is contained in:
Cedric Roux
2016-05-24 15:38:44 +02:00
parent 50c00218c7
commit d08a2b1a60
9 changed files with 194 additions and 4 deletions
+8 -1
View File
@@ -31,7 +31,7 @@ extern int volatile gui_logd;
enum widget_type {
TOPLEVEL_WINDOW, CONTAINER, POSITIONER, TEXT_LIST, XY_PLOT, BUTTON, LABEL,
TIMELINE, SPACE
TIMELINE, SPACE, IMAGE
};
struct widget_list;
@@ -154,6 +154,13 @@ struct space_widget {
int wanted_height;
};
struct image_widget {
struct widget common;
int width;
int height;
void *x; /* opaque X data (type x_image), used in x.c */
};
/*************************************************************************/
/* events */
/*************************************************************************/