home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BK-SC1_4.DMS / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Bitmap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-16  |  2.0 KB  |  62 lines

  1. //
  2. //  $VER: Bitmap.h      1.0 (16 Jun 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21.  
  22. #ifndef CPP_TWIMUI_BITMAP_H
  23. #define CPP_TWIMUI_BITMAP_H
  24.  
  25. #ifndef CPP_TWIMUI_AREA_H
  26. #include <classes/twimui/area.h>
  27. #endif
  28.  
  29. #ifndef GRAPHICS_GFX_H
  30. #include <graphics/gfx.h>
  31. #endif
  32.  
  33. class MUIBitmap : public MUIArea
  34.     {
  35.     protected:
  36.         MUIBitmap(STRPTR cl) : MUIArea(cl) { };
  37.     public:
  38.         MUIBitmap(const struct TagItem *t) : MUIArea(MUIC_Bitmap) { init(t); };
  39.         MUIBitmap(const Tag, ...);
  40.         MUIBitmap() : MUIArea(MUIC_Bitmap) { };
  41.         MUIBitmap(MUIBitmap &p) : MUIArea(p) { };
  42.         virtual ~MUIBitmap();
  43.         MUIBitmap &operator= (MUIBitmap &);
  44.         void BitmapP(const struct Bitmap *p) { set(MUIA_Bitmap_Bitmap,(ULONG)p); };
  45.         struct Bitmap *BitmapP() const { return((struct Bitmap *)get(MUIA_Bitmap_Bitmap,NULL)); };
  46.         void Height(const LONG p) { set(MUIA_Bitmap_Height,(ULONG)p); };
  47.         LONG Height() const { return((LONG)get(MUIA_Bitmap_Height,0L)); };
  48.         void MappingTable(const UBYTE *p) { set(MUIA_Bitmap_MappingTable,(ULONG)p); };
  49.         UBYTE *MappingTable() const { return((UBYTE *)get(MUIA_Bitmap_MappingTable,0L)); };
  50.         void Precision(const LONG p) { set(MUIA_Bitmap_Precision,(ULONG)p); };
  51.         LONG Precision() const { return((LONG)get(MUIA_Bitmap_Precision,0L)); };
  52.         struct Bitmap *RemappedBitmap() const { return((struct Bitmap *)get(MUIA_Bitmap_Bitmap,NULL)); };
  53.         void SourceColors(const ULONG *p) { set(MUIA_Bitmap_SourceColors,(ULONG)p); };
  54.         ULONG *SourceColors() const { return((ULONG *)get(MUIA_Bitmap_SourceColors,0L)); };
  55.         void Transparent(const LONG p) { set(MUIA_Bitmap_Transparent,(ULONG)p); };
  56.         LONG Transparent() const { return((LONG)get(MUIA_Bitmap_Transparent,0L)); };
  57.         void Width(const LONG p) { set(MUIA_Bitmap_Width,(ULONG)p); };
  58.         LONG Width() const { return((LONG)get(MUIA_Bitmap_Width,0L)); };
  59.     };
  60.  
  61. #endif
  62.