Chatterino
|
This class is thread safe. More...
#include <Image.hpp>
Public Member Functions | |
~Image () | |
const Url & | url () const |
bool | loaded () const |
boost::optional< QPixmap > | pixmapOrLoad () const |
void | load () const |
qreal | scale () const |
bool | isEmpty () const |
int | width () const |
int | height () const |
bool | animated () const |
bool | operator== (const Image &image) const |
bool | operator!= (const Image &image) const |
Static Public Member Functions | |
static ImagePtr | fromUrl (const Url &url, qreal scale=1) |
static ImagePtr | fromResourcePixmap (const QPixmap &pixmap, qreal scale=1) |
static ImagePtr | getEmpty () |
Static Public Attributes | |
static constexpr int | maxBytesRam = 20 * 1024 * 1024 |
Friends | |
class | ImageExpirationPool |
This class is thread safe.
chatterino::Image::~Image | ( | ) |
bool chatterino::Image::animated | ( | ) | const |
|
static |
|
static |
|
static |
int chatterino::Image::height | ( | ) | const |
bool chatterino::Image::isEmpty | ( | ) | const |
void chatterino::Image::load | ( | ) | const |
bool chatterino::Image::loaded | ( | ) | const |
bool chatterino::Image::operator!= | ( | const Image & | image | ) | const |
bool chatterino::Image::operator== | ( | const Image & | image | ) | const |
boost::optional< QPixmap > chatterino::Image::pixmapOrLoad | ( | ) | const |
qreal chatterino::Image::scale | ( | ) | const |
const Url & chatterino::Image::url | ( | ) | const |
int chatterino::Image::width | ( | ) | const |
|
friend |
|
static |