Commit 1f2b8a65 authored by Matthias Clasen's avatar Matthias Clasen

Add some aux. pango api to help AtkText implementations

These functions are implementations of the AtkText api on top
of a PangoLayout, and are intended to replace GailTextUtil.

Since gtkpango.h is a private header, also remove the individual
inclusion prohibition.
parent 53535f03
......@@ -39,8 +39,8 @@ AC_CONFIG_AUX_DIR([build-aux])
m4_define([gtk_binary_version], [3.0.0])
# required versions of other packages
m4_define([glib_required_version], [2.29.4])
m4_define([pango_required_version], [1.24.0])
m4_define([glib_required_version], [2.29.9])
m4_define([pango_required_version], [1.29.0])
m4_define([atk_required_version], [1.30])
m4_define([cairo_required_version], [1.10.0])
m4_define([gdk_pixbuf_required_version], [2.22.0])
......
This diff is collapsed.
......@@ -24,23 +24,62 @@
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
*/
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif
#ifndef __GTK_PANGO_H__
#define __GTK_PANGO_H__
#include <pango/pangocairo.h>
#include <atk/atk.h>
G_BEGIN_DECLS
void
_gtk_pango_fill_layout (cairo_t *cr,
PangoLayout *layout);
void _gtk_pango_fill_layout (cairo_t *cr,
PangoLayout *layout);
AtkAttributeSet *_gtk_pango_get_default_attributes (AtkAttributeSet *attributes,
PangoLayout *layout);
AtkAttributeSet *_gtk_pango_get_run_attributes (AtkAttributeSet *attributes,
PangoLayout *layout,
gint offset,
gint *start_offset,
gint *end_offset);
gint _gtk_pango_move_chars (PangoLayout *layout,
gint offset,
gint count);
gint _gtk_pango_move_words (PangoLayout *layout,
gint offset,
gint count);
gint _gtk_pango_move_sentences (PangoLayout *layout,
gint offset,
gint count);
gint _gtk_pango_move_lines (PangoLayout *layout,
gint offset,
gint count);
gboolean _gtk_pango_is_inside_word (PangoLayout *layout,
gint offset);
gboolean _gtk_pango_is_inside_sentence (PangoLayout *layout,
gint offset);
gchar *_gtk_pango_get_text_before (PangoLayout *layout,
AtkTextBoundary boundary_type,
gint offset,
gint *start_offset,
gint *end_offset);
gchar *_gtk_pango_get_text_at (PangoLayout *layout,
AtkTextBoundary boundary_type,
gint offset,
gint *start_offset,
gint *end_offset);
gchar *_gtk_pango_get_text_after (PangoLayout *layout,
AtkTextBoundary boundary_type,
gint offset,
gint *start_offset,
gint *end_offset);
G_END_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment