|
C-Menu 0.2.9
A User Interface Toolkit
|
#include <cm.h>
Data Fields | |
| UiCell | cmplx_buf [MAXLEN] |
| ChyronKey * | key [CHYRON_KEYS] |
| uint | l |
| char | s [MAXLEN] |
| UiSurface * | sfc |
| uint | win |
| uint | y |
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.
the chyron wide character string
Definition at line 389 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 387 of file cm.h.
Referenced by activate_all_chyron_keys(), activate_chyron_key(), compile_chyron(), deactivate_all_chyron_keys(), deactivate_chyron_key(), destroy_chyron(), form_engine(), form_post(), form_process(), get_chyron_key(), is_set_chyron_key(), new_chyron(), pick_engine(), pick_std_chyron(), picker(), set_chyron_key(), set_chyron_key_cb(), and unset_chyron_key().
| uint Chyron::l |
length of the chyron string, for display
Definition at line 391 of file cm.h.
Referenced by answer_yn(), compile_chyron(), display_error(), field_editor(), form_engine(), form_post(), form_process(), Perror(), pick_engine(), and picker().
| char Chyron::s[MAXLEN] |
| UiSurface* Chyron::sfc |
Definition at line 392 of file cm.h.
Referenced by assign_chyron_win().
| uint Chyron::win |
pointer to surface for the chyron
Definition at line 393 of file cm.h.
Referenced by assign_chyron_win(), and picker().
| uint Chyron::y |
index to window of surface
Definition at line 394 of file cm.h.
Referenced by assign_chyron_win(), and picker().