gandi_resize(3) - Linux man page

Name

Work on resize.

Synopsis

#include <gandi_core.h>

int GANDI_resize_panel(PANEL *p, int nlines, int ncols);

int GANDI_resize_widget(void *w, int nlines, int ncols);

int GANDI_resize_widget_border(void *w, int nlines, int ncols);

Description

All these functions use three arguments. The first is the object to be resized. The other two are the required size in the form (lines; columns).

int GANDI_resize_panel(PANEL *p, int nlines, int ncols);

Resizes panel. It is the same as wresize(3NCURSES) but works with a panel. See wresize(3NCURSES) for details.

int GANDI_resize_widget(void *w, int nlines, int ncols);

Resizes a GANDI_getwidget_resize_o(w) widget (see gandi_gandiw(3gandi)) and returns OK if there is no problem (including the case, where a widget is not resizable) or ERR otherwise.

nlines and ncols are the w widget's size! They will be changed apropriately if GANDI_getwidget_resize_o(w) assigns to the another widget (of another size).

For the first step here the border panel (see gandi_gandiw(3gandi)) is resized. Then if the handler on resizing is set (see gandi_acts(3gandi)), it is called.

int GANDI_resize_widget_border(void *w, int nlines, int ncols);

Does the same thing as GANDI_resize_widget but relates size to the border.

Notes

Widget considered unresizable if GANDI_getwidget_resize_o(w) returns NULL.

When you kill any widget be sure that this one is not refered to by resize_o (see gandi_gandiw(3gandi)) of any another widget.

See Also

gandi_acts(3gandi) gandi_core(3gandi) gandi_gandiw(3gandi) wresize(3NCURSES)