Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
dcpp::gui::IGUIImageList Class Referenceabstract

Font interface. More...

#include <duckcpp/core/engine/IGUIImageList.hpp>

Inheritance diagram for dcpp::gui::IGUIImageList:
Inheritance graph
Collaboration diagram for dcpp::gui::IGUIImageList:
Collaboration graph

Public Member Functions

virtual ~IGUIImageList ()
 Destructor.
 
virtual void draw (i32 index, const nub::position2d< i32 > &destPos, const nub::rect< i32 > *clip=0)=0
 
virtual i32 getImageCount () const =0
 
virtual nub::dimension2d< i32getImageSize () const =0
 
- Public Member Functions inherited from dcpp::IReferenceCounted
 IReferenceCounted ()
 Constructor.
 
virtual ~IReferenceCounted ()
 Destructor.
 
void grab () const
 Grabs the object. Increments the reference counter by one.
 
bool drop () const
 Drops the object. Decrements the reference counter by one.
 
i32 getReferenceCount () const
 Get the reference count.
 
const c8getDebugName () const
 Returns the debug name of the object.
 

Additional Inherited Members

- Protected Member Functions inherited from dcpp::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object.
 

Detailed Description

Font interface.

Member Function Documentation

◆ draw()

virtual void dcpp::gui::IGUIImageList::draw ( i32  index,
const nub::position2d< i32 > &  destPos,
const nub::rect< i32 > *  clip = 0 
)
pure virtual

Draws an image and clips it to the specified rectangle if wanted

Parameters
indexIndex of the image
destPosPosition of the image to draw
clipOptional pointer to a rectangle against which the text will be clipped. If the pointer is null, no clipping will be done.

◆ getImageCount()

virtual i32 dcpp::gui::IGUIImageList::getImageCount ( ) const
pure virtual

Returns the count of Images in the list.

Returns
Returns the count of Images in the list.

◆ getImageSize()

virtual nub::dimension2d< i32 > dcpp::gui::IGUIImageList::getImageSize ( ) const
pure virtual

Returns the size of the images in the list.

Returns
Returns the size of the images in the list.

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

Duckcpp    @cppfx.xyz