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 FXBITMAPFRAME_H
00025 #define FXBITMAPFRAME_H
00026
00027 #ifndef FXFRAME_H
00028 #include "FXFrame.h"
00029 #endif
00030
00031 namespace FX {
00032
00033
00039 class FXAPI FXBitmapFrame : public FXFrame {
00040 FXDECLARE(FXBitmapFrame)
00041 protected:
00042 FXBitmap *bitmap;
00043 FXColor onColor;
00044 FXColor offColor;
00045 protected:
00046 FXBitmapFrame();
00047 private:
00048 FXBitmapFrame(const FXBitmapFrame&);
00049 FXBitmapFrame &operator=(const FXBitmapFrame&);
00050 public:
00051 long onPaint(FXObject*,FXSelector,void* ptr);
00052 public:
00053
00055 FXBitmapFrame(FXComposite* p,FXBitmap *bmp,FXuint opts=FRAME_SUNKEN|FRAME_THICK,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=0,FXint pr=0,FXint pt=0,FXint pb=0);
00056
00058 virtual void create();
00059
00061 virtual FXint getDefaultWidth();
00062
00064 virtual FXint getDefaultHeight();
00065
00067 void setBitmap(FXBitmap* bmp);
00068
00070 FXBitmap* getBitmap() const { return bitmap; }
00071
00073 void setOnColor(FXColor clr);
00074
00076 FXColor getOnColor() const { return onColor; }
00077
00079 void setOffColor(FXColor clr);
00080
00082 FXColor getOffColor() const { return offColor; }
00083
00085 void setJustify(FXuint mode);
00086
00088 FXuint getJustify() const;
00089
00091 virtual void save(FXStream& store) const;
00092
00094 virtual void load(FXStream& store);
00095
00097 virtual ~FXBitmapFrame();
00098 };
00099
00100 }
00101
00102
00103 #endif