Logo Search packages:      
Sourcecode: telegnome version File versions  Download package

view.h

/*
 * view.h
 * The viewer component of TeleGNOME
 */

/*
**    Copyright (C) 1999, 2000,
**    Dirk-Jan C. Binnema <djcb@dds.nl>,
**    Arjan Scherpenisse <acscherp@wins.uva.nl>
**  
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**  
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
**  
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
**  
*/

#ifndef _VIEW_H_
#define _VIEW_H_

#include <gtk/gtk.h>
#include <gdk-pixbuf/gdk-pixbuf.h>

#include "channel.h"

typedef struct _TeleView {
    gfloat zoom_factor;
    void (*error_handler)(const char *);

    GtkWidget *pixpack;
    
    Channel *channel;

    int page_nr;
    int subpage_nr;

    /* the box */
    GtkWidget *box;
} TeleView;
    
TeleView *tele_view_new();
void tele_view_set_error_handler(TeleView *view, void (*e)(const char *));
void tele_view_error(TeleView *view, const char *c);
gint tele_view_update_pixmap(TeleView *view, GdkPixbuf *pixbuf);
gint tele_view_update_page(TeleView *view, int *major_nr, int *minor_nr);
GtkWidget *tele_view_get_widget(TeleView *view);
void tele_view_free();
#endif


Generated by  Doxygen 1.6.0   Back to index