49 const char *name; |
49 const char *name; |
50 const char *style_class; |
50 const char *style_class; |
51 |
51 |
52 UiBool scrollarea; |
52 UiBool scrollarea; |
53 UiBool autoscale; |
53 UiBool autoscale; |
54 UiBool adjustsize; |
54 UiBool adjustwidgetsize; |
55 UiBool useradjustable; |
55 UiBool useradjustable; |
56 int image_padding; |
56 int image_padding; |
57 int image_padding_left; |
57 int image_padding_left; |
58 int image_padding_right; |
58 int image_padding_right; |
59 int image_padding_top; |
59 int image_padding_top; |
65 |
65 |
66 #define ui_imageviewer(obj, ...) ui_imageviewer_create(obj, (UiImageViewerArgs){ __VA_ARGS__ } ) |
66 #define ui_imageviewer(obj, ...) ui_imageviewer_create(obj, (UiImageViewerArgs){ __VA_ARGS__ } ) |
67 |
67 |
68 UIEXPORT UIWIDGET ui_imageviewer_create(UiObject *obj, UiImageViewerArgs args); |
68 UIEXPORT UIWIDGET ui_imageviewer_create(UiObject *obj, UiImageViewerArgs args); |
69 |
69 |
|
70 UIEXPORT UIWIDGET ui_imageviewer_reset(UIWIDGET w); |
|
71 UIEXPORT UIWIDGET ui_imageviewer_set_autoscale(UIWIDGET w, UiBool set); |
|
72 UIEXPORT UIWIDGET ui_imageviewer_set_adjustwidgetsize(UIWIDGET w, UiBool set); |
|
73 UIEXPORT UIWIDGET ui_imageviewer_set_useradjustable(UIWIDGET w, UiBool set); |
|
74 |
70 UIEXPORT int ui_image_load_file(UiGeneric *obj, const char *path); |
75 UIEXPORT int ui_image_load_file(UiGeneric *obj, const char *path); |
71 |
76 |
72 #ifdef __cplusplus |
77 #ifdef __cplusplus |
73 } |
78 } |
74 #endif |
79 #endif |