]> Pileus Git - ~andy/gtk/blob - libgail-util/gailmisc.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / libgail-util / gailmisc.h
1 /* GAIL - The GNOME Accessibility Implementation Library
2  * Copyright 2001 Sun Microsystems Inc.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 #ifndef __GAIL_MISC_H__
19 #define __GAIL_MISC_H__
20
21 #include <glib-object.h>
22 #include <gtk/gtk.h>
23 #include <pango/pango.h>
24
25 G_BEGIN_DECLS
26
27 AtkAttributeSet* gail_misc_add_attribute          (AtkAttributeSet   *attrib_set,
28                                                    AtkTextAttribute   attr,
29                                                    gchar             *value);
30 AtkAttributeSet* gail_misc_layout_get_run_attributes
31                                                   (AtkAttributeSet   *attrib_set,
32                                                    PangoLayout       *layout,
33                                                    const gchar       *text,
34                                                    gint              offset,
35                                                    gint              *start_offset,
36                                                    gint              *end_offset);
37
38 AtkAttributeSet* gail_misc_get_default_attributes (AtkAttributeSet   *attrib_set,
39                                                    PangoLayout       *layout,
40                                                    GtkWidget         *widget);
41
42 void             gail_misc_get_extents_from_pango_rectangle
43                                                   (GtkWidget         *widget,
44                                                    PangoRectangle    *char_rect,
45                                                    gint              x_layout,
46                                                    gint              y_layout,
47                                                    gint              *x,
48                                                    gint              *y,
49                                                    gint              *width,
50                                                    gint              *height,
51                                                    AtkCoordType      coords);
52
53 gint             gail_misc_get_index_at_point_in_layout
54                                                   (GtkWidget         *widget,
55                                                    PangoLayout       *layout, 
56                                                    gint              x_layout,
57                                                    gint              y_layout,
58                                                    gint              x,
59                                                    gint              y,
60                                                    AtkCoordType      coords);
61
62 void             gail_misc_get_origins            (GtkWidget         *widget,
63                                                    gint              *x_window,
64                                                    gint              *y_window,
65                                                    gint              *x_toplevel,
66                                                    gint              *y_toplevel);
67
68 AtkAttributeSet* gail_misc_buffer_get_run_attributes
69                                                   (GtkTextBuffer     *buffer,
70                                                    gint              offset,
71                                                    gint              *start_offset,
72                                                    gint              *end_offset);
73
74 G_END_DECLS
75
76 #endif /*__GAIL_MISC_H__ */