Chatterino
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
chatterino::Image Class Reference

This class is thread safe. More...

#include <Image.hpp>

Inheritance diagram for chatterino::Image:
[legend]
Collaboration diagram for chatterino::Image:
[legend]

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
 

Detailed Description

This class is thread safe.

Constructor & Destructor Documentation

◆ ~Image()

chatterino::Image::~Image ( )

Member Function Documentation

◆ animated()

bool chatterino::Image::animated ( ) const

◆ fromResourcePixmap()

ImagePtr chatterino::Image::fromResourcePixmap ( const QPixmap &  pixmap,
qreal  scale = 1 
)
static
Here is the caller graph for this function:

◆ fromUrl()

ImagePtr chatterino::Image::fromUrl ( const Url &  url,
qreal  scale = 1 
)
static
Here is the caller graph for this function:

◆ getEmpty()

ImagePtr chatterino::Image::getEmpty ( )
static
Here is the call graph for this function:

◆ height()

int chatterino::Image::height ( ) const
Here is the call graph for this function:

◆ isEmpty()

bool chatterino::Image::isEmpty ( ) const
Here is the caller graph for this function:

◆ load()

void chatterino::Image::load ( ) const

◆ loaded()

bool chatterino::Image::loaded ( ) const

◆ operator!=()

bool chatterino::Image::operator!= ( const Image image) const
Here is the call graph for this function:

◆ operator==()

bool chatterino::Image::operator== ( const Image image) const
Here is the call graph for this function:

◆ pixmapOrLoad()

boost::optional< QPixmap > chatterino::Image::pixmapOrLoad ( ) const
Here is the call graph for this function:

◆ scale()

qreal chatterino::Image::scale ( ) const

◆ url()

const Url & chatterino::Image::url ( ) const

◆ width()

int chatterino::Image::width ( ) const

Friends And Related Function Documentation

◆ ImageExpirationPool

friend class ImageExpirationPool
friend

Member Data Documentation

◆ maxBytesRam

constexpr int chatterino::Image::maxBytesRam = 20 * 1024 * 1024
static

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