1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ 2 /* This file is part of the GtkHTML library. 3 * 4 * Copyright (C) 2000 Helix Code, Inc. 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Library General Public 8 * License as published by the Free Software Foundation; either 9 * version 2 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Library General Public License for more details. 15 * 16 * You should have received a copy of the GNU Library General Public License 17 * along with this library; see the file COPYING.LIB. If not, write to 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * Boston, MA 02110-1301, USA. 20 */ 21 22 #ifndef _HTMLFRAME_H_ 23 #define _HTMLFRAME_H_ 24 25 #include "htmlembedded.h" 26 27 #define HTML_FRAME(x) ((HTMLFrame *)(x)) 28 #define HTML_FRAME_CLASS(x) ((HTMLFrameClass *)(x)) 29 #define HTML_IS_FRAME(x) (HTML_CHECK_TYPE ((x), HTML_TYPE_FRAME)) 30 31 struct _HTMLFrame { 32 HTMLEmbedded embedded; 33 34 gchar *url; 35 GtkWidget *scroll; 36 GtkWidget *html; 37 HTMLPainter *gdk_painter; 38 gint width; 39 gint height; 40 gboolean frameborder; 41 }; 42 43 struct _HTMLFrameClass { 44 HTMLEmbeddedClass embedded_class; 45 }; 46 47 void html_frame_type_init (void); 48 49 void html_frame_class_init (HTMLFrameClass *klass, 50 HTMLType type, 51 guint object_size); 52 53 void html_frame_set_size (HTMLFrame *frame, 54 gint width, 55 gint heght); 56 57 void html_frame_set_margin_width (HTMLFrame *frame, 58 gint margin); 59 void html_frame_set_margin_height (HTMLFrame *frame, 60 gint margin); 61 62 void html_frame_set_scrolling (HTMLFrame *frame, 63 GtkPolicyType scroll); 64 65 void html_frame_init (HTMLFrame *frame, 66 HTMLFrameClass *klass, 67 GtkWidget *parent, 68 gchar *url, 69 gint width, 70 gint height, 71 gboolean border); 72 73 HTMLObject * html_frame_new (GtkWidget *parent, 74 gchar *src, 75 gint width, 76 gint height, 77 gboolean border); 78 79 #endif 80 81