all repos — openbox @ f8a47de5ec444c452093371e3db16857eb39a490

openbox fork - make it a bit more like ryudo

doc/python/pointerdata.txt (raw)

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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
PointerData

----

This document describes the 'PointerData' class, passed to functions bound to
pointer events.

----

Attributes

----

action

The type of event. One of the input.Pointer.Action_* constants.

----

button

The button (in the format that input.Pointer.bind() expects them) that caused
the event. This will be 'None' if there was no button associated with the
event. (This can only happen during a pointer grab.)

----

context

A string containing the context of the event. See the Terminology section in
the Pointer documentation for a decription and list of common contexts.

----

state

An integer bitmask of the modifiers pressed down when the event occured.

----

buttonnum

An integer containing the number of the pointer button associated with the
event.

----

pos

A tuple containing the current position of the cursor. The tuple has the format
(x, y). This is only valid when 'action' is 'Action_Motion'.

-----

presspos

A tuple containing the position of the cursor when the drag started. The tuple
has the format (x, y). This is only valid when 'action' is 'Action_Motion'.

----

pressclientarea

A tuple containing the area of the client when the drag started. The tuple has
the format (x, y, width, height). This will be None if there is no client
associated with the event (during a pointer grab, or a drag on the root
window). This is only valid when 'action' is 'Action_Motion'.