#ifndef main_h
#define main_h

typedef struct mouse_s
{
  int x;
  int y;
  int button;
  int window;
  int icon;
} mouse_t;

typedef struct menu_block_s
{
  char* title;
  char* valid;
  int len;
  char title_fore;
  char title_back;
  char work_fore;
  char work_back;
  int width;
  int height;
  int gap;
} menu_block_t;


typedef struct menu_item_s
{
  int item_flags;
  int sub;
  int icon_flags;
  char *text;
  char *val;
  int len;
} menu_item_t;

/* windows */
enum { WIN_FILMINFO
     , WIN_INFO
     , WIN_OPTIONS
     , WIN_OP_IMAGE
     , WIN_OP_AUDIO
     , WIN_OP_AUTO
     , WIN_OP_DESKTOP
     , WIN_OP_MAIN
     , WIN_OP_MANUAL
     , WIN_OP_MULTASK
     , WIN_OP_WINDOW
     , WIN_PLAYLIST
     , WIN_MAX
     };

/* menus */
enum { MENU_ICONBAR
     , MENU_COLOURS
     , MENU_RESOLUTION
     , MENU_ZOOM
     , MENU_SKIN
     , MENU_AUDIOPLAYER
     , MENU_MODE
     , MENU_SCALER
     , MENU_DEINTERLACE
     , MENU_RESIZEMODE
     , MENU_RESIZETO
     , MENU_MAX
     };

extern window_data win_data[WIN_MAX];

#endif
