My Project
|
Image box. More...
#include <ImageBox.h>
Public Member Functions | |
CImageBox (SallyAPI::GUI::CGUIBaseObject *parent, int x, int y, int width, int height, int controlId=0) | |
Constructor. | |
virtual | ~CImageBox () |
Destructor. | |
virtual void | Timer (float timeDelta) |
Timers. | |
void | SetImageId (int image) |
Sets an image to this image box loaded by LoadPicture. Set to GUI_NO_IMAGE to erase the image. | |
int | GetImageId () |
Gets the image identifier. | |
void | SetPicture (SallyAPI::GUI::CPicture *picture) |
Sets a picture to this image box. Set to NULL to erase the image. | |
SallyAPI::GUI::CPicture * | GetPicture () |
Gets the picture. | |
void | SetDisplayType (ImageBoxDisplayType value) |
Sets a diyplay type. | |
ImageBoxDisplayType | GetDiyplayType () |
Gets the diyplay type. | |
Protected Member Functions | |
virtual void | RenderControl () |
Renders a control. | |
virtual bool | ProcessMouseDoubleClick (int x, int y) |
Process a mouse double click. | |
virtual bool | ProcessMouseUp (int x, int y) |
Process a mouse up. | |
virtual bool | ProcessMouseMove (int x, int y) |
Process a mouse move. | |
Protected Attributes | |
int | m_iImage |
SallyAPI::GUI::CPicture * | m_pPicture |
ImageBoxDisplayType | m_eDiyplayType |
Image box.
CImageBox::CImageBox | ( | SallyAPI::GUI::CGUIBaseObject * | parent, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
int | controlId = 0 |
||
) |
Constructor.
m_pPicture(NULL), m_iImage(GUI_NO_IMAGE), m_eDiyplayType(IMAGEBOX_DISPLAY_TYPE_STRETCH)
[in,out] | parent | If non-null, the parent. |
x | The x coordinate. | |
y | The y coordinate. | |
width | The width. | |
height | The height. | |
controlId | Identifier for the control. |
CImageBox::~CImageBox | ( | ) | [virtual] |
Destructor.
Gets the diyplay type.
int CImageBox::GetImageId | ( | ) |
Gets the image identifier.
Gets the picture.
bool CImageBox::ProcessMouseDoubleClick | ( | int | x, |
int | y | ||
) | [protected, virtual] |
Process a mouse double click.
x | The x coordinate. |
y | The y coordinate. |
Reimplemented from SallyAPI::GUI::CControl.
bool CImageBox::ProcessMouseMove | ( | int | x, |
int | y | ||
) | [protected, virtual] |
Process a mouse move.
x | The x coordinate. |
y | The y coordinate. |
Reimplemented from SallyAPI::GUI::CControl.
bool CImageBox::ProcessMouseUp | ( | int | x, |
int | y | ||
) | [protected, virtual] |
Process a mouse up.
x | The x coordinate. |
y | The y coordinate. |
Reimplemented from SallyAPI::GUI::CControl.
void CImageBox::RenderControl | ( | ) | [protected, virtual] |
void CImageBox::SetDisplayType | ( | ImageBoxDisplayType | value | ) |
Sets a diyplay type.
value | The value. |
void CImageBox::SetImageId | ( | int | image | ) |
Sets an image to this image box loaded by LoadPicture. Set to GUI_NO_IMAGE to erase the image.
image | The image. |
void CImageBox::SetPicture | ( | SallyAPI::GUI::CPicture * | picture | ) |
Sets a picture to this image box. Set to NULL to erase the image.
[in,out] | picture | If non-null, the picture. |
void CImageBox::Timer | ( | float | timeDelta | ) | [virtual] |
Timers.
timeDelta | The time delta. |
Reimplemented from SallyAPI::GUI::CControl.
Reimplemented in SallyAPI::GUI::CBox2DObject.
int SallyAPI::GUI::CImageBox::m_iImage [protected] |