#include <mythimage.h>

Definition at line 12 of file mythimage.h.
Public Member Functions | |
| MythImage (MythPainter *parent) | |
| void | UpRef (void) |
| bool | DownRef (void) |
| virtual void | SetChanged (bool change=true) |
| bool | IsChanged () |
| void | Assign (const QImage &img) |
| void | Assign (const QPixmap &pix) |
| bool | Load (const QString &filename) |
| void | Resize (const QSize &newSize) |
Static Public Member Functions | |
| static MythImage * | FromQImage (QImage **img) |
| static MythImage * | Gradient (const QSize &size, const QColor &begin, const QColor &end, uint alpha) |
| Create a gradient image. | |
Protected Member Functions | |
| virtual | ~MythImage () |
Static Protected Member Functions | |
| static void | MakeGradient (QImage &image, const QColor &begin, const QColor &end, int alpha) |
Protected Attributes | |
| bool | m_Changed |
| MythPainter * | m_Parent |
| int | m_RefCount |
| bool | m_isGradient |
| QColor | m_gradBegin |
| QColor | m_gradEnd |
| int | m_gradAlpha |
| MythImage::MythImage | ( | MythPainter * | parent | ) |
Definition at line 11 of file mythimage.cpp.
| MythImage::~MythImage | ( | ) | [protected, virtual] |
Definition at line 23 of file mythimage.cpp.
| void MythImage::UpRef | ( | void | ) |
Definition at line 29 of file mythimage.cpp.
Referenced by MythListButton::CopyFrom(), MythThemedMenuState::parseButton(), MythThemedMenuState::parseTitle(), MythUIImage::SetImage(), and MythUIImage::SetImages().
| bool MythImage::DownRef | ( | void | ) |
Definition at line 34 of file mythimage.cpp.
Referenced by MythOpenGLPainter::GetImageFromString(), MythUIImage::Load(), MythThemedMenuState::Reset(), and MythListButton::~MythListButton().
| virtual void MythImage::SetChanged | ( | bool | change = true |
) | [inline, virtual] |
Reimplemented in MythQtImage.
Definition at line 20 of file mythimage.h.
Referenced by Assign(), MythOpenGLPainter::BindTextureFromCache(), MythUIImage::Load(), Resize(), and MythQtImage::SetChanged().
| bool MythImage::IsChanged | ( | ) | [inline] |
| void MythImage::Assign | ( | const QImage & | img | ) |
Definition at line 45 of file mythimage.cpp.
Referenced by Assign(), FromQImage(), MythOpenGLPainter::GetImageFromString(), Gradient(), MythUIImage::Load(), Load(), and Resize().
| void MythImage::Assign | ( | const QPixmap & | pix | ) |
Definition at line 51 of file mythimage.cpp.
| MythImage * MythImage::FromQImage | ( | QImage ** | img | ) | [static] |
Definition at line 70 of file mythimage.cpp.
Referenced by MythListButton::LoadPixmap(), MythThemedMenuState::parseArrow(), MythThemedMenuState::parseBackground(), MythThemedMenuState::parseButton(), MythThemedMenuState::parseButtonDefinition(), MythThemedMenuState::parseLogo(), and MythThemedMenuState::parseTitle().
| bool MythImage::Load | ( | const QString & | filename | ) |
Definition at line 83 of file mythimage.cpp.
Referenced by MythUIImage::Load(), and MythUIButton::LoadImage().
| void MythImage::Resize | ( | const QSize & | newSize | ) |
| MythImage * MythImage::Gradient | ( | const QSize & | size, | |
| const QColor & | begin, | |||
| const QColor & | end, | |||
| uint | alpha | |||
| ) | [static] |
Create a gradient image.
| size | The size of the image. | |
| begin | The beginning colour. | |
| end | The ending colour. |
Definition at line 133 of file mythimage.cpp.
Referenced by MythUIButton::LoadImage(), and MythListButton::LoadPixmap().
| void MythImage::MakeGradient | ( | QImage & | image, | |
| const QColor & | begin, | |||
| const QColor & | end, | |||
| int | alpha | |||
| ) | [static, protected] |
bool MythImage::m_Changed [protected] |
Definition at line 47 of file mythimage.h.
Referenced by IsChanged(), MythImage(), and SetChanged().
MythPainter* MythImage::m_Parent [protected] |
int MythImage::m_RefCount [protected] |
bool MythImage::m_isGradient [protected] |
QColor MythImage::m_gradBegin [protected] |
QColor MythImage::m_gradEnd [protected] |
int MythImage::m_gradAlpha [protected] |
1.5.5