Inheritance diagram for os::ImageView:
Public Types | |
enum | ImageMode { FIXED_SIZE = 0x10000000, NORMAL = 0x00000000 | FIXED_SIZE, TILE = 0x00000001, STRETCH = 0x00000002, ALPHA = 0x00001000, DEFAULT = NORMAL | ALPHA } |
Public Member Functions | |
ImageView (Rect cFrame, const String &cName, Image *pzImage, ImageMode eMode=DEFAULT, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_CLEAR_BACKGROUND|WID_FULL_UPDATE_ON_RESIZE) | |
Constructor. | |
~ImageView () | |
void | Paint (const Rect &cUpdateRect) |
View callback, Renders the Image. | |
Point | GetPreferredSize (bool bLargest) const |
Returns size for automatic layout. | |
void | SetImage (Image *pcImage) |
Image * | GetImage (void) const |
void | Refresh () |
Refresh image. | |
Classes | |
class | Private |
ImageView::ImageView | ( | Rect | cFrame, | |
const String & | cName, | |||
Image * | pcImage, | |||
ImageMode | eMode = DEFAULT , |
|||
uint32 | nResizeMask = CF_FOLLOW_LEFT|CF_FOLLOW_TOP , |
|||
uint32 | nFlags = WID_WILL_DRAW|WID_CLEAR_BACKGROUND|WID_FULL_UPDATE_ON_RESIZE | |||
) |
cFrame | The frame rectangle in the parents coordinate system. | |
pzName | The logical name of the view. This parameter is newer rendered anywhere, but is passed to the Handler::Handler() constructor to identify the view. | |
pcImage | The Image object to display. | |
eMode | Specifies how to render the Image (TILE, STRETCH, NORMAL). | |
nResizeMask | Flags defining how the views frame rectangle is affected if the parent view is resized. | |
nFlags | Various flags to control the views behavour. |
ImageView::~ImageView | ( | ) |
void ImageView::Paint | ( | const Rect & | cUpdateRect | ) | [virtual] |
Point ImageView::GetPreferredSize | ( | bool | bLargest | ) | const [virtual] |
bLargest | Tells whether the smallest (normal) size is requested, or the largest possible size. |
Returns | the the Image size if bLargest is false, otherwise it returns Point( COORD_MAX, COORD_MAX ). |
Reimplemented from os::View.
void ImageView::SetImage | ( | Image * | pcImage | ) |
Image * ImageView::GetImage | ( | void | ) | const |
void ImageView::Refresh | ( | ) |