GailMisc

Name

GailMisc -- 

Synopsis



AtkAttributeSet* gail_misc_add_attribute    (AtkAttributeSet *attrib_set,
                                             AtkTextAttribute attr,
                                             gchar *value);
AtkAttributeSet* gail_misc_layout_get_run_attributes
                                            (AtkAttributeSet *attrib_set,
                                             PangoLayout *layout,
                                             gchar *text,
                                             gint offset,
                                             gint *start_offset,
                                             gint *end_offset);
AtkAttributeSet* gail_misc_get_default_attributes
                                            (AtkAttributeSet *attrib_set,
                                             PangoLayout *layout,
                                             GtkWidget *widget);
void        gail_misc_get_extents_from_pango_rectangle
                                            (GtkWidget *widget,
                                             PangoRectangle *char_rect,
                                             gint x_layout,
                                             gint y_layout,
                                             gint *x,
                                             gint *y,
                                             gint *width,
                                             gint *height,
                                             AtkCoordType coords);
gint        gail_misc_get_index_at_point_in_layout
                                            (GtkWidget *widget,
                                             PangoLayout *layout,
                                             gint x_layout,
                                             gint y_layout,
                                             gint x,
                                             gint y,
                                             AtkCoordType coords);
void        gail_misc_get_origins           (GtkWidget *widget,
                                             gint *x_window,
                                             gint *y_window,
                                             gint *x_toplevel,
                                             gint *y_toplevel);
AtkAttributeSet* gail_misc_add_to_attr_set  (AtkAttributeSet *attrib_set,
                                             GtkTextAttributes *attrs,
                                             AtkTextAttribute attr);
AtkAttributeSet* gail_misc_buffer_get_run_attributes
                                            (GtkTextBuffer *buffer,
                                             gint offset,
                                             gint *start_offset,
                                             gint *end_offset);

Description

Details

gail_misc_add_attribute ()

AtkAttributeSet* gail_misc_add_attribute    (AtkAttributeSet *attrib_set,
                                             AtkTextAttribute attr,
                                             gchar *value);

Creates an AtkAttribute from attr and value, and adds it to attrib_set.


gail_misc_layout_get_run_attributes ()

AtkAttributeSet* gail_misc_layout_get_run_attributes
                                            (AtkAttributeSet *attrib_set,
                                             PangoLayout *layout,
                                             gchar *text,
                                             gint offset,
                                             gint *start_offset,
                                             gint *end_offset);

Adds the attributes for the run starting at offset to the specified attribute set.


gail_misc_get_default_attributes ()

AtkAttributeSet* gail_misc_get_default_attributes
                                            (AtkAttributeSet *attrib_set,
                                             PangoLayout *layout,
                                             GtkWidget *widget);

Adds the default attributes to the specified attribute set.


gail_misc_get_extents_from_pango_rectangle ()

void        gail_misc_get_extents_from_pango_rectangle
                                            (GtkWidget *widget,
                                             PangoRectangle *char_rect,
                                             gint x_layout,
                                             gint y_layout,
                                             gint *x,
                                             gint *y,
                                             gint *width,
                                             gint *height,
                                             AtkCoordType coords);

Gets the extents of char_rect in device coordinates, relative to either top-level window or screen coordinates as specified by coords.


gail_misc_get_index_at_point_in_layout ()

gint        gail_misc_get_index_at_point_in_layout
                                            (GtkWidget *widget,
                                             PangoLayout *layout,
                                             gint x_layout,
                                             gint y_layout,
                                             gint x,
                                             gint y,
                                             AtkCoordType coords);

Gets the byte offset at the specified x and y in a PangoLayout.


gail_misc_get_origins ()

void        gail_misc_get_origins           (GtkWidget *widget,
                                             gint *x_window,
                                             gint *y_window,
                                             gint *x_toplevel,
                                             gint *y_toplevel);

Gets the origin of the widget window, and the origin of the widgets top-level window.


gail_misc_add_to_attr_set ()

AtkAttributeSet* gail_misc_add_to_attr_set  (AtkAttributeSet *attrib_set,
                                             GtkTextAttributes *attrs,
                                             AtkTextAttribute attr);

Gets the value for the AtkTextAttribute from the GtkTextAttributes and adds it to the AttributeSet.


gail_misc_buffer_get_run_attributes ()

AtkAttributeSet* gail_misc_buffer_get_run_attributes
                                            (GtkTextBuffer *buffer,
                                             gint offset,
                                             gint *start_offset,
                                             gint *end_offset);

Creates an AtkAttributeSet which contains the attributes for the run starting at offset.