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

UiCell cmplx_buf [MAXLEN]
ChyronKeykey [CHYRON_KEYS]
uint l
char s [MAXLEN]
UiSurfacesfc
uint win
uint y

Detailed Description

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.

Definition at line 386 of file cm.h.

Field Documentation

◆ cmplx_buf

UiCell Chyron::cmplx_buf[MAXLEN]

the chyron wide character string

Definition at line 389 of file cm.h.

Referenced by compile_chyron(), and display_chyron().

◆ key

◆ l

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().

◆ s

char Chyron::s[MAXLEN]

the chyron string, for displaying messages in

Definition at line 388 of file cm.h.

◆ sfc

UiSurface* Chyron::sfc

Definition at line 392 of file cm.h.

Referenced by assign_chyron_win().

◆ 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().

◆ y

uint Chyron::y

index to window of surface

Definition at line 394 of file cm.h.

Referenced by assign_chyron_win(), and picker().


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