ButtonBar

ButtonBarNew

Create a button bar for the last terminal row

Syntax

Signature
ButtonBar  *ButtonBarNew( void );

Return value

The new ButtonBar object. Release it with ButtonBarFree().

Description

Include xdev-wtui-classes.h. The bar starts empty, with no button highlighted. Display and hit testing use the current screen size. The bar spans the last row from column `0` through `MaxCol()`.

Create actions with `MenuItemNewB()` and add them with `ButtonBarAddItem()`. Draw the bar with `ButtonBarDisplay()` and pass input events to `ButtonBarApplyKey()` from the application's event loop.

See also