From 88b4af2eef0f89b46980cc1bbba77955f445d6b9 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 26 Jul 2014 22:23:46 +0100 Subject: Add support for resizable surfaces and implement it for SDL surface. --- include/libnsfb_event.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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; }; -- cgit v1.2.3