tenfourfox/testing/web-platform/tests/WebIDL/valid/idl/typedef.widl
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

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;