Merge branch '4549_subshell_execl_argv0'
[midnight-commander.git] / lib / widget / frame.h
blob83e314e6662af25a827358b57e16863bf55ae8d9
2 /** \file frame.h
3 * \brief Header: WFrame widget
4 */
6 #ifndef MC__WIDGET_FRAME_H
7 #define MC__WIDGET_FRAME_H
9 /*** typedefs(not structures) and defined constants **********************************************/
11 #define FRAME(x) ((WFrame *)(x))
12 #define CONST_FRAME(x) ((const WFrame *)(x))
14 #define FRAME_COLOR_NORMAL DLG_COLOR_NORMAL
15 #define FRAME_COLOR_TITLE DLG_COLOR_TITLE
17 /*** enums ***************************************************************************************/
19 /*** typedefs(not structures) ********************************************************************/
21 /*** structures declarations (and typedefs of structures)*****************************************/
23 typedef struct
25 Widget widget;
27 char *title;
28 gboolean single;
29 gboolean compact;
30 } WFrame;
32 /*** global variables defined in .c file *********************************************************/
34 /*** declarations of public functions ************************************************************/
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);
41 /*** inline functions ****************************************************************************/
43 #endif /* MC__WIDGET_FRAME_H */