SDL_WINDOWEVENT_NONE (没用过)
SDL_WINDOWEVENT_SHOWN 窗口已经显示
SDL_WINDOWEVENT_HIDDEN 窗口已被隐藏
SDL_WINDOWEVENT_EXPOSED 窗口已暴露,应重新绘制
SDL_WINDOWEVENT_MOVED 窗口已移至data1,data2
SDL_WINDOWEVENT_RESIZED 窗口已调整为data1xdata2;此事件之前总是SDL_WINDOWEVENT_SIZE_CHANGED
SDL_WINDOWEVENT_SIZE_CHANGED 窗口大小已更改,这是因为调用了API或通过系统或用户更改了窗口大小;如果外部事件(例如,用户或窗口管理器)更改了大小,则此事件后跟SDL_WINDOWEVENT_RESIZED
SDL_WINDOWEVENT_MINIMIZED 窗口已最小化
SDL_WINDOWEVENT_MAXIMIZED 窗口已最大化
SDL_WINDOWEVENT_RESTORED 窗口已恢复到正常大小和位置
SDL_WINDOWEVENT_ENTER 窗口已获得鼠标焦点
SDL_WINDOWEVENT_LEAVE 窗口失去了鼠标焦点
SDL_WINDOWEVENT_FOCUS_GAINED 窗口已获得键盘焦点
SDL_WINDOWEVENT_FOCUS_LOST 窗口失去了键盘焦点
SDL_WINDOWEVENT_CLOSE 窗口管理器要求关闭窗口
SDL_WINDOWEVENT_TAKE_FOCUS 提供窗口焦点(应该SDL_SetWindowInputFocus()本身还是子窗口,或者忽略)(> = SDL 2.0.5)
SDL_WINDOWEVENT_HIT_TEST 窗口的点击测试不是SDL_HITTEST_NORMAL(> = SDL 2.0.5)

发表评论

邮箱地址不会被公开。 必填项已用*标注