C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
Chyron Struct Reference

#include <cm.h>

Collaboration diagram for Chyron:
[legend]

Data Fields

ChyronKeykey [CHYRON_KEYS]
char s [MAXLEN]
cchar_t cmplx_buf [MAXLEN]
int l

Detailed Description

Note
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.

Note
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.

Definition at line 240 of file cm.h.

Field Documentation

◆ cmplx_buf

cchar_t Chyron::cmplx_buf[MAXLEN]

the chyron wide character string

Definition at line 243 of file cm.h.

Referenced by compile_chyron(), and display_chyron().

◆ key

ChyronKey* Chyron::key[CHYRON_KEYS]

array of key bindings for the chyron

Definition at line 241 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().

◆ l

int Chyron::l

◆ s

char Chyron::s[MAXLEN]

the chyron string, for displaying messages in

Definition at line 242 of file cm.h.

Referenced by pick_engine().


The documentation for this struct was generated from the following file: