AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
WebpImageLoader Class Reference

Public Member Functions#

bool matches (AByteBufferView buffer) override
 
_< IImageFactorygetImageFactory (AByteBufferView buffer) override
 The drawable (vector) image loader implementation.
 
_< AImagegetRasterImage (AByteBufferView buffer) override
 The image loader implementation (raster).
 

Member Function Documentation#

◆ getImageFactory()#

_< IImageFactory > WebpImageLoader::getImageFactory ( AByteBufferView buffer)
overridevirtual
Note
Called if and only if matches returned true.
Returns
image factory. Can be nullptr if getRasterImage implemented.

Reimplemented from IImageLoader.

◆ getRasterImage()#

_< AImage > WebpImageLoader::getRasterImage ( AByteBufferView buffer)
overridevirtual
Note
Called if and only if matches returned true.
Returns
raster image. Can be nullptr if getDrawable implemented.

Implements IImageLoader.

◆ matches()#

bool WebpImageLoader::matches ( AByteBufferView buffer)
overridevirtual
Parameters
bufferbuffer with the raw image file contents.
Returns
true, if this IImageLoader accepts image stored in this buffer

Implements IImageLoader.