summaryrefslogtreecommitdiff
path: root/src/win32.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-12 20:52:30 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-12 20:52:30 +0200
commit51a74dc9c66b76dff795a9da3874602f3f0f0285 (patch)
treef7e5aed92bca8017027cf42bd38fdd298254b2e0 /src/win32.h
parent73c8166d5c8b397c166ee9ece0173f2b278b6ddb (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.h6
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
21SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ 21SOFTWARE, 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
29iDeclareType(Window)
25 30
26void setDPIAware_Win32(void); 31void setDPIAware_Win32(void);
27float desktopDPI_Win32(void); 32float desktopDPI_Win32(void);
28void useExecutableIconResource_SDLWindow(SDL_Window *win); 33void useExecutableIconResource_SDLWindow(SDL_Window *win);
34void processNativeEvent_Win32(const struct SDL_SysWMmsg *msg, iWindow *window);