diff options
author | Perberos <[email protected]> | 2011-11-06 19:30:49 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-11-06 19:30:49 -0300 |
commit | a8d28a6ce7e0c56dacba5d527d9134573a008902 (patch) | |
tree | 8852602004b5a13cc5d1ce3ecd7a314be81d1198 /src/eom-scroll-view.h | |
download | eom-a8d28a6ce7e0c56dacba5d527d9134573a008902.tar.bz2 eom-a8d28a6ce7e0c56dacba5d527d9134573a008902.tar.xz |
inicial
Diffstat (limited to 'src/eom-scroll-view.h')
-rw-r--r-- | src/eom-scroll-view.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/src/eom-scroll-view.h b/src/eom-scroll-view.h new file mode 100644 index 0000000..56f8a1b --- /dev/null +++ b/src/eom-scroll-view.h @@ -0,0 +1,73 @@ +#ifndef _EOM_SCROLL_VIEW_H_ +#define _EOM_SCROLL_VIEW_H_ + +#include <gtk/gtk.h> +#include "eom-image.h" + +G_BEGIN_DECLS + +typedef struct _EomScrollView EomScrollView; +typedef struct _EomScrollViewClass EomScrollViewClass; +typedef struct _EomScrollViewPrivate EomScrollViewPrivate; + +#define EOM_TYPE_SCROLL_VIEW (eom_scroll_view_get_type ()) +#define EOM_SCROLL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EOM_TYPE_SCROLL_VIEW, EomScrollView)) +#define EOM_SCROLL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EOM_TYPE_SCROLL_VIEW, EomScrollViewClass)) +#define EOM_IS_SCROLL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EOM_TYPE_SCROLL_VIEW)) +#define EOM_IS_SCROLL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EOM_TYPE_SCROLL_VIEW)) + + +struct _EomScrollView { + GtkTable widget; + + EomScrollViewPrivate *priv; +}; + +struct _EomScrollViewClass { + GtkTableClass parent_class; + + void (* zoom_changed) (EomScrollView *view, double zoom); +}; + +typedef enum { + EOM_TRANSP_BACKGROUND, + EOM_TRANSP_CHECKED, + EOM_TRANSP_COLOR +} EomTransparencyStyle; + +GType eom_scroll_view_get_type (void) G_GNUC_CONST; +GtkWidget* eom_scroll_view_new (void); + +/* loading stuff */ +void eom_scroll_view_set_image (EomScrollView *view, EomImage *image); + +/* general properties */ +void eom_scroll_view_set_scroll_wheel_zoom (EomScrollView *view, gboolean scroll_wheel_zoom); +void eom_scroll_view_set_zoom_upscale (EomScrollView *view, gboolean upscale); +void eom_scroll_view_set_zoom_multiplier (EomScrollView *view, gdouble multiplier); +void eom_scroll_view_set_antialiasing_in (EomScrollView *view, gboolean state); +void eom_scroll_view_set_antialiasing_out (EomScrollView *view, gboolean state); +void eom_scroll_view_set_transparency (EomScrollView *view, EomTransparencyStyle style, GdkColor *color); +gboolean eom_scroll_view_scrollbars_visible (EomScrollView *view); +void eom_scroll_view_set_popup (EomScrollView *view, GtkMenu *menu); +void eom_scroll_view_set_background_color (EomScrollView *view, + const GdkColor *color); +void eom_scroll_view_override_bg_color (EomScrollView *view, + const GdkColor *color); +void eom_scroll_view_set_use_bg_color (EomScrollView *view, gboolean use); +/* zoom api */ +void eom_scroll_view_zoom_in (EomScrollView *view, gboolean smooth); +void eom_scroll_view_zoom_out (EomScrollView *view, gboolean smooth); +void eom_scroll_view_zoom_fit (EomScrollView *view); +void eom_scroll_view_set_zoom (EomScrollView *view, double zoom); +double eom_scroll_view_get_zoom (EomScrollView *view); +gboolean eom_scroll_view_get_zoom_is_min (EomScrollView *view); +gboolean eom_scroll_view_get_zoom_is_max (EomScrollView *view); +void eom_scroll_view_show_cursor (EomScrollView *view); +void eom_scroll_view_hide_cursor (EomScrollView *view); + +G_END_DECLS + +#endif /* _EOM_SCROLL_VIEW_H_ */ + + |