mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-23 10:21:55 +01:00
9e79c9d99b
* code cleanup
28 lines
795 B
C++
28 lines
795 B
C++
#ifndef _GUIIMAGEASYNC_H_
|
|
#define _GUIIMAGEASYNC_H_
|
|
|
|
#// arg is a pointer created with malloc()
|
|
// when the image is destroied then will also the arg deleted with free()
|
|
typedef GuiImageData * ( *ImageLoaderCallback )( void *arg );
|
|
|
|
class GuiImageAsync : public GuiImage
|
|
{
|
|
public:
|
|
GuiImageAsync( const char *Filename, GuiImageData * PreloadImg );
|
|
GuiImageAsync( ImageLoaderCallback Callback, void *arg, int arglen, GuiImageData * PreloadImg );
|
|
~GuiImageAsync();
|
|
|
|
private:
|
|
GuiImageData *loadet_imgdata;
|
|
friend void loader( GuiImageAsync *InUse );
|
|
|
|
friend void Setter( GuiImageAsync *InUse );
|
|
friend void *GuiImageAsyncThread( void *arg );
|
|
ImageLoaderCallback callback;
|
|
void *arg;
|
|
};
|
|
|
|
|
|
|
|
#endif /*_GUIIMAGEASYNC_H_*/
|