diff options
| author | Po Lu | 2023-10-10 13:11:14 +0800 |
|---|---|---|
| committer | Po Lu | 2023-10-10 13:11:14 +0800 |
| commit | 336c3674119f61bd78a056476769ce83b97230bb (patch) | |
| tree | 0af3b8f39dabdf71849c30fe0bf67952305b9319 /src/androidgui.h | |
| parent | 238292d6571402e93d4f7886baac9853011b36f6 (diff) | |
| download | emacs-336c3674119f61bd78a056476769ce83b97230bb.tar.gz emacs-336c3674119f61bd78a056476769ce83b97230bb.zip | |
Implement frame restacking under Android
* java/org/gnu/emacs/EmacsActivity.java (invalidateFocus1):
Synchronize with window.children for iteration through it.
* java/org/gnu/emacs/EmacsService.java (queryTree): Synchronize
with windowList for iteration through it.
* java/org/gnu/emacs/EmacsView.java (moveChildToBack): Correct
formatting mistake.
(moveAbove, moveBelow): New functions.
* java/org/gnu/emacs/EmacsWindow.java (destroyHandle, reparentTo)
(raise, lower): Remedy synchronization blunders.
(reconfigure): New function.
* src/android.c (android_init_emacs_window): Link with
`reconfigure'.
(android_reconfigure_wm_window): New wrapper function.
* src/androidfns.c (android_frame_restack): New function.
(Fandroid_frame_restack): Properly implement this function and
expunge outdated comment.
* src/androidgui.h (enum android_stack_mode)
(enum android_window_changes): New enumerators.
Diffstat (limited to 'src/androidgui.h')
| -rw-r--r-- | src/androidgui.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/androidgui.h b/src/androidgui.h index 936706b092e..b58c39a5276 100644 --- a/src/androidgui.h +++ b/src/androidgui.h | |||
| @@ -564,6 +564,24 @@ enum android_ic_mode | |||
| 564 | ANDROID_IC_MODE_TEXT = 2, | 564 | ANDROID_IC_MODE_TEXT = 2, |
| 565 | }; | 565 | }; |
| 566 | 566 | ||
| 567 | enum android_stack_mode | ||
| 568 | { | ||
| 569 | ANDROID_ABOVE = 0, | ||
| 570 | ANDROID_BELOW = 1, | ||
| 571 | }; | ||
| 572 | |||
| 573 | enum android_wc_value_mask | ||
| 574 | { | ||
| 575 | ANDROID_CW_SIBLING = 0, | ||
| 576 | ANDROID_CW_STACK_MODE = 1, | ||
| 577 | }; | ||
| 578 | |||
| 579 | struct android_window_changes | ||
| 580 | { | ||
| 581 | android_window sibling; | ||
| 582 | enum android_stack_mode stack_mode; | ||
| 583 | }; | ||
| 584 | |||
| 567 | extern int android_pending (void); | 585 | extern int android_pending (void); |
| 568 | extern void android_next_event (union android_event *); | 586 | extern void android_next_event (union android_event *); |
| 569 | extern bool android_check_if_event (union android_event *, | 587 | extern bool android_check_if_event (union android_event *, |
| @@ -643,6 +661,9 @@ extern void android_bell (void); | |||
| 643 | extern void android_set_input_focus (android_window, unsigned long); | 661 | extern void android_set_input_focus (android_window, unsigned long); |
| 644 | extern void android_raise_window (android_window); | 662 | extern void android_raise_window (android_window); |
| 645 | extern void android_lower_window (android_window); | 663 | extern void android_lower_window (android_window); |
| 664 | extern void android_reconfigure_wm_window (android_window, | ||
| 665 | enum android_wc_value_mask, | ||
| 666 | struct android_window_changes *); | ||
| 646 | extern int android_query_tree (android_window, android_window *, | 667 | extern int android_query_tree (android_window, android_window *, |
| 647 | android_window *, android_window **, | 668 | android_window *, android_window **, |
| 648 | unsigned int *); | 669 | unsigned int *); |