1 // This file is part of the "Irrlicht Engine".
\r
2 // written by Reinhard Ostermeier, reinhard@nospam.r-ostermeier.de
\r
4 #ifndef __I_GUI_IMAGE_LIST_H_INCLUDED__
\r
5 #define __I_GUI_IMAGE_LIST_H_INCLUDED__
\r
7 #include "IGUIElement.h"
\r
9 #include "irrTypes.h"
\r
17 class IGUIImageList : public virtual IReferenceCounted
\r
22 virtual ~IGUIImageList() {};
\r
24 //! Draws an image and clips it to the specified rectangle if wanted
\r
25 //! \param index: Index of the image
\r
26 //! \param destPos: Position of the image to draw
\r
27 //! \param clip: Optional pointer to a rectangle against which the text will be clipped.
\r
28 //! If the pointer is null, no clipping will be done.
\r
29 virtual void draw(s32 index, const core::position2d<s32>& destPos,
\r
30 const core::rect<s32>* clip = 0) = 0;
\r
32 //! Returns the count of Images in the list.
\r
33 //! \return Returns the count of Images in the list.
\r
34 virtual s32 getImageCount() const = 0;
\r
36 //! Returns the size of the images in the list.
\r
37 //! \return Returns the size of the images in the list.
\r
38 virtual core::dimension2d<s32> getImageSize() const = 0;
\r
41 } // end namespace gui
\r
42 } // end namespace irr
\r