summaryrefslogtreecommitdiff
path: root/atk/atktext.h
diff options
context:
space:
mode:
authorBrian Cameron <bcameron@src.gnome.org>2001-06-28 14:59:07 +0000
committerBrian Cameron <bcameron@src.gnome.org>2001-06-28 14:59:07 +0000
commit1e52e12f06d2b3539102b9b954755ebf7fab3769 (patch)
tree7ecf2b8c23e7b85d1d55954bce0321de7bfd15f3 /atk/atktext.h
parent614042bfc45ba64fd22d1b9f3e22adc80a7d5f24 (diff)
downloadatk-1e52e12f06d2b3539102b9b954755ebf7fab3769.tar.gz
Updated so that functions that take screen coords as
input/output also take an enum specifying whether the coords are screen or top-level window based.
Diffstat (limited to 'atk/atktext.h')
-rwxr-xr-xatk/atktext.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/atk/atktext.h b/atk/atktext.h
index 51671be..89f3737 100755
--- a/atk/atktext.h
+++ b/atk/atktext.h
@@ -24,6 +24,7 @@
#include <pango/pango.h>
#include <glib-object.h>
#include <atk/atkobject.h>
+#include <atk/atkutil.h>
#ifdef __cplusplus
extern "C" {
@@ -47,20 +48,6 @@ typedef struct _AtkText AtkText;
#endif
typedef struct _AtkTextIface AtkTextIface;
-
-/**
- *AtkXYCoords:
- *@ATK_XY_SCREEN: specifies xy coordinates relative to the screen
- *@ATK_XY_WINDOW: specifies xy coordinates relative to the widgets
- * top-level window
- *
- *Specifies how xy coordinates are to be interpreted
- **/
-typedef enum {
- ATK_XY_SCREEN,
- ATK_XY_WINDOW
-}AtkXYCoords;
-
/**
*AtkTextBoundary:
*@ATK_TEXT_BOUNDARY_CHAR:
@@ -118,12 +105,12 @@ struct _AtkTextIface
gint *y,
gint *length,
gint *width,
- AtkXYCoords coords);
+ AtkCoordType coords);
gint (* get_character_count) (AtkText *text);
gint (* get_offset_at_point) (AtkText *text,
gint x,
gint y,
- AtkXYCoords coords);
+ AtkCoordType coords);
gint (* get_n_selections) (AtkText *text);
gchar* (* get_selection) (AtkText *text,
gint selection_num,
@@ -186,7 +173,7 @@ void atk_text_get_character_extents (AtkText *tex
gint *y,
gint *length,
gint *width,
- AtkXYCoords coords);
+ AtkCoordType coords);
AtkAttributeSet* atk_text_ref_run_attributes (AtkText *text,
gint offset,
gint *start_offset,
@@ -195,7 +182,7 @@ gint atk_text_get_character_count (AtkText *tex
gint atk_text_get_offset_at_point (AtkText *text,
gint x,
gint y,
- AtkXYCoords coords);
+ AtkCoordType coords);
gint atk_text_get_n_selections (AtkText *text);
gchar* atk_text_get_selection (AtkText *text,
gint selection_num,