eog/libeog/eog-scroll-view.h
Tim P. Gerla 3184edc73d Apply patch from Paolo Borelli <pborelli@katamail.com> to make preferences
* eog.glade, shell/eog-preferences.c, shell/eog-preferences.h:
        Apply patch from Paolo Borelli <pborelli@katamail.com> to
        make preferences and help dialog launch in the center of the
        parent window. Closes bug #144631.
        * shell/eog-window.c: Patch from Paolo Borelli to fix miscalculated
        zoom amount. Closes bug #308910.
        * libeog/eog-scroll-view.c, libeog/eog-scroll-view.h,
        shell/eog-window.c: Another patch from Paolo Borelli to
        desensitize zoom in/out buttons at max/min zoom levels.
2005-06-25 02:12:03 +00:00

64 lines
2.2 KiB
C

#ifndef _EOG_SCROLL_VIEW_H_
#define _EOG_SCROLL_VIEW_H_
#include <gtk/gtk.h>
#include "eog-image.h"
G_BEGIN_DECLS
#define EOG_TYPE_SCROLL_VIEW (eog_scroll_view_get_type ())
#define EOG_SCROLL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EOG_TYPE_SCROLL_VIEW, EogScrollView))
#define EOG_SCROLL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EOG_TYPE_SCROLL_VIEW, EogScrollViewClass))
#define EOG_IS_SCROLL_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EOG_TYPE_SCROLL_VIEW))
#define EOG_IS_SCROLL_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EOG_TYPE_SCROLL_VIEW))
typedef struct _EogScrollView EogScrollView;
typedef struct _EogScrollViewClass EogScrollViewClass;
typedef struct _EogScrollViewPrivate EogScrollViewPrivate;
struct _EogScrollView {
GtkTable widget;
EogScrollViewPrivate *priv;
};
struct _EogScrollViewClass {
GtkTableClass parent_class;
void (* zoom_changed) (EogScrollView *view, double zoom);
};
typedef enum {
TRANSP_BACKGROUND,
TRANSP_CHECKED,
TRANSP_COLOR
} TransparencyStyle;
GType eog_scroll_view_get_type (void);
GtkWidget* eog_scroll_view_new (void);
/* loading stuff */
void eog_scroll_view_set_image (EogScrollView *view, EogImage *image);
/* general properties */
void eog_scroll_view_set_zoom_upscale (EogScrollView *view, gboolean upscale);
void eog_scroll_view_set_antialiasing (EogScrollView *view, gboolean state);
void eog_scroll_view_set_transparency (EogScrollView *view, TransparencyStyle style, GdkColor *color);
void eog_scroll_view_get_image_size (EogScrollView *view, int *width, int *height, gboolean scaled);
/* zoom api */
void eog_scroll_view_zoom_in (EogScrollView *view, gboolean smooth);
void eog_scroll_view_zoom_out (EogScrollView *view, gboolean smooth);
void eog_scroll_view_zoom_fit (EogScrollView *view);
void eog_scroll_view_set_zoom (EogScrollView *view, double zoom);
double eog_scroll_view_get_zoom (EogScrollView *view);
gboolean eog_scroll_view_get_zoom_is_min (EogScrollView *view);
gboolean eog_scroll_view_get_zoom_is_max (EogScrollView *view);
G_END_DECLS
#endif /* _EOG_SCROLL_VIEW_H_ */