@@ -18,7 +18,7 @@ namespace GLFW
18
18
/// <param name="width">The new width, in screen coordinates, of the window.</param>
19
19
/// <param name="height">The new height, in screen coordinates, of the window.</param>
20
20
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
21
- public delegate void SizeCallback ( IntPtr window , int width , int height ) ;
21
+ public delegate void SizeCallback ( Window window , int width , int height ) ;
22
22
23
23
/// <summary>
24
24
/// This is the function signature for cursor position callback functions.
@@ -27,22 +27,22 @@ namespace GLFW
27
27
/// <param name="x">The new cursor x-coordinate, relative to the left edge of the client area.</param>
28
28
/// <param name="y">The new cursor y-coordinate, relative to the left edge of the client area.</param>
29
29
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
30
- public delegate void PositionCallback ( IntPtr window , double x , double y ) ;
30
+ public delegate void PositionCallback ( Window window , double x , double y ) ;
31
31
32
32
/// <summary>
33
33
/// This is the function signature for window focus callback functions.
34
34
/// </summary>
35
35
/// <param name="window">The window handle.</param>
36
36
/// <param name="focusing"><c>true</c> if window is gaining focus; otherise <c>false</c>.</param>
37
37
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
38
- public delegate void FocusCallback ( IntPtr window , bool focusing ) ;
38
+ public delegate void FocusCallback ( Window window , bool focusing ) ;
39
39
40
40
/// <summary>
41
41
/// Generic signature for window callbacks.
42
42
/// </summary>
43
43
/// <param name="window">The window handle.</param>
44
44
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
45
- public delegate void WindowCallback ( IntPtr window ) ;
45
+ public delegate void WindowCallback ( Window window ) ;
46
46
47
47
/// <summary>
48
48
/// This is the function signature for file drop callbacks.
@@ -51,7 +51,7 @@ namespace GLFW
51
51
/// <param name="count">The number of dropped files.</param>
52
52
/// <param name="arrayPtr">Pointer to an array UTF-8 encoded file and/or directory path name pointers.</param>
53
53
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
54
- public delegate void FileDropCallback ( IntPtr window , int count , IntPtr arrayPtr ) ;
54
+ public delegate void FileDropCallback ( Window window , int count , IntPtr arrayPtr ) ;
55
55
56
56
/// <summary>
57
57
/// This is the function signature for cursor position callback functions.
@@ -60,15 +60,15 @@ namespace GLFW
60
60
/// <param name="x">The new cursor x-coordinate, relative to the left edge of the client area.</param>
61
61
/// <param name="y">The new cursor y-coordinate, relative to the left edge of the client area.</param>
62
62
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
63
- public delegate void MouseCallback ( IntPtr window , double x , double y ) ;
63
+ public delegate void MouseCallback ( Window window , double x , double y ) ;
64
64
65
65
/// <summary>
66
66
/// This is the function signature for cursor enter/leave callback functions.
67
67
/// </summary>
68
68
/// <param name="window">The window handle.</param>
69
69
/// <param name="entering"><c>true</c> if cursor is entering the window client area; otherwise <c>false</c>.</param>
70
70
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
71
- public delegate void MouseEnterCallback ( IntPtr window , bool entering ) ;
71
+ public delegate void MouseEnterCallback ( Window window , bool entering ) ;
72
72
73
73
/// <summary>
74
74
/// This is the function signature for mouse button callback functions.
@@ -78,7 +78,7 @@ namespace GLFW
78
78
/// <param name="state">The state.</param>
79
79
/// <param name="modifiers">Flags describing which modifier keys were held down.</param>
80
80
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
81
- public delegate void MouseButtonCallback ( IntPtr window , MouseButton button , InputState state ,
81
+ public delegate void MouseButtonCallback ( Window window , MouseButton button , InputState state ,
82
82
ModifierKeys modifiers ) ;
83
83
84
84
/// <summary>
@@ -87,7 +87,7 @@ public delegate void MouseButtonCallback(IntPtr window, MouseButton button, Inpu
87
87
/// <param name="window">The window handle.</param>
88
88
/// <param name="codePoint">The Unicode code point of the character.</param>
89
89
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
90
- public delegate void CharCallback ( IntPtr window , uint codePoint ) ;
90
+ public delegate void CharCallback ( Window window , uint codePoint ) ;
91
91
92
92
/// <summary>
93
93
/// This is the function signature for Unicode character callback functions.
@@ -96,7 +96,7 @@ public delegate void MouseButtonCallback(IntPtr window, MouseButton button, Inpu
96
96
/// <param name="codePoint">The Unicode code point of the character.</param>
97
97
/// <param name="mods">Bit field describing which modifier keys were held down.</param>
98
98
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
99
- public delegate void CharModsCallback ( IntPtr window , uint codePoint , ModifierKeys mods ) ;
99
+ public delegate void CharModsCallback ( Window window , uint codePoint , ModifierKeys mods ) ;
100
100
101
101
/// <summary>
102
102
/// This is the function signature for keyboard key callback functions.
@@ -107,7 +107,7 @@ public delegate void MouseButtonCallback(IntPtr window, MouseButton button, Inpu
107
107
/// <param name="state">The state of the key.</param>
108
108
/// <param name="mods"> Bit field describing which modifier keys were held down.</param>
109
109
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
110
- public delegate void KeyCallback ( IntPtr window , Keys key , int scanCode , InputState state , ModifierKeys mods ) ;
110
+ public delegate void KeyCallback ( Window window , Keys key , int scanCode , InputState state , ModifierKeys mods ) ;
111
111
112
112
/// <summary>
113
113
/// This is the function signature for joystick configuration callback functions.
@@ -140,13 +140,13 @@ public delegate void MouseButtonCallback(IntPtr window, MouseButton button, Inpu
140
140
/// <param name="xScale">The new x-axis content scale of the window.</param>
141
141
/// <param name="yScale">The new y-axis content scale of the window.</param>
142
142
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
143
- public delegate void WindowContentsScaleCallback ( IntPtr window , float xScale , float yScale ) ;
143
+ public delegate void WindowContentsScaleCallback ( Window window , float xScale , float yScale ) ;
144
144
145
145
/// <summary>
146
146
/// This is the function signature for window maximize/restore callback functions.
147
147
/// </summary>
148
148
/// <param name="window">The window that was maximized or restored.</param>
149
149
/// <param name="maximized"><c>true</c> if the window was maximized, or <c>false</c> if it was restored.</param>
150
150
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
151
- public delegate void WindowMaximizedCallback ( IntPtr window , bool maximized ) ;
151
+ public delegate void WindowMaximizedCallback ( Window window , bool maximized ) ;
152
152
}
0 commit comments