Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IA2_SCROLL_TYPE_*MIDDLE scrolling types #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion api/IA2CommonTypes.idl
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,29 @@ enum IA2ScrollType {
substring may be scrolled to to closest edge, the furthest edge, or midway
between those two edges.
*/
IA2_SCROLL_TYPE_ANYWHERE
IA2_SCROLL_TYPE_ANYWHERE,

/** Scroll the object or substring such that the middle of the object (and as
much as possible of the rest of the object or substring) is at the middle
of the top level window. In cases where there is a hierarchy of nested
scrollable controls, more than one control may have to be scrolled.
*/
IA2_SCROLL_TYPE_MIDDLE,

/** Scroll the object or substring such that the horizontal middle of the
object (and as much as possible of the rest of the object or substring) is
at the horizontal middle of the top level window. In cases where there is a
hierarchy of nested scrollable controls, more than one control may have to be
scrolled.
*/
IA2_SCROLL_TYPE_HORIZONTAL_MIDDLE,

/** Scroll the object or substring such that the vertical middle of the object
(and as much as possible of the rest of the object or substring) is at the
vertical middle of the top level window. In cases where there is a hierarchy
of nested scrollable controls, more than one control may have to be scrolled.
*/
IA2_SCROLL_TYPE_VERTICAL_MIDDLE
};

/** These constants define which coordinate system a point is located in.
Expand Down