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., 59 Temple Place - Suite 330, |
---|
19 | Boston, MA 02111-1307, USA. |
---|
20 | */ |
---|
21 | |
---|
22 | #ifndef _HTMLIFRAME_H_ |
---|
23 | #define _HTMLIFRAME_H_ |
---|
24 | |
---|
25 | #include "htmlembedded.h" |
---|
26 | |
---|
27 | #define HTML_IFRAME(x) ((HTMLIFrame *)(x)) |
---|
28 | #define HTML_IFRAME_CLASS(x) ((HTMLIFrameClass *)(x)) |
---|
29 | #define HTML_IS_IFRAME(x) (HTML_CHECK_TYPE ((x), HTML_TYPE_IFRAME)) |
---|
30 | |
---|
31 | struct _HTMLIFrame { |
---|
32 | HTMLEmbedded embedded; |
---|
33 | |
---|
34 | char *url; |
---|
35 | GtkWidget *scroll; |
---|
36 | GtkWidget *html; |
---|
37 | HTMLPainter *gdk_painter; |
---|
38 | HTMLPainter *old_painter; |
---|
39 | HTMLPainter *parent_painter; |
---|
40 | |
---|
41 | gint width; |
---|
42 | gint height; |
---|
43 | gboolean frameborder; |
---|
44 | }; |
---|
45 | |
---|
46 | struct _HTMLIFrameClass { |
---|
47 | HTMLEmbeddedClass embedded_class; |
---|
48 | }; |
---|
49 | |
---|
50 | void html_iframe_type_init (void); |
---|
51 | |
---|
52 | void html_iframe_class_init (HTMLIFrameClass *klass, |
---|
53 | HTMLType type, |
---|
54 | guint object_size); |
---|
55 | |
---|
56 | void html_iframe_init (HTMLIFrame *iframe, |
---|
57 | HTMLIFrameClass *klass, |
---|
58 | GtkWidget *parent, |
---|
59 | char *url, |
---|
60 | gint width, |
---|
61 | gint height, |
---|
62 | gboolean border); |
---|
63 | |
---|
64 | HTMLObject * html_iframe_new (GtkWidget *parent, |
---|
65 | char *src, |
---|
66 | gint width, |
---|
67 | gint height, |
---|
68 | gboolean border); |
---|
69 | |
---|
70 | void html_iframe_set_scrolling (HTMLIFrame *iframe, GtkPolicyType scroll); |
---|
71 | |
---|
72 | void html_iframe_set_margin_width (HTMLIFrame *iframe, |
---|
73 | gint margin); |
---|
74 | void html_iframe_set_margin_height (HTMLIFrame *iframe, |
---|
75 | gint margin); |
---|
76 | |
---|
77 | #endif |
---|
78 | |
---|
79 | |
---|