
#ifndef _SWFDEC_BUTTON_H_
#define _SWFDEC_BUTTON_H_

#include <swfdec_object.h>

G_BEGIN_DECLS
//typedef struct _SwfdecButton SwfdecButton;
typedef struct _SwfdecButtonClass SwfdecButtonClass;
typedef struct _SwfdecButtonRecord SwfdecButtonRecord;

#define SWFDEC_TYPE_BUTTON                    (swfdec_button_get_type())
#define SWFDEC_IS_BUTTON(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_BUTTON))
#define SWFDEC_IS_BUTTON_CLASS(klass)         (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFDEC_TYPE_BUTTON))
#define SWFDEC_BUTTON(obj)                    (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFDEC_TYPE_BUTTON, SwfdecButton))
#define SWFDEC_BUTTON_CLASS(klass)            (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_BUTTON, SwfdecButtonClass))

struct _SwfdecButtonRecord
{
  int hit;
  int down;
  int over;
  int up;
  SwfdecSpriteSegment *segment;
};

struct _SwfdecButton
{
  SwfdecObject object;

  GArray *records;
};

struct _SwfdecButtonClass
{
  SwfdecObjectClass object_class;

};

GType swfdec_button_get_type (void);

G_END_DECLS
#endif
