From 9e792dcef900de7039cd277459c0629abfab9f21 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 4 May 2010 06:35:37 +0200 Subject: NEWT Fixes: - Common native in NewtCommon.c/.h - Add simple NEWTEventFiFo, providing a pattern to spool events by an EventListener and to process them where it impacts (GLEventListener ..) - Window [X11|Windows]: setSize/setPosition: - always store the values, - only act if valid and !fullscreen - Window [X11]: - Add requestFocus - Add setTitle - Fix parent/child window creation - Fix parent/child window fullscreen (reparenting) - JUnit Test: ParentTest: - Shows parent and client window animation - Client window shall be able to go into fullscreen, ie disconnect/reconnect from its parent. Test: Focus-client + type-'f' - Both windows receive/dispatch events properly --- src/newt/native/NewtCommon.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/newt/native/NewtCommon.h (limited to 'src/newt/native/NewtCommon.h') diff --git a/src/newt/native/NewtCommon.h b/src/newt/native/NewtCommon.h new file mode 100644 index 000000000..46a0d57cf --- /dev/null +++ b/src/newt/native/NewtCommon.h @@ -0,0 +1,10 @@ + +#ifndef NEWT_COMMON_H +#define NEWT_COMMON_H 1 + +#include +#include + +jchar* NewtCommon_GetNullTerminatedStringChars(JNIEnv* env, jstring str); + +#endif -- cgit v1.2.3