#include <cascade/widgets/CascadePictureWidget.h>
Inheritance diagram for CascadePictureWidget:
Public Member Functions | |
CascadePictureWidget () | |
virtual | ~CascadePictureWidget () |
virtual bool | LoadPictureFromBitmap (const CascadeBitmap &bitmap, CascadeBitmap::RamType ramType=CascadeBitmap::kEither) |
virtual bool | LoadPictureFromBitmapFile (CascadeFile &bitmapFile, CascadeBitmap::RamType ramType=CascadeBitmap::kEither) |
virtual void | OnPaint (CascadeBitmap &bitmap) |
virtual bool | WillAcceptFocus () |
Protected Attributes | |
CascadeBitmap | m_bitmap |
bool | m_bLoaded |
CascadePictureWidget is a widget that holds a picture.
|
The CascadePictureWidget constructor - lightweight. This constructor is lightweight. |
|
Destructor. The destructor. |
|
loads a picture widget's bitmap up from an existing bitmap LoadPictureFromBitmap() blits the picture out of bitmap into CascadePictureWidget's newly created m_bitmap returning true if successful, false otherwise. If LoadPictureFromBitmap() is called twice, the first bitmap is overwritten (destroyed and recreated in the new size if necessary).
|
|
loads a picture widget's bitmap up from an existing bitmap LoadPictureFromBitmapFile() loads the picture from the bitmap file identified by bitmapFile returning true if successful, false otherwise. If LoadPictureFromBitmap() is called twice, the first bitmap is overwritten (destroyed and recreated in the new size if necessary).
|
|
paints the picture widget OnPaint() provides painting for the picture widget Reimplemented from CascadeWindow. |
|
overridden to refuse focus WillAcceptFocus() is overridden so the picture widget will not accept (refuse) focus. Reimplemented from CascadeWidget. |
|
the bitmap of the widget m_bitmap is the bitmap the picture widget uses for rendering |
|
whether or not the bitmap has been successfully loaded (initialized) m_bLoaded specifies whether or not m_bitmap is a valid bitmap |