CtrlImage Class Reference

Control image. More...

Inheritance diagram for CtrlImage:

Inheritance graph
[legend]
Collaboration diagram for CtrlImage:

Collaboration graph
[legend]

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).

Detailed Description

Control image.

Member Enumeration Documentation

Resize methods.

Enumerator:
kMosaic 
kScale 
kScaleAndRatioPreserved 


Constructor & Destructor Documentation

CtrlImage::CtrlImage ( intf_thread_t pIntf,
GenericBitmap rBitmap,
CmdGeneric rCommand,
resize_t  resizeMethod,
const UString rHelp,
VarBool pVisible,
bool  art 
)

CtrlImage::~CtrlImage (  )  [virtual]


Member Function Documentation

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]

virtual string CtrlImage::getType (  )  const [inline, virtual]

Get the type of control (custom RTTI).

Reimplemented from CtrlGeneric.


The documentation for this class was generated from the following files:

Generated on Tue May 25 08:05:54 2010 for VLC by  doxygen 1.5.6