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;
interface Point {
attribute float x;
attribute float y;
};
attribute float x;
attribute float y;
typedef sequence<[Point]> PointSequence;
interface Rect {
attribute [Point] topleft;
attribute [Point] bottomright;
};
attribute [Point] topleft;
attribute [Point] bottomright;
interface Widget {
readonly attribute [Rect] bounds;
boolean pointWithinBounds([Point] p);
boolean allPointsWithinBounds([PointSequence] ps);
};
readonly attribute [Rect] bounds;
boolean pointWithinBounds([Point] p);
boolean allPointsWithinBounds([PointSequence] ps);
typedef [Clamp] octet value;
Clamp