summaryrefslogtreecommitdiff
path: root/atk/atkcomponent.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/atkcomponent.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/atkcomponent.h')
-rwxr-xr-xatk/atkcomponent.h85
1 files changed, 46 insertions, 39 deletions
diff --git a/atk/atkcomponent.h b/atk/atkcomponent.h
index abde0ee..fb3e493 100755
--- a/atk/atkcomponent.h
+++ b/atk/atkcomponent.h
@@ -21,6 +21,7 @@
#define __ATK_COMPONENT_H__
#include <atk/atkobject.h>
+#include <atk/atkutil.h>
#ifdef __cplusplus
extern "C" {
@@ -55,39 +56,42 @@ struct _AtkComponentIface
AtkFocusHandler handler);
gboolean (* contains) (AtkComponent *component,
gint x,
- gint y);
+ gint y,
+ AtkCoordType coord_type);
AtkObject* (* get_accessible_at_point) (AtkComponent *component,
gint x,
- gint y);
+ gint y,
+ AtkCoordType coord_type);
void (* get_extents) (AtkComponent *component,
gint *x,
gint *y,
gint *width,
- gint *height);
- void (* get_position) (AtkComponent *component,
- gint *x,
- gint *y);
- void (* get_position_on_screen) (AtkComponent *component,
- gint *root_x,
- gint *root_y);
- void (* get_size) (AtkComponent *component,
- gint *width,
- gint *height);
- void (* grab_focus) (AtkComponent *component);
- void (* remove_focus_handler) (AtkComponent *component,
- guint handler_id);
- void (* set_extents) (AtkComponent *component,
- gint x,
- gint y,
- gint width,
- gint height);
- void (* set_position) (AtkComponent *component,
- gint x,
- gint y);
- void (* set_size) (AtkComponent *component,
- gint width,
- gint height);
+ gint *height,
+ AtkCoordType coord_type);
+ void (* get_position) (AtkComponent *component,
+ gint *x,
+ gint *y,
+ AtkCoordType coord_type);
+ void (* get_size) (AtkComponent *component,
+ gint *width,
+ gint *height);
+ gboolean (* grab_focus) (AtkComponent *component);
+ void (* remove_focus_handler) (AtkComponent *component,
+ guint handler_id);
+ gboolean (* set_extents) (AtkComponent *component,
+ gint x,
+ gint y,
+ gint width,
+ gint height,
+ AtkCoordType coord_type);
+ gboolean (* set_position) (AtkComponent *component,
+ gint x,
+ gint y,
+ AtkCoordType coord_type);
+ gboolean (* set_size) (AtkComponent *component,
+ gint width,
+ gint height);
};
GType atk_component_get_type ();
@@ -98,36 +102,39 @@ guint atk_component_add_focus_handler (AtkComponent *comp
AtkFocusHandler handler);
gboolean atk_component_contains (AtkComponent *component,
gint x,
- gint y);
+ gint y,
+ AtkCoordType coord_type);
AtkObject* atk_component_get_accessible_at_point(AtkComponent *component,
gint x,
- gint y);
+ gint y,
+ AtkCoordType coord_type);
void atk_component_get_extents (AtkComponent *component,
gint *x,
gint *y,
gint *width,
- gint *height);
+ gint *height,
+ AtkCoordType coord_type);
void atk_component_get_position (AtkComponent *component,
gint *x,
- gint *y);
-void atk_component_get_position_on_screen (AtkComponent *component,
- gint *x,
- gint *y);
+ gint *y,
+ AtkCoordType coord_type);
void atk_component_get_size (AtkComponent *component,
gint *width,
gint *height);
-void atk_component_grab_focus (AtkComponent *component);
+gboolean atk_component_grab_focus (AtkComponent *component);
void atk_component_remove_focus_handler (AtkComponent *component,
guint handler_id);
-void atk_component_set_extents (AtkComponent *component,
+gboolean atk_component_set_extents (AtkComponent *component,
gint x,
gint y,
gint width,
- gint height);
-void atk_component_set_position (AtkComponent *component,
+ gint height,
+ AtkCoordType coord_type);
+gboolean atk_component_set_position (AtkComponent *component,
gint x,
- gint y);
-void atk_component_set_size (AtkComponent *component,
+ gint y,
+ AtkCoordType coord_type);
+gboolean atk_component_set_size (AtkComponent *component,
gint width,
gint height);