]> git.lizzy.rs Git - irrlicht.git/blob - include/IGUIImageList.h
Add a unified cross platform OpenGL core profile binding (#52)
[irrlicht.git] / include / IGUIImageList.h
1 // This file is part of the "Irrlicht Engine".\r
2 // written by Reinhard Ostermeier, reinhard@nospam.r-ostermeier.de\r
3 \r
4 #ifndef __I_GUI_IMAGE_LIST_H_INCLUDED__\r
5 #define __I_GUI_IMAGE_LIST_H_INCLUDED__\r
6 \r
7 #include "IGUIElement.h"\r
8 #include "rect.h"\r
9 #include "irrTypes.h"\r
10 \r
11 namespace irr\r
12 {\r
13 namespace gui\r
14 {\r
15 \r
16 //! Font interface.\r
17 class IGUIImageList : public virtual IReferenceCounted\r
18 {\r
19 public:\r
20 \r
21         //! Destructor\r
22         virtual ~IGUIImageList() {};\r
23 \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
31 \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
35 \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
39 };\r
40 \r
41 } // end namespace gui\r
42 } // end namespace irr\r
43 \r
44 #endif\r
45 \r