diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-07-26 22:23:46 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-07-26 22:23:46 +0100 |
commit | 88b4af2eef0f89b46980cc1bbba77955f445d6b9 (patch) | |
tree | 8a7ab553f472d47b00adf53b6daf50c1b7a37241 /include | |
parent | 7ebff5169afecd39fcc9161761d88e792b703d82 (diff) | |
download | libnsfb-88b4af2eef0f89b46980cc1bbba77955f445d6b9.tar.gz libnsfb-88b4af2eef0f89b46980cc1bbba77955f445d6b9.tar.bz2 |
Add support for resizable surfaces and implement it for SDL surface.
Diffstat (limited to 'include')
-rw-r--r-- | include/libnsfb_event.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libnsfb_event.h b/include/libnsfb_event.h index 6944654..f98b5ba 100644 --- a/include/libnsfb_event.h +++ b/include/libnsfb_event.h @@ -18,6 +18,7 @@ enum nsfb_event_type_e { NSFB_EVENT_KEY_UP, NSFB_EVENT_MOVE_RELATIVE, NSFB_EVENT_MOVE_ABSOLUTE, + NSFB_EVENT_RESIZE }; @@ -194,6 +195,10 @@ struct nsfb_event_s { int y; int z; } vector; + struct { + int w; /**< Width in pixels */ + int h; /**< Height in pixels */ + } resize; /**< Window resize event: NSFB_EVENT_RESIZE */ } value; }; |