sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #19871
[Bug 905400] Re: [request] want java rectangle features for Region (union, intersection, intersects, contains)
** Changed in: sikuli
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/905400
Title:
[request] want java rectangle features for Region (union,
intersection, intersects, contains)
Status in Sikuli:
Fix Released
Bug description:
based on
https://github.com/sikuli/sikuli/issues/6
and the Java docs
http://docs.oracle.com/javase/6/docs/api/java/awt/Rectangle.html
these features for the class Region would be helpful:
--- return a new region or None
Region.union(Region)
Region.union(Location)
Region.intersection(Region)
--- return True or False
Region.contains(Region)
Region.intersects(Region)
Region.contains(Location)
Currently these features can be used by casting the Region object to a
Java rectangle and back to a Region:
regUnion = Region(r0.getRect().union(r1.getRect()))
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/905400/+subscriptions
References