|
C-Menu 0.2.9
A User Interface Toolkit
|
#include <cm.h>
Data Fields | |
| cchar_t | cmplx_buf [MAXLEN] |
| ChyronKey * | key [CHYRON_KEYS] |
| int | l |
| char | s [MAXLEN] |
The Chyron structure represents a key binding for a command in the chyron, which is a status line or message area in the terminal interface. The ChyronKey structure includes fields for displayable text, the key code, and the end position of the command text in the chyron. This structure allows xwgetch to map mouse clicks to key codes as defined by NCursesw and the C-Menu program. The text field holds the displayable text associated with the command. xwgetch() translates a mouse click on the chyron with a particular key code stored in this table. The use case is when the developer wants a dynamic chyron that can be easily changed depending on the context of the program without having to worry about translating mouse click positions to key codes. While many key codes are defined by NCursesw, the developer is free to define their own key codes for custom commands in the chyron. However, xwgetch() will translate mouse clicks to the key codes defined in this table, even if they interfere with standard NCurses key codes, Unicode code points, or ASCII characters. Just use common sense. In addition to returning the key code associated with mouse clicks on the chyron, xwgetch() also returns the key codes for standard keyboard input, and sets the global variables cliek_y and click_x to the coordinates of the mouse click.
| cchar_t Chyron::cmplx_buf[MAXLEN] |
the chyron wide character string
Definition at line 279 of file cm.h.
Referenced by compile_chyron(), and display_chyron().
| ChyronKey* Chyron::key[CHYRON_KEYS] |
array of key bindings for the chyron
Definition at line 277 of file cm.h.
Referenced by compile_chyron(), destroy_chyron(), get_chyron_key(), is_set_chyron_key(), new_chyron(), set_chyron_key(), set_chyron_key_cp(), and unset_chyron_key().
| int Chyron::l |
length of the chyron string, for display purposes
Definition at line 280 of file cm.h.
Referenced by action_disposition(), answer_yn(), compile_chyron(), display_error(), field_editor(), form_engine(), form_post(), form_process(), Perror(), pick_engine(), picker(), wait_continue(), and wait_mk_win().
| char Chyron::s[MAXLEN] |
the chyron string, for displaying messages in
Definition at line 278 of file cm.h.
Referenced by pick_engine().