Blame utils/viewer-cairo.h

Packit 0ec9dd
/* viewer-cairo.h: Common headers for Cairo-based viewers
Packit 0ec9dd
 *
Packit 0ec9dd
 * Copyright (C) 1999,2004,2005 Red Hat, Inc.
Packit 0ec9dd
 * Copyright (C) 2001 Sun Microsystems
Packit 0ec9dd
 *
Packit 0ec9dd
 * This library is free software; you can redistribute it and/or
Packit 0ec9dd
 * modify it under the terms of the GNU Library General Public
Packit 0ec9dd
 * License as published by the Free Software Foundation; either
Packit 0ec9dd
 * version 2 of the License, or (at your option) any later version.
Packit 0ec9dd
 *
Packit 0ec9dd
 * This library is distributed in the hope that it will be useful,
Packit 0ec9dd
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 0ec9dd
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
Packit 0ec9dd
 * Library General Public License for more details.
Packit 0ec9dd
 *
Packit 0ec9dd
 * You should have received a copy of the GNU Library General Public
Packit 0ec9dd
 * License along with this library; if not, write to the
Packit 0ec9dd
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Packit 0ec9dd
 * Boston, MA 02111-1307, USA.
Packit 0ec9dd
 */
Packit 0ec9dd
#ifndef VIEWER_CAIRO_H
Packit 0ec9dd
#define VIEWER_CAIRO_H
Packit 0ec9dd
Packit 0ec9dd
#include <cairo.h>
Packit 0ec9dd
Packit 0ec9dd
#include "viewer.h"
Packit 0ec9dd
Packit 0ec9dd
typedef struct _CairoViewerIface CairoViewerIface;
Packit 0ec9dd
Packit 0ec9dd
struct _CairoViewerIface
Packit 0ec9dd
{
Packit 0ec9dd
  const PangoViewer *backend_class;
Packit 0ec9dd
Packit 0ec9dd
  cairo_surface_t * (*create_surface) (gpointer instance,
Packit 0ec9dd
				       gpointer surface,
Packit 0ec9dd
				       int      width,
Packit 0ec9dd
				       int      height);
Packit 0ec9dd
Packit 0ec9dd
  void (*paint_background) (gpointer  instance,
Packit 0ec9dd
			    cairo_t  *cr);
Packit 0ec9dd
};
Packit 0ec9dd
Packit 0ec9dd
gpointer cairo_viewer_iface_create (const CairoViewerIface **iface_out);
Packit 0ec9dd
Packit 0ec9dd
void cairo_viewer_add_options (GOptionGroup *group);
Packit 0ec9dd
Packit 0ec9dd
#endif /* VIEWER_CAIRO_H */