|
C-Menu 0.2.9
A User Interface Toolkit
|
Initialize C-Menu View Screen IO and Input. More...
#include <common.h>#include <errno.h>#include <fcntl.h>#include <stddef.h>#include <stdlib.h>#include <string.h>#include <sys/mman.h>#include <sys/stat.h>#include <sys/sysmacros.h>#include <unistd.h>#include <wait.h>Go to the source code of this file.
Functions | |
| int | init_view_boxwin (Init *init) |
| Initialize the C-Menu View in box window mode. | |
| int | init_view_full_screen (Init *init) |
| Initialize C-Menu View in full screen mode. | |
| void | view_boxwin_resize (Init *init) |
| Resize the current window and its box. | |
| void | view_calc_boxwin_dimensions (Init *init) |
| Calculate the dimensions and position of the box window for C-Menu View. | |
| void | view_calc_full_screen_dimensions (Init *init) |
| Calculate the dimensions for full screen mode. | |
| void | view_full_screen_resize (Init *init) |
| Resize the full screen view and its components. | |
| int | view_init_input (Init *init, char *file_name) |
| Initialize the input for the C-Menu View. | |
Variables | |
| ViewStack | view_stack |
| void view_boxwin_resize | ( | Init * | init | ) |
Resize the current window and its box.
| init | Pointer to the Init structure containing view settings. |
This function resizes the current window and its associated box window to the specified number of lines and columns.
Definition at line 198 of file init_view.c.
References init_view_boxwin(), View::sfc, View::title, ui_border_title(), ui_render(), ui_surface_destroy(), and Init::view.
Referenced by view_cmd_processor().
| void view_full_screen_resize | ( | Init * | init | ) |
Resize the full screen view and its components.
| init | Pointer to the Init structure containing view settings. |
This function resizes the full screen view and its components, including the command line window, line number window, and main content pad. It also recalculates the dimensions for the full screen mode and updates the scroll regions accordingly.
Definition at line 111 of file init_view.c.
References View::cols, init_view_full_screen(), View::lines, View::ln_win_cols, View::ln_win_lines, View::scroll_lines, View::sfc, ui_erase(), ui_render(), ui_surface_destroy(), Init::view, and view_calc_full_screen_dimensions().
Referenced by view_cmd_processor().
| ViewStack view_stack |
Definition at line 32 of file init_view.c.