1 
2 /** \file frame.h
3  *  \brief Header: WFrame widget
4  */
5 
6 #ifndef MC__WIDGET_FRAME_H
7 #define MC__WIDGET_FRAME_H
8 
9 /*** typedefs(not structures) and defined constants **********************************************/
10 
11 #define FRAME(x) ((WFrame *)(x))
12 #define CONST_FRAME(x) ((const WFrame *)(x))
13 
14 #define FRAME_COLOR_NORMAL DLG_COLOR_NORMAL
15 #define FRAME_COLOR_TITLE DLG_COLOR_TITLE
16 
17 /*** enums ***************************************************************************************/
18 
19 /*** typedefs(not structures) ********************************************************************/
20 
21 /*** structures declarations (and typedefs of structures)*****************************************/
22 
23 typedef struct
24 {
25     Widget widget;
26 
27     char *title;
28     gboolean single;
29     gboolean compact;
30 } WFrame;
31 
32 /*** global variables defined in .c file *********************************************************/
33 
34 /*** declarations of public functions ************************************************************/
35 
36 WFrame *frame_new (int y, int x, int lines, int cols, const char *title, gboolean single,
37                    gboolean compact);
38 cb_ret_t frame_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data);
39 void frame_set_title (WFrame * f, const char *title);
40 
41 /*** inline functions ****************************************************************************/
42 
43 #endif /* MC__WIDGET_FRAME_H */
44