summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/UIEvents/MouseEvent.idl
blob: 449253ab6c3c7d74d342f3d104719eb13df97265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// https://w3c.github.io/uievents/#mouseevent
[Exposed=Window]
interface MouseEvent : UIEvent {

    readonly attribute double offsetX;
    readonly attribute double offsetY;
    readonly attribute double clientX;
    readonly attribute double clientY;
    readonly attribute double screenX;
    readonly attribute double screenY;
    readonly attribute double x;
    readonly attribute double y;
    readonly attribute double pageX;
    readonly attribute double pageY;

    readonly attribute short button;
    readonly attribute unsigned short buttons;
};

dictionary MouseEventInit : EventModifierInit {

    // FIXME: offsetX and offsetY shouldn't be here.
    double offsetX = 0;
    double offsetY = 0;
    double clientX = 0;
    double clientY = 0;

    short button = 0;

};