summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-30 19:14:14 +0100
committerMike Gorse <mgorse@suse.com>2018-05-16 19:38:06 -0500
commit737c9853b681fb20fda79b32ed92cda96b381dd0 (patch)
treec1393d2be82920fd370bbdde89f0abb3dc243df9 /idl
parentd7f47c99d093ba91eb18523e14b23bde1794f5bc (diff)
downloadat-spi2-core-737c9853b681fb20fda79b32ed92cda96b381dd0.tar.gz
Add ScrollTo and ScrollToPoint component interfaces
Diffstat (limited to 'idl')
-rw-r--r--idl/component.didl41
1 files changed, 40 insertions, 1 deletions
diff --git a/idl/component.didl b/idl/component.didl
index aa40e78f..31cfbf0f 100644
--- a/idl/component.didl
+++ b/idl/component.didl
@@ -54,7 +54,30 @@ interface org.freestandards.atspi.Component {
LAYER_WINDOW,
LAYER_LAST_DEFINED
}
-
+
+ /*
+ Describes where the object should be placed on the window.
+ */
+ enum uint32 ScrollType {
+ SCROLL_TOP_LEFT = 0,
+ SCROLL_BOTTOM_RIGHT,
+ SCROLL_TOP_EDGE,
+ SCROLL_BOTTOM_EDGE,
+ SCROLL_LEFT_EDGE,
+ SCROLL_RIGHT_EDGE,
+ SCROLL_ANYWHERE
+ }
+
+ /*
+ Specifies whether the coordinates are relative to the screen, to the
+ window, or to the parent object.
+ */
+ enum uint32 CoordType {
+ COORD_TYPE_SCREEN = 0,
+ COORD_TYPE_WINDOW,
+ COORD_TYPE_PARENT
+ }
+
/*
True if the specified point lies within the components bounding box.
*/
@@ -136,4 +159,20 @@ interface org.freestandards.atspi.Component {
method GetAlpha reply {
double alpha;
}
+
+ /*
+ Scroll this object so it becomes visible on the screen.
+ */
+ method ScrollTo {
+ ScrollType type;
+ }
+
+ /*
+ Scroll this object so it becomes visible on the screen at a given position.
+ */
+ method ScrollToPoint {
+ CoordType type;
+ int32 x;
+ int32 y;
+ }
}