| 1 |
|
| 2 |
#ifndef _CDEBCONF_NEWT_H_ |
| 3 |
#define _CDEBCONF_NEWT_H_ |
| 4 |
|
| 5 |
/* Horizontal offset between buttons and text box */ |
| 6 |
#define TEXT_PADDING 1 |
| 7 |
/* Horizontal offset between text box and borders */ |
| 8 |
#define BUTTON_PADDING 4 |
| 9 |
|
| 10 |
/* Most plugins won't need to call this, but cdebconf-newt-terminal does. */ |
| 11 |
void cdebconf_newt_setup(void); |
| 12 |
|
| 13 |
/* Hack for the benefit of cdebconf-newt-terminal; progress_info isn't in |
| 14 |
* the main frontend struct and won't fit in the obvious place without |
| 15 |
* breaking the plugin ABI. Always duplicates the info string. |
| 16 |
*/ |
| 17 |
struct question *cdebconf_newt_get_progress_info(struct frontend *obj); |
| 18 |
|
| 19 |
newtComponent cdebconf_newt_create_form(newtComponent scrollbar); |
| 20 |
|
| 21 |
void cdebconf_newt_create_window(const int width, const int height, const char *title, const char *priority); |
| 22 |
|
| 23 |
int |
| 24 |
cdebconf_newt_get_text_height(const char *text, int win_width); |
| 25 |
|
| 26 |
int |
| 27 |
cdebconf_newt_get_text_width(const char *text); |
| 28 |
|
| 29 |
#endif /* _CDEBCONF_NEWT_H_ */ |