gandi_touch(3) - Linux man page

Name

This manpage describes routines related to the drawing of a widget . Normally all these routines will be called automatically (I do a lot for this condition).

Synopsis

#include <gandi_core.h>

void GANDI_touchwidget(void *w);

void GANDI_touchwidget_a(void *w, bool a);

void GANDI_touchwidget_ar(void *w, bool a);

void GANDI_update();

Description

void GANDI_touchwidget(void *w);

Determines whether the widget w must be drawn with an active or inactive border and calls GANDI_touchwidget_a with corresponding parameters.

void GANDI_touchwidget_a(void *w, bool a);

Draws a border around the widget w. The a specifies whether the widget is active or inactive. In the former case global variables GANDI_actbord_pair and GANDI_actbord_attr will be used. Otherwise GANDI_inactbord_pair and GANDI_inactbord_attr are used. There is a color pair and a char attribute which will be applied to the widget's border window. The active widget will be placed on top.

void GANDI_touchwidget_ar(void *w, bool a);

Applies GANDI_touchwidget_a to all widget's ancestors recursively.

void GANDI_update();

Updates display with an update_panels(3CURSES) and doupdate(3NCURSES) sequence.

Notes

Just after GANDI_init (see gandi_init(3gandi)):

short GANDI_actbord_pair = 59;

attr_t GANDI_actbord_attr = WA_NORMAL;

short GANDI_inactbord_pair = 59;

attr_t GANDI_inactbord_attr = WA_BOLD;

See Also

gandi_core(3gandi) gandi_init(3gandi) panel(3CURSES) refresh(3NCURSES)