

Public Types | |
| enum | resize_t { kMosaic, kScale, kScaleAndRatioPreserved } |
| Resize methods. More... | |
Public Member Functions | |
| CtrlImage (intf_thread_t *pIntf, GenericBitmap &rBitmap, CmdGeneric &rCommand, resize_t resizeMethod, const UString &rHelp, VarBool *pVisible, bool art) | |
| virtual | ~CtrlImage () |
| virtual void | handleEvent (EvtGeneric &rEvent) |
| Handle an event on the control. | |
| virtual bool | mouseOver (int x, int y) const |
| Check whether coordinates are inside the control. | |
| virtual void | draw (OSGraphics &rImage, int xDest, int yDest) |
| Draw the control on the given graphics. | |
| virtual string | getType () const |
| Get the type of control (custom RTTI). | |
| enum CtrlImage::resize_t |
| CtrlImage::CtrlImage | ( | intf_thread_t * | pIntf, | |
| GenericBitmap & | rBitmap, | |||
| CmdGeneric & | rCommand, | |||
| resize_t | resizeMethod, | |||
| const UString & | rHelp, | |||
| VarBool * | pVisible, | |||
| bool | art | |||
| ) |
| CtrlImage::~CtrlImage | ( | ) | [virtual] |
| void CtrlImage::handleEvent | ( | EvtGeneric & | rEvent | ) | [virtual] |
Handle an event on the control.
Reimplemented from CtrlGeneric.
References CmdGeneric::execute(), EvtGeneric::getAsString(), and SkinObject::getIntf().
| bool CtrlImage::mouseOver | ( | int | x, | |
| int | y | |||
| ) | const [virtual] |
Check whether coordinates are inside the control.
Reimplemented from CtrlGeneric.
References Box::getHeight(), CtrlGeneric::getPosition(), Box::getWidth(), OSGraphics::hit(), and kMosaic.
| void CtrlImage::draw | ( | OSGraphics & | rImage, | |
| int | xDest, | |||
| int | yDest | |||
| ) | [virtual] |
Draw the control on the given graphics.
Reimplemented from CtrlGeneric.
References __MIN, OSFactory::createOSGraphics(), OSGraphics::drawBitmap(), OSGraphics::drawGraphics(), Box::getHeight(), Position::getHeight(), SkinObject::getIntf(), CtrlGeneric::getPosition(), Box::getWidth(), Position::getWidth(), OSFactory::instance(), kMosaic, kScale, and kScaleAndRatioPreserved.
| virtual string CtrlImage::getType | ( | ) | const [inline, virtual] |
1.5.6