Definition
Panels are windows consisting of a panel section only (cf. section Windows). They are used for displaying text messages and updating the values of variables.
#include < LEDA/panel.h >
Creation
panel | P | creates an empty panel P. |
panel | P(string s) | creates an empty panel P with header s. |
panel | P(int w, int h) | creates an empty panel P of width w and height h. |
panel | P(int w, int h, string s) | creates an empty panel P of width w and height h with header s. |
Operations
All window operations for displaying, reading, closing and adding panel items are available (see section panel-operations). There are two additional operations for opening and reading panels.
int | P.open(int x = window::center, int y = window::center) | |
P.display(x,y) + P.read_mouse() + P.close(). | ||
int | P.open(window& W, int x=window::center, int y=window::center) | |
P.display(W,x,y) + P.read_mouse() + P.close(). |