/*****************************************************************************

    Copyright (C) 1994,1997 Ivan A. Curtis.  All rights reserved.

This code must not be re-distributed without these copyright notices intact.

*******************************************************************************
*******************************************************************************

Filename:	~icurtis/src/mx/buttons.h

Description:	

Update History:   (most recent first)
   I. Curtis   9-Apr-97 12:02 -- Updated
   I. Curtis  22-Mar-94 23:11 -- Created.

******************************************************************************/

typedef struct _mx_button {
  Window window;
  mx_appearance *app;		/* the appearance structure */
  int width, height;		/* dimension of each button (pixels) */
  int n_items;			/* number of buttons */
  mx_menu_item *item;		/* pointer to array of items */
  int first_item, last_item;	/* sub-range of items used */
  int inside;			/* flag indicating focus */
  int cur_x, cur_y;		/* cursor position in window */
  unsigned int value;		/* bitmap of button states */
} mx_button;

extern mx_popup_button(Display *display, int screen, mx_panel *panel,
		       unsigned int value, int *x, int *y);
