00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef FXXBMICON_H
00025 #define FXXBMICON_H
00026
00027 #ifndef FXICON_H
00028 #include "FXIcon.h"
00029 #endif
00030
00031 namespace FX {
00032
00033
00035 class FXAPI FXXBMIcon : public FXIcon {
00036 FXDECLARE(FXXBMIcon)
00037 protected:
00038 FXXBMIcon(){}
00039 private:
00040 FXXBMIcon(const FXXBMIcon&);
00041 FXXBMIcon &operator=(const FXXBMIcon&);
00042 public:
00043 static const FXchar *fileExt;
00044 static const FXchar *mimeType;
00045 public:
00046
00048 FXXBMIcon(FXApp* a,const FXuchar *pixels=NULL,const FXuchar *mask=NULL,FXColor clr=FXRGB(192,192,192),FXuint opts=0,FXint w=1,FXint h=1);
00049
00051 virtual bool savePixels(FXStream& store) const;
00052
00054 virtual bool loadPixels(FXStream& store);
00055
00057 virtual ~FXXBMIcon();
00058 };
00059
00060
00061 #ifndef FXLOADXBM
00062 #define FXLOADXBM
00063
00067 extern FXAPI bool fxcheckXBM(FXStream& store);
00068
00074 extern FXAPI bool fxloadXBM(FXColor*& data,const FXuchar *pix,const FXuchar *msk,FXint width,FXint height);
00075
00076
00082 extern FXAPI bool fxloadXBM(FXStream& store,FXColor*& data,FXint& width,FXint& height,FXint& hotx,FXint& hoty);
00083
00084
00089 extern FXAPI bool fxsaveXBM(FXStream& store,const FXColor *data,FXint width,FXint height,FXint hotx=-1,FXint hoty=-1);
00090
00095 extern FXAPI bool fxsavePS(FXStream& store,const FXColor *data,FXint width,FXint height,FXint paperw=612,FXint paperh=792,FXint margin=35,bool color=true);
00096
00097 #endif
00098
00099 }
00100
00101 #endif