2
0

IGUIImageList.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // This file is part of the "Irrlicht Engine".
  2. // written by Reinhard Ostermeier, reinhard@nospam.r-ostermeier.de
  3. #pragma once
  4. #include "IGUIElement.h"
  5. #include "rect.h"
  6. #include "irrTypes.h"
  7. namespace irr
  8. {
  9. namespace gui
  10. {
  11. //! Font interface.
  12. class IGUIImageList : public virtual IReferenceCounted
  13. {
  14. public:
  15. //! Destructor
  16. virtual ~IGUIImageList(){};
  17. //! Draws an image and clips it to the specified rectangle if wanted
  18. //! \param index: Index of the image
  19. //! \param destPos: Position of the image to draw
  20. //! \param clip: Optional pointer to a rectangle against which the text will be clipped.
  21. //! If the pointer is null, no clipping will be done.
  22. virtual void draw(s32 index, const core::position2d<s32> &destPos,
  23. const core::rect<s32> *clip = 0) = 0;
  24. //! Returns the count of Images in the list.
  25. //! \return Returns the count of Images in the list.
  26. virtual s32 getImageCount() const = 0;
  27. //! Returns the size of the images in the list.
  28. //! \return Returns the size of the images in the list.
  29. virtual core::dimension2d<s32> getImageSize() const = 0;
  30. };
  31. } // end namespace gui
  32. } // end namespace irr