18 #if !defined(AT_GUI_H_INSIDE) 19 #error "Only <at/gui.h> can be included directly." 21 #ifndef AT_IMAGEVIEWER_H 22 #define AT_IMAGEVIEWER_H 30 #define AT_TYPE_IMAGEVIEWER at_imageviewer_get_type() 31 G_DECLARE_DERIVABLE_TYPE(AtImageViewer, at_imageviewer, AT, IMAGEVIEWER, GtkWidget)
33 typedef struct _AtImageViewerClass{
34 GtkWidgetClass parent_class;
50 at_imageviewer_get_array(AtImageViewer* imgv);
57 at_imageviewer_zoom_in(AtImageViewer* imgv);
63 at_imageviewer_zoom_out(AtImageViewer* imgv);
71 at_imageviewer_zoom_in_at(AtImageViewer *imgv, int16_t cx, int16_t cy);
79 at_imageviewer_zoom_out_at(AtImageViewer *imgv, int16_t cx, int16_t cy);
86 at_imageviewer_zoom_fit(AtImageViewer* imgv);
93 at_imageviewer_zoom_reset(AtImageViewer* imgv);
101 at_imageviewer_move_to(AtImageViewer* imgv, int16_t offsetx, int16_t offsety);
109 at_imageviewer_move_to_default(AtImageViewer* imgv, AtAlignment alignmentX, AtAlignment aligmentY);
117 at_imageviewer_move(AtImageViewer* imgv, int16_t offsetx, int16_t offsety);
123 at_imageviewer_move_reset(AtImageViewer* imgv);
130 at_imageviewer_set(AtImageViewer* imgv, AtArrayU8* array);
140 at_imageviewer_get_pixel(AtImageViewer* imgv, uint8_t *pixel, uint16_t x, uint16_t y);
150 at_imageviewer_get_array_pos(AtImageViewer* imgv, int16_t *pos,uint16_t x, uint16_t y);
158 at_imageviewer_set_mouse_callback(AtImageViewer* imgv, AtMouseCallback mouse_callback,
void* user_data);