root/lib/widget/background.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   1 
   2 /** \file background.h
   3  *  \brief Header: WBackground widget
   4  */
   5 
   6 #ifndef MC__WIDGET_BACKGROUND_H
   7 #define MC__WIDGET_BACKGROUND_H
   8 
   9 /*** typedefs(not structures) and defined constants **********************************************/
  10 
  11 #define BACKGROUND(x) ((WBackground *)(x))
  12 #define CONST_BACKGROUND(x) ((const WBackground *)(x))
  13 
  14 /*** enums ***************************************************************************************/
  15 
  16 /*** structures declarations (and typedefs of structures)*****************************************/
  17 
  18 typedef struct
  19 {
  20     Widget widget;
  21 
  22     int color;                  /* Color to fill area */
  23     unsigned char pattern;      /* Symbol to fill area */
  24 } WBackground;
  25 
  26 /*** global variables defined in .c file *********************************************************/
  27 
  28 /*** declarations of public functions ************************************************************/
  29 
  30 WBackground *background_new (int y, int x, int lines, int cols, int color, unsigned char pattern,
  31                              widget_cb_fn callback);
  32 cb_ret_t background_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data);
  33 
  34 /*** inline functions ****************************************************************************/
  35 
  36 #endif /* MC__WIDGET_BACKGROUND_H */

/* [previous][next][first][last][top][bottom][index][help]  */