BitmapCollection.h

Go to the documentation of this file.
00001 /******************************************************************************
00002 /
00003 /   File:           BitmapCollection.h
00004 /
00005 /   Copyright 1992-2000, Be Incorporated, All Rights Reserved.
00006 /
00007 *******************************************************************************/
00008 
00009 #ifndef _BITMAP_COLLECTION_H
00010 #define _BITMAP_COLLECTION_H
00011 
00012 #include <OS.h>
00013 #include <String.h>
00014 
00015 class BDataIO;
00016 class BBitmap;
00017 
00018 
00019 namespace BPrivate
00020 {
00021     struct bitmap_collection_p;
00022 }
00023 
00024 
00025 class BBitmapCollection
00026 {
00027 public:
00028                             BBitmapCollection(BDataIO *lbx_data, size_t lbx_size);
00029     virtual                 ~BBitmapCollection();
00030 
00031             int32           CountBitmaps() const;
00032             status_t        GetBitmapInfo(const char *name, int32 *width, int32 *height) const;
00033             status_t        GetBitmapInfo(int32 index, BString& name, int32 *width=NULL, int32 *height=NULL) const;
00034             int32           GetIndexForBitmap(const char *name) const;
00035             BBitmap*        GetBitmap(const char *name);
00036             BBitmap*        GetBitmap(int32 index);
00037 
00038             status_t        InitCheck() const;
00039 
00040 private:
00041                             BBitmapCollection(const BBitmapCollection &);
00042         BBitmapCollection&  operator = (const BBitmapCollection &);
00043     
00044     BPrivate::
00045     bitmap_collection_p*    _m_private;
00046     BPrivate::
00047     bitmap_collection_p&    _m_rprivate;
00048     uint32                  _reserved[4];
00049 
00050     virtual void _ReservedBitmapCollection0();
00051     virtual void _ReservedBitmapCollection1();
00052     virtual void _ReservedBitmapCollection2();
00053     virtual void _ReservedBitmapCollection3();
00054 };
00055 
00056 #endif

Copyright 2005 by yellowTAB GmbH, Be Inc., Palm Source Inc. and their respective legal successors
All rights reserved.