diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-01-23 01:33:47 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2022-01-23 18:12:47 +0100 |
| commit | 04ccc8cc46c45b81e6138bec0b48a188c4ffe406 (patch) | |
| tree | 3ad8604f5d433dc6b6c294c28549a58dd57efcbd /FL | |
| parent | b275ff07158e80d1744ddb2f6c51094a87cf079a (diff) | |
Remove experimental platforms Android, Pico, SDL (PR #376)
... as discussed in fltk.coredev: "FLTK 1.4.0 release schedule"
https://groups.google.com/g/fltkcoredev/c/PDbHTRpXVh0/m/JqboexZ_AwAJ
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/android.H | 159 | ||||
| -rw-r--r-- | FL/platform.H | 2 | ||||
| -rw-r--r-- | FL/platform_types.h | 22 |
3 files changed, 0 insertions, 183 deletions
diff --git a/FL/android.H b/FL/android.H deleted file mode 100644 index f1ad220e1..000000000 --- a/FL/android.H +++ /dev/null @@ -1,159 +0,0 @@ -// -// Template header file for the Fast Light Tool Kit (FLTK). -// -// Copyright 2016-2018 by Bill Spitzak and others. -// -// This library is free software. Distribution and use rights are outlined in -// the file "COPYING" which should have been included with this file. If this -// file is missing or damaged, see the license at: -// -// https://www.fltk.org/COPYING.php -// -// Please see the following page on how to report bugs and issues: -// -// https://www.fltk.org/bugs.php -// - -// Do not directly include this file, instead use <FL/android.H>. - -// These types and variables give access to internal, platform-specific data through the public API. -// They require to include platform.H (in contrast to types defined in platform_types.h) - -#if !defined(FL_PLATFORM_H) -# error "Never use <FL/android.H> directly; include <FL/platform.H> instead." -#endif // !FL_PLATFORM_H - - -#ifdef __cplusplus -extern "C" { -#endif - -/* - This is the function that application code must implement, representing - the main entry to the app. - */ -extern int main(int argc, char **argv); - -#ifdef __cplusplus -} -#endif - - - -typedef void *Window; // used by fl_find(), fl_xid() and class Fl_X - -/* Reference to the current device context - For back-compatibility only. The preferred procedure to get this reference is - Fl_Surface_Device::surface()->driver()->gc(). - */ -extern void *fl_gc; - -/** - These events are specific to the Android OS driver system. They can - be read by adding a callback via Fl::add_system_handler() and reading Fl::event() - Don't change the order of these enums! See Fl_Android_Application.H . - */ -enum Fl_Android_Platform_Event -{ - FL_ANDROID_EVENTS = 0x00010000, - - /** - * Command from main thread: the AInputQueue has changed. Upon processing - * this command, android_app->inputQueue will be updated to the new queue - * (or NULL). - */ - FL_ANDROID_EVENT_INPUT_CHANGED, - - /** - * Command from main thread: a new ANativeWindow is ready for use. Upon - * receiving this command, android_app->window will contain the new window - * surface. - */ - FL_ANDROID_EVENT_INIT_WINDOW, - - /** - * Command from main thread: the existing ANativeWindow needs to be - * terminated. Upon receiving this command, android_app->window still - * contains the existing window; after calling android_app_exec_cmd - * it will be set to NULL. - */ - FL_ANDROID_EVENT_TERM_WINDOW, - - /** - * Command from main thread: the current ANativeWindow has been resized. - * Please redraw with its new size. - */ - FL_ANDROID_EVENT_WINDOW_RESIZED, - - /** - * Command from main thread: the system needs that the current ANativeWindow - * be redrawn. You should redraw the window before handing this to - * android_app_exec_cmd() in order to avoid transient drawing glitches. - */ - FL_ANDROID_EVENT_WINDOW_REDRAW_NEEDED, - - /** - * Command from main thread: the content area of the window has changed, - * such as from the soft input window being shown or hidden. You can - * find the new content rect in android_app::contentRect. - */ - FL_ANDROID_EVENT_CONTENT_RECT_CHANGED, - - /** - * Command from main thread: the app's activity window has gained - * input focus. - */ - FL_ANDROID_EVENT_GAINED_FOCUS, - - /** - * Command from main thread: the app's activity window has lost - * input focus. - */ - FL_ANDROID_EVENT_LOST_FOCUS, - - /** - * Command from main thread: the current device configuration has changed. - */ - FL_ANDROID_EVENT_CONFIG_CHANGED, - - /** - * Command from main thread: the system is running low on memory. - * Try to reduce your memory use. - */ - FL_ANDROID_EVENT_LOW_MEMORY, - - /** - * Command from main thread: the app's activity has been started. - */ - FL_ANDROID_EVENT_START, - - /** - * Command from main thread: the app's activity has been resumed. - */ - FL_ANDROID_EVENT_RESUME, - - /** - * Command from main thread: the app should generate a new saved state - * for itself, to restore from later if needed. If you have saved state, - * allocate it with malloc and place it in android_app.savedState with - * the size in android_app.savedStateSize. The will be freed for you - * later. - */ - FL_ANDROID_EVENT_SAVE_STATE, - - /** - * Command from main thread: the app's activity has been paused. - */ - FL_ANDROID_EVENT_PAUSE, - - /** - * Command from main thread: the app's activity has been stopped. - */ - FL_ANDROID_EVENT_STOP, - - /** - * Command from main thread: the app's activity is being destroyed, - * and waiting for the app thread to clean up and exit before proceeding. - */ - FL_ANDROID_EVENT_DESTROY -}; diff --git a/FL/platform.H b/FL/platform.H index 80c13954f..4e068c2e0 100644 --- a/FL/platform.H +++ b/FL/platform.H @@ -37,8 +37,6 @@ class Fl_Window; # include "win32.H" # elif defined(__APPLE__) # include "mac.H" -# elif defined(__ANDROID__) -# include "android.H" # elif defined(FLTK_USE_X11) # include "x11.H" # endif // _WIN32 diff --git a/FL/platform_types.h b/FL/platform_types.h index cafeae0c4..51963d6e4 100644 --- a/FL/platform_types.h +++ b/FL/platform_types.h @@ -72,12 +72,6 @@ typedef opaque GLContext; /**< an OpenGL graphics context, into which all OpenGL typedef intptr_t fl_intptr_t; typedef uintptr_t fl_uintptr_t; -#elif defined(__ANDROID__) - -#include <sys/stat.h> -typedef intptr_t fl_intptr_t; -typedef uintptr_t fl_uintptr_t; - #else /* ! _WIN64 */ typedef long fl_intptr_t; @@ -122,22 +116,6 @@ typedef struct HGLRC__ *GLContext; struct dirent {char d_name[1];}; #endif -#elif defined(__ANDROID__) - -#ifdef __cplusplus -typedef class Fl_Rect_Region *Fl_Region; -#else -typedef struct Fl_Rect_Region *Fl_Region; -#endif - -// TODO: the types below have not yet been ported -typedef unsigned long Fl_Offscreen; -typedef unsigned long Fl_Bitmask; -typedef int FL_SOCKET; -typedef struct __GLXcontextRec *GLContext; -#include <sys/types.h> -#include <dirent.h> - #elif defined(FLTK_USE_X11) typedef unsigned long Fl_Offscreen; |
