/* Generated by wbuild from "Icon.w"
** (generator version $Revision: 1.17 $ of $Date: 92/12/07 19:32:00 $)
*/
#ifndef _XfwfIcon_H_
#define _XfwfIcon_H_
#include <Xfwf/Board.h>
#include <X11/xpm.h>
typedef struct _Icon {
    Pixmap pixmap;
    Pixmap mask;
    XpmAttributes attributes;
} Icon;

#define done(type, value) do {\
      if (to->addr != NULL) {\
	  if (to->size < sizeof(type)) {\
	      to->size = sizeof(type);\
	      return False;\
	  }\
	  *(type*)(to->addr) = (value);\
      } else {\
	  static type static_val;\
	  static_val = (value);\
	  to->addr = (XtPointer)&static_val;\
      }\
      to->size = sizeof(type);\
      return True;\
  }while (0 )


Boolean  cvtStringToIcon(
#if NeedFunctionPrototypes
Display *,XrmValuePtr ,Cardinal *,XrmValuePtr ,XrmValuePtr ,XtPointer *
#endif
);
#ifndef XtNimage
#define XtNimage "image"
#endif
#ifndef XtCImage
#define XtCImage "Image"
#endif
#ifndef XtRIcon
#define XtRIcon "Icon"
#endif

#ifndef XtNactivate
#define XtNactivate "activate"
#endif
#ifndef XtCActivate
#define XtCActivate "Activate"
#endif
#ifndef XtRCallback
#define XtRCallback "Callback"
#endif

typedef struct _XfwfIconClassRec *XfwfIconWidgetClass;
typedef struct _XfwfIconRec *XfwfIconWidget;
externalref WidgetClass xfwfIconWidgetClass;
#endif /*_XfwfIcon_H_*/
