1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
interface Point { attribute float x; attribute float y; }; interface Rect { attribute Point topleft; attribute Point bottomright; }; interface Widget { typedef sequence<Point> PointSequence; readonly attribute Rect bounds; boolean pointWithinBounds(Point p); boolean allPointsWithinBounds(PointSequence ps); }; typedef [Clamp] octet value;