EomScrollView

## EomScrollView EomScrollView |

## Synopsis

    struct              EomScrollView;
    enum                EomTransparencyStyle;
    GtkWidget *         eom_scroll_view_new                 (void);
    void                eom_scroll_view_set_image           (EomScrollView *view,
                                                             EomImage *image);
    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);
    gboolean            eom_scroll_view_scrollbars_visible  (EomScrollView *view);
    void                eom_scroll_view_set_popup           (EomScrollView *view,
                                                             GtkMenu *menu);
    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);
    void                eom_scroll_view_override_bg_color   (EomScrollView *view,
                                                             const GdkColor *color);
    void                eom_scroll_view_set_background_color
                                                            (EomScrollView *view,
                                                             const GdkColor *color);
    void                eom_scroll_view_set_transparency_color
                                                            (EomScrollView *view,
                                                             GdkColor *color);
    void                eom_scroll_view_set_use_bg_color    (EomScrollView *view,
                                                             gboolean use);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkContainer
                               +----GtkTable
                                     +----EomScrollView

## Implemented Interfaces

EomScrollView implements AtkImplementorIface and GtkBuildable.

## Properties

      "antialiasing-in"          gboolean              : Read / Write
      "antialiasing-out"         gboolean              : Read / Write
      "background-color"         GdkColor*             : Read / Write
      "scrollwheel-zoom"         gboolean              : Read / Write
      "transparency-color"       GdkColor*             : Write
      "transparency-style"       EomTransparencyStyle  : Read / Write
      "use-background-color"     gboolean              : Read / Write
      "zoom-multiplier"          gdouble               : Read / Write

## Signals

      "zoom-changed"                                   : Run Last

## Description

## Details

### struct EomScrollView

    struct EomScrollView;

### enum EomTransparencyStyle

    typedef enum {
    	EOM_TRANSP_BACKGROUND,
    	EOM_TRANSP_CHECKED,
    	EOM_TRANSP_COLOR
    } EomTransparencyStyle;

`EOM_TRANSP_BACKGROUND` |
`EOM_TRANSP_CHECKED` |
`EOM_TRANSP_COLOR` |

### eom_scroll_view_new ()

    GtkWidget *         eom_scroll_view_new                 (void);

### eom_scroll_view_set_image ()

    void                eom_scroll_view_set_image           (EomScrollView *view,
                                                             EomImage *image);

### eom_scroll_view_set_scroll_wheel_zoom ()

    void                eom_scroll_view_set_scroll_wheel_zoom
                                                            (EomScrollView *view,
                                                             gboolean scroll_wheel_zoom);

### eom_scroll_view_set_zoom_upscale ()

    void                eom_scroll_view_set_zoom_upscale    (EomScrollView *view,
                                                             gboolean upscale);

### eom_scroll_view_set_zoom_multiplier ()

    void                eom_scroll_view_set_zoom_multiplier (EomScrollView *view,
                                                             gdouble multiplier);

### eom_scroll_view_set_antialiasing_in ()

    void                eom_scroll_view_set_antialiasing_in (EomScrollView *view,
                                                             gboolean state);

### eom_scroll_view_set_antialiasing_out ()

    void                eom_scroll_view_set_antialiasing_out
                                                            (EomScrollView *view,
                                                             gboolean state);

### eom_scroll_view_set_transparency ()

    void                eom_scroll_view_set_transparency    (EomScrollView *view,
                                                             EomTransparencyStyle style);

### eom_scroll_view_scrollbars_visible ()

    gboolean            eom_scroll_view_scrollbars_visible  (EomScrollView *view);

### eom_scroll_view_set_popup ()

    void                eom_scroll_view_set_popup           (EomScrollView *view,
                                                             GtkMenu *menu);

### eom_scroll_view_zoom_in ()

    void                eom_scroll_view_zoom_in             (EomScrollView *view,
                                                             gboolean smooth);

### eom_scroll_view_zoom_out ()

    void                eom_scroll_view_zoom_out            (EomScrollView *view,
                                                             gboolean smooth);

### eom_scroll_view_zoom_fit ()

    void                eom_scroll_view_zoom_fit            (EomScrollView *view);

### eom_scroll_view_set_zoom ()

    void                eom_scroll_view_set_zoom            (EomScrollView *view,
                                                             double zoom);

### eom_scroll_view_get_zoom ()

    double              eom_scroll_view_get_zoom            (EomScrollView *view);

### eom_scroll_view_get_zoom_is_min ()

    gboolean            eom_scroll_view_get_zoom_is_min     (EomScrollView *view);

### eom_scroll_view_get_zoom_is_max ()

    gboolean            eom_scroll_view_get_zoom_is_max     (EomScrollView *view);

### eom_scroll_view_show_cursor ()

    void                eom_scroll_view_show_cursor         (EomScrollView *view);

### eom_scroll_view_hide_cursor ()

    void                eom_scroll_view_hide_cursor         (EomScrollView *view);

### eom_scroll_view_override_bg_color ()

    void                eom_scroll_view_override_bg_color   (EomScrollView *view,
                                                             const GdkColor *color);

### eom_scroll_view_set_background_color ()

    void                eom_scroll_view_set_background_color
                                                            (EomScrollView *view,
                                                             const GdkColor *color);

### eom_scroll_view_set_transparency_color ()

    void                eom_scroll_view_set_transparency_color
                                                            (EomScrollView *view,
                                                             GdkColor *color);

### eom_scroll_view_set_use_bg_color ()

    void                eom_scroll_view_set_use_bg_color    (EomScrollView *view,
                                                             gboolean use);

## Property Details

### The `"antialiasing-in"` property

      "antialiasing-in"          gboolean              : Read / Write

Default value: TRUE

### The `"antialiasing-out"` property

      "antialiasing-out"         gboolean              : Read / Write

Default value: TRUE

### The `"background-color"` property

      "background-color"         GdkColor*             : Read / Write

This is the default background color used for painting the background of the image view. If set to `NULL` the color is determined by the active GTK theme.

### The `"scrollwheel-zoom"` property

      "scrollwheel-zoom"         gboolean              : Read / Write

If `TRUE` the scrollwheel will zoom the view, otherwise it will be used for scrolling a zoomed image.

Default value: TRUE

### The `"transparency-color"` property

      "transparency-color"       GdkColor*             : Write

This is the color used to fill the transparent parts of an image if :transparency-style is set to use a custom color.

### The `"transparency-style"` property

      "transparency-style"       EomTransparencyStyle  : Read / Write

Determines how to fill the shown image's transparent areas.

Default value: EOM_TRANSP_CHECKED

### The `"use-background-color"` property

      "use-background-color"     gboolean              : Read / Write

Default value: FALSE

### The `"zoom-multiplier"` property

      "zoom-multiplier"          gdouble               : Read / Write

The current zoom factor is multiplied with this value + 1.0 when scrolling with the scrollwheel to determine the next zoom factor.

Default value: 0.05

## Signal Details

### The `"zoom-changed"` signal

    void                user_function                      (EomScrollView *eomscrollview,
                                                            gdouble        arg1,
                                                            gpointer       user_data)          : Run Last

`eomscrollview` : | the object which received the signal.
`user_data` : | user data set when the signal handler was connected.