diff options
| author | Po Lu | 2023-01-16 19:50:02 +0800 |
|---|---|---|
| committer | Po Lu | 2023-01-16 19:50:02 +0800 |
| commit | ad59d8986aee4498c0427449e024341d1a195a2d (patch) | |
| tree | da8ee046484e48cd991cb484ecc960a7432c91de /src/androidgui.h | |
| parent | da9ae10636b84b88e9eb9c827b03cdaabd1611d1 (diff) | |
| download | emacs-ad59d8986aee4498c0427449e024341d1a195a2d.tar.gz emacs-ad59d8986aee4498c0427449e024341d1a195a2d.zip | |
Update Android port
* doc/emacs/android.texi (Android, Android Environment): Improve
documentation.
* doc/lispref/commands.texi (Touchscreen Events): Document
changes to touchscreen support.
* doc/lispref/display.texi (Defining Faces, Window Systems):
* doc/lispref/frames.texi (Frame Layout, Font and Color
Parameters):
* doc/lispref/os.texi (System Environment): Document Android in
various places.
* java/org/gnu/emacs/EmacsWindow.java (figureChange): Fix crash.
* lisp/loadup.el: ("touch-screen"): Load touch-screen.el.
* lisp/pixel-scroll.el: Autoload two functions.
* lisp/term/android-win.el: Add require 'touch-screen.
* lisp/touch-screen.el (touch-screen-current-tool)
(touch-screen-current-timer, touch-screen-delay)
(touch-screen-relative-xy, touch-screen-handle-scroll)
(touch-screen-handle-timeout, touch-screen-handle-point-update)
(touch-screen-handle-point-up, touch-screen-handle-touch)
(global-map, touch-screen): New file.
* src/android.c (android_run_debug_thread): Fix build on 64 bit
systems.
(JNICALL, android_put_pixel): Likewise.
(android_transform_coordinates, android_four_corners_bilinear)
(android_fetch_pixel_bilinear, android_project_image_bilinear)
(android_fetch_pixel_nearest_24, android_fetch_pixel_nearest_1)
(android_project_image_nearest): New functions.
* src/androidgui.h (struct android_transform): New structure.
* src/androidterm.c (android_note_mouse_movement): Remove
obsolete TODO.
(android_get_scale_factor): New function.
(android_draw_underwave): Scale underwave correctly.
* src/dispextern.h: Support native image transforms on Android.
* src/image.c (matrix_identity, matrix_rotate)
(matrix_mirror_horizontal, matrix_translate): New functions.
(image_set_transform): Implement native image transforms on
Android.
(Fimage_transforms_p): Implement on Android.
* src/keyboard.c (make_lispy_event, syms_of_keyboard): Handle
touch screen- menu bar events.
* src/sfnt.c: Fix typo in comment.
* src/sfntfont-android.c (sfntfont_android_blend, U255TO256)
(sfntfont_android_put_glyphs): Avoid redundant swizzling.
* src/sfntfont.c (sfntfont_lookup_char): Fix build on 64 bit
systems.
Diffstat (limited to 'src/androidgui.h')
| -rw-r--r-- | src/androidgui.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/androidgui.h b/src/androidgui.h index 9df5b073a7c..1f28c18ff34 100644 --- a/src/androidgui.h +++ b/src/androidgui.h | |||
| @@ -542,6 +542,25 @@ extern struct android_image *android_get_image (android_drawable, | |||
| 542 | enum android_image_format); | 542 | enum android_image_format); |
| 543 | extern void android_put_image (android_pixmap, struct android_image *); | 543 | extern void android_put_image (android_pixmap, struct android_image *); |
| 544 | 544 | ||
| 545 | |||
| 546 | /* Native image transforms. */ | ||
| 547 | |||
| 548 | /* 3x2 matrix describing a projective transform. See | ||
| 549 | android_transform_coordinates for details. */ | ||
| 550 | |||
| 551 | struct android_transform | ||
| 552 | { | ||
| 553 | float m1, m2, m3; | ||
| 554 | float m4, m5, m6; | ||
| 555 | }; | ||
| 556 | |||
| 557 | extern void android_project_image_bilinear (struct android_image *, | ||
| 558 | struct android_image *, | ||
| 559 | struct android_transform *); | ||
| 560 | extern void android_project_image_nearest (struct android_image *, | ||
| 561 | struct android_image *, | ||
| 562 | struct android_transform *); | ||
| 563 | |||
| 545 | 564 | ||
| 546 | 565 | ||
| 547 | /* X emulation stuff also needed while building stubs. */ | 566 | /* X emulation stuff also needed while building stubs. */ |