IGUIImageList.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // This file is part of the "Irrlicht Engine".
  2. // written by Reinhard Ostermeier, reinhard@nospam.r-ostermeier.de
  3. #ifndef IRR_I_GUI_IMAGE_LIST_H_INCLUDED
  4. #define IRR_I_GUI_IMAGE_LIST_H_INCLUDED
  5. #include "rect.h"
  6. #include "IReferenceCounted.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
  33. #endif