summaryrefslogtreecommitdiff
path: root/src/drivers/Android/Fl_Android_Screen_Driver.H
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2018-03-27 21:54:04 +0000
committerMatthias Melcher <fltk@matthiasm.com>2018-03-27 21:54:04 +0000
commit29bda776bb78352b331771bd1169de31e4edc1be (patch)
tree1ccec25bea5f7610ee911b0e5fd71a8757ee5a22 /src/drivers/Android/Fl_Android_Screen_Driver.H
parente52b55c09daa15566e60bab7b8fd46afeb063564 (diff)
Android: Implemented Pixmap drawing, also much cleanup in Fl_Android_Graphics_Driver.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12810 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Android/Fl_Android_Screen_Driver.H')
-rw-r--r--src/drivers/Android/Fl_Android_Screen_Driver.H31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/drivers/Android/Fl_Android_Screen_Driver.H b/src/drivers/Android/Fl_Android_Screen_Driver.H
index 4154bf64d..4105bd731 100644
--- a/src/drivers/Android/Fl_Android_Screen_Driver.H
+++ b/src/drivers/Android/Fl_Android_Screen_Driver.H
@@ -38,6 +38,37 @@ class Fl_Window;
class FL_EXPORT Fl_Android_Screen_Driver : public Fl_Screen_Driver
{
+
+#if 0
+ // No, this is not how we will implement this.
+ enum {
+ /// request attribute for a specific screen; default to screen 0
+ INDEX = 0x0001, // add an integer in the vararg list
+ /// allow or lock screen rotation
+ ROTATION_MASK = 0x0006, ROTATION_KEEP = 0x0000,
+ MAY_ROTATE = 0x0006, LOCK_TO_PORTRAIT = 0x0002, LOCK_TO_LANDSCAPE = 0x0004,
+ /// screen size
+ SIZE_MASK = 0x0038, SIZE_KEEP = 0x0000,
+ NATIVE_SIZE = 0x0008, // keep the full native screen size
+ FIRST_WINDOW = 0x0010, // adapt the screen to the size of the first window
+ ALL_WINDOWS = 0x0018, // adapt the screen to show all windows
+ FIXED_DIAGONAL = 0x0020, // keep aspect ration at 1:1, add an int for the length of the diagonal
+ // fixed size override the previous flags for portrait and/or landscape
+ FIXED_PORTRAIT_SIZE = 0x0040, // add two int width and height
+ NO_FIXED_PORTRAIT_SIZE = 0x80000040, // release fixed portrait size
+ FIXED_LANDSCAPE_SIZE = 0x0080, // add two int width and height
+ NO_FIXED_LANDSCAPE_SIZE = 0x80000080, // release fixed landscape size
+ // show or hide mobile device screen items
+ SHOW_STATUS_BAR = 0x0080, // top of the screen
+ HIDE_STATUS_BAR = 0x80000080, // top of the screen
+ SHOW_NAVIGATION_BAR = 0x0100, // bottom of the screen
+ HIDE_NAVIGATION_BAR = 0x0100, // bottom of the screen
+ };
+ /// request some attributes from a screen that may or may not be met
+ virtual hint(unsigned int flags, ...);
+#endif
+
+
private:
int handle_queued_events(double time_to_wait);
int handle_app_command();