[16766] | 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) 1997 Martin Jones (mjones@kde.org) |
---|
| 5 | Copyright (C) 1997 Torben Weis (weis@kde.org) |
---|
| 6 | Copyright (C) 1999 Helix Code, Inc. |
---|
| 7 | |
---|
| 8 | This library is free software; you can redistribute it and/or |
---|
| 9 | modify it under the terms of the GNU Library General Public |
---|
| 10 | License as published by the Free Software Foundation; either |
---|
| 11 | version 2 of the License, or (at your option) any later version. |
---|
| 12 | |
---|
| 13 | This library is distributed in the hope that it will be useful, |
---|
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 16 | Library General Public License for more details. |
---|
| 17 | |
---|
| 18 | You should have received a copy of the GNU Library General Public License |
---|
| 19 | along with this library; see the file COPYING.LIB. If not, write to |
---|
| 20 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
| 21 | Boston, MA 02111-1307, USA. |
---|
| 22 | */ |
---|
| 23 | |
---|
| 24 | #ifndef _HTMLANCHOR_H |
---|
| 25 | #define _HTMLANCHOR_H |
---|
| 26 | |
---|
| 27 | #include <glib.h> |
---|
| 28 | |
---|
| 29 | #include "htmlobject.h" |
---|
| 30 | |
---|
| 31 | #define HTML_ANCHOR(x) ((HTMLAnchor *) x) |
---|
| 32 | #define HTML_ANCHOR_CLASS(x) ((HTMLAnchorClass *) x) |
---|
| 33 | |
---|
| 34 | struct _HTMLAnchor { |
---|
| 35 | HTMLObject object; |
---|
| 36 | |
---|
| 37 | GString *name; |
---|
| 38 | }; |
---|
| 39 | |
---|
| 40 | struct _HTMLAnchorClass { |
---|
| 41 | HTMLObjectClass object_class; |
---|
| 42 | }; |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | void html_anchor_type_init (void); |
---|
| 46 | void html_anchor_class_init (HTMLAnchorClass *klass, |
---|
| 47 | HTMLType type, |
---|
| 48 | guint object_size); |
---|
| 49 | HTMLObject *html_anchor_new (const gchar *name); |
---|
| 50 | void html_anchor_init (HTMLAnchor *anchor, |
---|
| 51 | HTMLAnchorClass *klass, |
---|
| 52 | const gchar *name); |
---|
| 53 | const gchar *html_anchor_get_name (HTMLAnchor *anchor); |
---|
| 54 | |
---|
| 55 | #endif /* _HTMLANCHOR_H */ |
---|