Add DeltaX and DeltaY to Gdk.EventScroll (fixes #37)
This commit is contained in:
parent
1d5d482126
commit
3bfa6e7295
1 changed files with 20 additions and 0 deletions
|
@ -41,6 +41,8 @@ namespace Gdk {
|
||||||
public IntPtr device;
|
public IntPtr device;
|
||||||
public double x_root;
|
public double x_root;
|
||||||
public double y_root;
|
public double y_root;
|
||||||
|
public double delta_x;
|
||||||
|
public double delta_y;
|
||||||
}
|
}
|
||||||
|
|
||||||
NativeStruct Native {
|
NativeStruct Native {
|
||||||
|
@ -101,6 +103,15 @@ namespace Gdk {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double DeltaX {
|
||||||
|
get { return Native.delta_x; }
|
||||||
|
set {
|
||||||
|
NativeStruct native = Native;
|
||||||
|
native.delta_x = value;
|
||||||
|
Marshal.StructureToPtr (native, Handle, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public double Y {
|
public double Y {
|
||||||
get { return Native.y; }
|
get { return Native.y; }
|
||||||
set {
|
set {
|
||||||
|
@ -118,6 +129,15 @@ namespace Gdk {
|
||||||
Marshal.StructureToPtr (native, Handle, false);
|
Marshal.StructureToPtr (native, Handle, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double DeltaY {
|
||||||
|
get { return Native.delta_y; }
|
||||||
|
set {
|
||||||
|
NativeStruct native = Native;
|
||||||
|
native.delta_y = value;
|
||||||
|
Marshal.StructureToPtr (native, Handle, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue