eog/viewer/eog-image-view.h
Jens Finke 4b55911424 Added *~ and ~.o.
2001-12-26  Jens Finke <jens@triq.net>

	* .cvsignore: Added *~ and ~.o.

	* eog-control.[ch]: Ported to the gobject type system.
	(eog_control_construct): Commented out the property and zoom
	interface handling. This needs more gnome2 porting.

	* eog-image-view.[ch]
	* eog-image.[ch]: Ported to the gobject type system.
2001-12-26 11:34:09 +00:00

100 lines
3.9 KiB
C

/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* eog-image-view.h.
*
* Authors:
* Martin Baulig (baulig@suse.de)
*
* Copyright 2000, SuSE GmbH.
*/
#ifndef _EOG_IMAGE_VIEW_H_
#define _EOG_IMAGE_VIEW_H_
#include <bonobo/bonobo-object.h>
#include "eog-image.h"
G_BEGIN_DECLS
#define EOG_IMAGE_VIEW_TYPE (eog_image_view_get_type ())
#define EOG_IMAGE_VIEW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), EOG_IMAGE_VIEW_TYPE, EogImageView))
#define EOG_IMAGE_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), EOG_IMAGE_VIEW_TYPE, EogImageViewClass))
#define EOG_IS_IMAGE_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), EOG_IMAGE_VIEW_TYPE))
#define EOG_IS_IMAGE_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EOG_IMAGE_VIEW_TYPE))
#define EOG_IMAGE_VIEW_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EOG_IMAGE_VIEW_TYPE, EogImageViewClass))
typedef struct _EogImageView EogImageView;
typedef struct _EogImageViewClass EogImageViewClass;
typedef struct _EogImageViewPrivate EogImageViewPrivate;
struct _EogImageView {
BonoboObject base;
EogImageViewPrivate *priv;
};
struct _EogImageViewClass {
BonoboObjectClass parent_class;
POA_GNOME_EOG_ImageView__epv epv;
};
GtkType eog_image_view_get_type (void);
EogImageView *eog_image_view_new (EogImage *image,
gboolean zoom_fit);
EogImageView *eog_image_view_construct (EogImageView *image_view,
EogImage *image,
gboolean zoom_fit);
EogImage *eog_image_view_get_image (EogImageView *image_view);
BonoboPropertyBag *eog_image_view_get_property_bag (EogImageView *image_view);
BonoboPropertyControl *eog_image_view_get_property_control (EogImageView *image_view);
void eog_image_view_set_ui_container (EogImageView *image_view,
Bonobo_UIContainer ui_container);
void eog_image_view_unset_ui_container (EogImageView *image_view);
GtkWidget *eog_image_view_get_widget (EogImageView *image_view);
void eog_image_view_print (EogImageView *image_view, gboolean preview,
const gchar *paper_size, gboolean landscape,
gdouble bottom, gdouble top, gdouble right,
gdouble left, gboolean vertically,
gboolean horizontally, gboolean down_right,
gboolean cut, gboolean fit_to_page, gint adjust_to,
gdouble overlap_x, gdouble overlap_y,
gboolean overlap);
/* Zooming */
float eog_image_view_get_zoom_factor (EogImageView *image_view);
void eog_image_view_set_zoom_factor (EogImageView *image_view,
float zoom_factor);
void eog_image_view_zoom_to_fit (EogImageView *image_view,
gboolean keep_aspect_ratio);
void eog_image_view_set_zoom (EogImageView *image_view,
double zoomx,
double zoomy);
/* Properties */
void eog_image_view_set_interpolation (EogImageView *image_view,
GNOME_EOG_Interpolation interpolation);
GNOME_EOG_Interpolation eog_image_view_get_interpolation (EogImageView *image_view);
void eog_image_view_set_dither (EogImageView *image_view,
GNOME_EOG_Dither dither);
GNOME_EOG_Dither eog_image_view_get_dither (EogImageView *image_view);
void eog_image_view_set_check_type (EogImageView *image_view,
GNOME_EOG_CheckType check_type);
GNOME_EOG_CheckType eog_image_view_get_check_type (EogImageView *image_view);
void eog_image_view_set_check_size (EogImageView *image_view,
GNOME_EOG_CheckSize check_size);
GNOME_EOG_CheckSize eog_image_view_get_check_size (EogImageView *image_view);
G_END_DECLS
#endif /* _EOG_EOG_IMAGE_VIEW */