/* This file is part of the GtkHTML library.
*
* Copyright 2002 Ximian, Inc.
*
* Author: Radek Doulik
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __HTML_A11Y_HYPER_LINK_H__
#define __HTML_A11Y_HYPER_LINK_H__
#include "text.h"
#define G_TYPE_HTML_A11Y_HYPER_LINK (html_a11y_hyper_link_get_type ())
#define HTML_A11Y_HYPER_LINK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
G_TYPE_HTML_A11Y_HYPER_LINK, \
HTMLA11YHyperLink))
#define HTML_A11Y_HYPER_LINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), \
G_TYPE_HTML_A11Y_HYPER_LINK, \
HTMLA11YHyperLinkClass))
#define G_IS_HTML_A11Y_HYPER_LINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_HTML_A11Y_HYPER_LINK))
#define G_IS_HTML_A11Y_HYPER_LINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), G_TYPE_HTML_A11Y_HYPER_LINK))
#define HTML_A11Y_HYPER_LINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_HTML_A11Y_HYPER_LINK, \
HTMLA11YHyperLinkClass))
typedef struct _HTMLA11YHyperLink HTMLA11YHyperLink;
typedef struct _HTMLA11YHyperLinkClass HTMLA11YHyperLinkClass;
struct _HTMLA11YHyperLink {
AtkHyperlink atk_hyper_link;
/* use the union for valid type-punning */
union {
HTMLA11Y *object;
gpointer weakref;
} a11y;
gint num;
gint offset;
gchar *description;
};
GType html_a11y_hyper_link_get_type (void);
struct _HTMLA11YHyperLinkClass {
AtkHyperlinkClass parent_class;
};
AtkHyperlink * html_a11y_hyper_link_new (HTMLA11Y *a11y, gint link_index);
#endif