mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-07-13 20:29:25 +00:00
22 lines
495 B
Plaintext
22 lines
495 B
Plaintext
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
|
|
interface Point {
|
|
attribute float x;
|
|
attribute float y;
|
|
};
|
|
|
|
typedef sequence<Point> PointSequence;
|
|
|
|
interface Rect {
|
|
attribute Point topleft;
|
|
attribute Point bottomright;
|
|
};
|
|
|
|
interface Widget {
|
|
|
|
readonly attribute Rect bounds;
|
|
|
|
boolean pointWithinBounds(Point p);
|
|
boolean allPointsWithinBounds(PointSequence ps);
|
|
};
|
|
|
|
typedef [Clamp] octet value; |