1 /* This file is part of the GtkHTML library.
3 * Copyright 2002 Ximian, Inc.
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.
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.
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., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
24 #ifndef __HTML_A11Y_H__
25 #define __HTML_A11Y_H__
27 #include <atk/atkobject.h>
28 #include <atk/atkcomponent.h>
29 #include "htmltypes.h"
32 #define G_TYPE_HTML_A11Y (html_a11y_get_type ())
33 #define HTML_A11Y(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), G_TYPE_HTML_A11Y, HTMLA11Y))
34 #define HTML_A11Y_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), G_TYPE_HTML_A11Y, HTMLA11YClass))
35 #define G_IS_HTML_A11Y(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_HTML_A11Y))
36 #define G_IS_HTML_A11Y_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), G_TYPE_HTML_A11Y))
37 #define HTML_A11Y_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), G_TYPE_HTML_A11Y, HTMLA11YClass))
39 #define HTML_ID "html-object"
40 #define HTML_A11Y_HTML(o) HTML_OBJECT (g_object_get_data (G_OBJECT (o), HTML_ID))
42 typedef struct _HTMLA11Y HTMLA11Y
;
43 typedef struct _HTMLA11YClass HTMLA11YClass
;
49 GType
html_a11y_get_type (void);
51 struct _HTMLA11YClass
{
52 AtkObjectClass parent_class
;
55 AtkObject
* html_a11y_new (HTMLObject
*html_obj
, AtkRole role
);
57 GtkHTMLA11Y
* html_a11y_get_gtkhtml_parent (HTMLA11Y
*obj
);
58 GtkHTMLA11Y
* html_a11y_get_top_gtkhtml_parent (HTMLA11Y
*obj
);
60 /* private, used in text.c */
61 void html_a11y_get_extents (AtkComponent
*component
, gint
*x
, gint
*y
, gint
*width
, gint
*height
, AtkCoordType coord_type
);
62 void html_a11y_get_size (AtkComponent
*component
, gint
*width
, gint
*height
);