mirror of
https://github.com/servo/servo.git
synced 2025-07-10 08:53:41 +01:00
25 lines
No EOL
520 B
Text
25 lines
No EOL
520 B
Text
// Extracted from http://dev.w3.org/2006/webapi/WebIDL/ on 2011-05-06
|
|
module gfx {
|
|
|
|
module geom {
|
|
interface Shape { /* ... */ };
|
|
interface Rectangle : Shape { /* ... */ };
|
|
interface Path : Shape { /* ... */ };
|
|
};
|
|
|
|
interface GraphicsContext {
|
|
void fillShape(geom::Shape s);
|
|
void strokeShape(geom::Shape s);
|
|
};
|
|
};
|
|
|
|
module gui {
|
|
|
|
interface Widget { /* ... */ };
|
|
|
|
interface Window : Widget {
|
|
gfx::GraphicsContext getGraphicsContext();
|
|
};
|
|
|
|
interface Button : Widget { /* ... */ };
|
|
}; |