frame.h 1.4 KB

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