6#include "DownloadQueue.hpp"
20 NetImageElement(
const char *url, std::function<
Texture *(
void)> getImageFallback = NULL,
bool immediateLoad =
true);
33 bool updateSizeAfterLoad =
false;
40 bool downloadStarted =
false;
Element * parent
the parent element (reference only, not owned)
NetImageElement(const char *url, std::function< Texture *(void)> getImageFallback=NULL, bool immediateLoad=true)
Creates a new image element, downloading the image from url If the url is not cached,...
void render(Element *parent) override
Render the image.
bool process(InputEvents *event) override
Checks if we're onscreen and start download if needed.
void fetch()
Start downloading the image (called in the constructor unless immediateLoad is false)