1 module spasm.bindings.pointerevents;
2 
3 import spasm.types;
4 import spasm.bindings.uievents;
5 
6 @safe:
7 nothrow:
8 
9 struct PointerEventInit {
10   nothrow:
11   spasm.bindings.uievents.MouseEventInit _parent;
12   alias _parent this;
13   this(Handle h) {
14     _parent = .MouseEventInit(h);
15   }
16   static auto create() {
17     return PointerEventInit(spasm_add__object());
18   }
19   void pointerId()(int pointerId) {
20     PointerEventInit_pointerId_Set(this._parent, pointerId);
21   }
22   auto pointerId()() {
23     return PointerEventInit_pointerId_Get(this._parent);
24   }
25   void width()(double width) {
26     PointerEventInit_width_Set(this._parent, width);
27   }
28   auto width()() {
29     return PointerEventInit_width_Get(this._parent);
30   }
31   void height()(double height) {
32     PointerEventInit_height_Set(this._parent, height);
33   }
34   auto height()() {
35     return PointerEventInit_height_Get(this._parent);
36   }
37   void pressure()(float pressure) {
38     PointerEventInit_pressure_Set(this._parent, pressure);
39   }
40   auto pressure()() {
41     return PointerEventInit_pressure_Get(this._parent);
42   }
43   void tangentialPressure()(float tangentialPressure) {
44     PointerEventInit_tangentialPressure_Set(this._parent, tangentialPressure);
45   }
46   auto tangentialPressure()() {
47     return PointerEventInit_tangentialPressure_Get(this._parent);
48   }
49   void tiltX()(int tiltX) {
50     PointerEventInit_tiltX_Set(this._parent, tiltX);
51   }
52   auto tiltX()() {
53     return PointerEventInit_tiltX_Get(this._parent);
54   }
55   void tiltY()(int tiltY) {
56     PointerEventInit_tiltY_Set(this._parent, tiltY);
57   }
58   auto tiltY()() {
59     return PointerEventInit_tiltY_Get(this._parent);
60   }
61   void twist()(int twist) {
62     PointerEventInit_twist_Set(this._parent, twist);
63   }
64   auto twist()() {
65     return PointerEventInit_twist_Get(this._parent);
66   }
67   void pointerType()(string pointerType) {
68     PointerEventInit_pointerType_Set(this._parent, pointerType);
69   }
70   auto pointerType()() {
71     return PointerEventInit_pointerType_Get(this._parent);
72   }
73   void isPrimary()(bool isPrimary) {
74     PointerEventInit_isPrimary_Set(this._parent, isPrimary);
75   }
76   auto isPrimary()() {
77     return PointerEventInit_isPrimary_Get(this._parent);
78   }
79 }
80 
81 
82 extern (C) void PointerEventInit_pointerId_Set(Handle, int);
83 extern (C) int PointerEventInit_pointerId_Get(Handle);
84 extern (C) void PointerEventInit_width_Set(Handle, double);
85 extern (C) double PointerEventInit_width_Get(Handle);
86 extern (C) void PointerEventInit_height_Set(Handle, double);
87 extern (C) double PointerEventInit_height_Get(Handle);
88 extern (C) void PointerEventInit_pressure_Set(Handle, float);
89 extern (C) float PointerEventInit_pressure_Get(Handle);
90 extern (C) void PointerEventInit_tangentialPressure_Set(Handle, float);
91 extern (C) float PointerEventInit_tangentialPressure_Get(Handle);
92 extern (C) void PointerEventInit_tiltX_Set(Handle, int);
93 extern (C) int PointerEventInit_tiltX_Get(Handle);
94 extern (C) void PointerEventInit_tiltY_Set(Handle, int);
95 extern (C) int PointerEventInit_tiltY_Get(Handle);
96 extern (C) void PointerEventInit_twist_Set(Handle, int);
97 extern (C) int PointerEventInit_twist_Get(Handle);
98 extern (C) void PointerEventInit_pointerType_Set(Handle, string);
99 extern (C) string PointerEventInit_pointerType_Get(Handle);
100 extern (C) void PointerEventInit_isPrimary_Set(Handle, bool);
101 extern (C) bool PointerEventInit_isPrimary_Get(Handle);