diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-12 20:52:30 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-12 20:52:30 +0200 |
commit | 51a74dc9c66b76dff795a9da3874602f3f0f0285 (patch) | |
tree | f7e5aed92bca8017027cf42bd38fdd298254b2e0 /src/win32.h | |
parent | 73c8166d5c8b397c166ee9ece0173f2b278b6ddb (diff) |
Windows: Custom frame behavior
A borderless SDL window gets no standard window behavior, so
this commit implements support for some of them. There is
special handling for the window frame and various snapping modes.
Not quite finished yet... It might make sense to research if
a custom window class could work with this app (with SDL); could be
less work.
Diffstat (limited to 'src/win32.h')
-rw-r--r-- | src/win32.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/win32.h b/src/win32.h index b5bc0b45..b988c302 100644 --- a/src/win32.h +++ b/src/win32.h | |||
@@ -21,8 +21,14 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |||
21 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ | 21 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ |
22 | 22 | ||
23 | #pragma once | 23 | #pragma once |
24 | |||
25 | #include <the_Foundation/defs.h> | ||
24 | #include <SDL_video.h> | 26 | #include <SDL_video.h> |
27 | #include <SDL_syswm.h> | ||
28 | |||
29 | iDeclareType(Window) | ||
25 | 30 | ||
26 | void setDPIAware_Win32(void); | 31 | void setDPIAware_Win32(void); |
27 | float desktopDPI_Win32(void); | 32 | float desktopDPI_Win32(void); |
28 | void useExecutableIconResource_SDLWindow(SDL_Window *win); | 33 | void useExecutableIconResource_SDLWindow(SDL_Window *win); |
34 | void processNativeEvent_Win32(const struct SDL_SysWMmsg *msg, iWindow *window); | ||