You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdlvideo.inc
+22-21Lines changed: 22 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -275,32 +275,33 @@ const
275
275
{**
276
276
* Event subtype for window events
277
277
*}
278
-
279
-
SDL_WINDOWEVENT_NONE = 0; {**< Never used *}
280
-
SDL_WINDOWEVENT_SHOWN = 1; {**< Window has been shown *}
281
-
SDL_WINDOWEVENT_HIDDEN = 2; {**< Window has been hidden *}
282
-
SDL_WINDOWEVENT_EXPOSED = 3; {**< Window has been exposed and should be redrawn *}
283
-
SDL_WINDOWEVENT_MOVED = 4; {**< Window has been moved to data1; data2 *}
284
-
SDL_WINDOWEVENT_RESIZED = 5; {**< Window has been resized to data1xdata2 *}
285
-
SDL_WINDOWEVENT_SIZE_CHANGED = 6; {**< The window size has changed; either as a result of an API call or through the system or user changing the window size. *}
286
-
SDL_WINDOWEVENT_MINIMIZED = 7; {**< Window has been minimized *}
287
-
SDL_WINDOWEVENT_MAXIMIZED = 8; {**< Window has been maximized *}
288
-
SDL_WINDOWEVENT_RESTORED = 9; {**< Window has been restored to normal size and position *}
289
-
SDL_WINDOWEVENT_ENTER = 10; {**< Window has gained mouse focus *}
290
-
SDL_WINDOWEVENT_LEAVE = 11; {**< Window has lost mouse focus *}
291
-
SDL_WINDOWEVENT_FOCUS_GAINED = 12; {**< Window has gained keyboard focus *}
292
-
SDL_WINDOWEVENT_FOCUS_LOST = 13; {**< Window has lost keyboard focus *}
293
-
SDL_WINDOWEVENT_CLOSE = 14; {**< The window manager requests that the window be closed *}
294
-
SDL_WINDOWEVENT_TAKE_FOCUS = 15; {**< Window is being offered a focus (should SetWindowInputFocus() on itself or a subwindow, or ignore) *}
295
-
SDL_WINDOWEVENT_HIT_TEST = 16; {**< Window had a hit test that wasn't SDL_HITTEST_NORMAL. *}
296
-
297
278
type
298
-
TSDL_WindowEventID = DWord;
279
+
PSDL_WindowEventID = ^TSDL_WindowEventID;
280
+
TSDL_WindowEventID = type DWord;
281
+
const
282
+
SDL_WINDOWEVENT_NONE = TSDL_WindowEventID(0); {**< Never used *}
283
+
SDL_WINDOWEVENT_SHOWN = TSDL_WindowEventID(1); {**< Window has been shown *}
284
+
SDL_WINDOWEVENT_HIDDEN = TSDL_WindowEventID(2); {**< Window has been hidden *}
285
+
SDL_WINDOWEVENT_EXPOSED = TSDL_WindowEventID(3); {**< Window has been exposed and should be redrawn *}
286
+
SDL_WINDOWEVENT_MOVED = TSDL_WindowEventID(4); {**< Window has been moved to data1; data2 *}
287
+
SDL_WINDOWEVENT_RESIZED = TSDL_WindowEventID(5); {**< Window has been resized to data1xdata2 *}
288
+
SDL_WINDOWEVENT_SIZE_CHANGED = TSDL_WindowEventID(6); {**< The window size has changed; either as a result of an API call or through the system or user changing the window size. *}
289
+
SDL_WINDOWEVENT_MINIMIZED = TSDL_WindowEventID(7); {**< Window has been minimized *}
290
+
SDL_WINDOWEVENT_MAXIMIZED = TSDL_WindowEventID(8); {**< Window has been maximized *}
291
+
SDL_WINDOWEVENT_RESTORED = TSDL_WindowEventID(9); {**< Window has been restored to normal size and position *}
292
+
SDL_WINDOWEVENT_ENTER = TSDL_WindowEventID(10); {**< Window has gained mouse focus *}
293
+
SDL_WINDOWEVENT_LEAVE = TSDL_WindowEventID(11); {**< Window has lost mouse focus *}
294
+
SDL_WINDOWEVENT_FOCUS_GAINED = TSDL_WindowEventID(12); {**< Window has gained keyboard focus *}
295
+
SDL_WINDOWEVENT_FOCUS_LOST = TSDL_WindowEventID(13); {**< Window has lost keyboard focus *}
296
+
SDL_WINDOWEVENT_CLOSE = TSDL_WindowEventID(14); {**< The window manager requests that the window be closed *}
297
+
SDL_WINDOWEVENT_TAKE_FOCUS = TSDL_WindowEventID(15); {**< Window is being offered a focus (should SetWindowInputFocus() on itself or a subwindow, or ignore) *}
298
+
SDL_WINDOWEVENT_HIT_TEST = TSDL_WindowEventID(16); {**< Window had a hit test that wasn't SDL_HITTEST_NORMAL. *}
0 commit comments