MythTV  master
Public Member Functions | Public Attributes | Private Member Functions | List of all members
MHIBitmap Class Reference

Object for drawing bitmaps. More...

#include <mhi.h>

Inheritance diagram for MHIBitmap:
Inheritance graph
[legend]
Collaboration diagram for MHIBitmap:
Collaboration graph
[legend]

Public Member Functions

 MHIBitmap (MHIContext *parent, bool tiled)
 
virtual ~MHIBitmap ()
 
void CreateFromPNG (const unsigned char *data, int length) override
 Create bitmap from PNG. More...
 
void CreateFromMPEG (const unsigned char *data, int length) override
 Create bitmap from single I frame MPEG. More...
 
void CreateFromJPEG (const unsigned char *data, int length) override
 Create bitmap from JPEG. More...
 
void Draw (int x, int y, QRect rect, bool tiled, bool bUnder) override
 Draw the completed drawing onto the display. More...
 
void ScaleImage (int newWidth, int newHeight) override
 Scale the bitmap. Only used for image derived from MPEG I-frames. More...
 
QSize GetSize (void) override
 
bool IsOpaque (void) override
 
- Public Member Functions inherited from MHBitmapDisplay
virtual ~MHBitmapDisplay ()
 

Public Attributes

MHIContextm_parent {nullptr}
 
bool m_tiled
 
QImage m_image
 
bool m_opaque {false}
 
MythAVCopym_copyCtx {nullptr}
 

Private Member Functions

 MHIBitmap (const MHIBitmap &)=delete
 
MHIBitmapoperator= (const MHIBitmap &)=delete
 

Detailed Description

Object for drawing bitmaps.

Definition at line 267 of file mhi.h.

Constructor & Destructor Documentation

◆ MHIBitmap() [1/2]

MHIBitmap::MHIBitmap ( const MHIBitmap )
privatedelete

◆ MHIBitmap() [2/2]

MHIBitmap::MHIBitmap ( MHIContext parent,
bool  tiled 
)

Definition at line 1798 of file mhi.cpp.

◆ ~MHIBitmap()

MHIBitmap::~MHIBitmap ( )
virtual

Definition at line 1804 of file mhi.cpp.

Member Function Documentation

◆ operator=()

MHIBitmap& MHIBitmap::operator= ( const MHIBitmap )
privatedelete

◆ CreateFromPNG()

void MHIBitmap::CreateFromPNG ( const unsigned char *  data,
int  length 
)
overridevirtual

Create bitmap from PNG.

Implements MHBitmapDisplay.

Definition at line 1837 of file mhi.cpp.

◆ CreateFromMPEG()

void MHIBitmap::CreateFromMPEG ( const unsigned char *  data,
int  length 
)
overridevirtual

Create bitmap from single I frame MPEG.

Implements MHBitmapDisplay.

Definition at line 1872 of file mhi.cpp.

◆ CreateFromJPEG()

void MHIBitmap::CreateFromJPEG ( const unsigned char *  data,
int  length 
)
overridevirtual

Create bitmap from JPEG.

Implements MHBitmapDisplay.

Definition at line 1853 of file mhi.cpp.

◆ Draw()

void MHIBitmap::Draw ( int  x,
int  y,
QRect  rect,
bool  tiled,
bool  bUnder 
)
overridevirtual

Draw the completed drawing onto the display.

Parameters
xHorizontal position of the image relative to the screen.
yVertical position of the image relative to the screen.
rectBounding box for the image relative to the screen.
tiledTile the drawing to fit the parent window.
bUnderPut the drawing at the behind any other widgets.

Implements MHBitmapDisplay.

Definition at line 1809 of file mhi.cpp.

◆ ScaleImage()

void MHIBitmap::ScaleImage ( int  newWidth,
int  newHeight 
)
overridevirtual

Scale the bitmap. Only used for image derived from MPEG I-frames.

Implements MHBitmapDisplay.

Definition at line 1975 of file mhi.cpp.

◆ GetSize()

QSize MHIBitmap::GetSize ( void  )
inlineoverridevirtual

Implements MHBitmapDisplay.

Definition at line 301 of file mhi.h.

◆ IsOpaque()

bool MHIBitmap::IsOpaque ( void  )
inlineoverridevirtual

Implements MHBitmapDisplay.

Definition at line 302 of file mhi.h.

Member Data Documentation

◆ m_parent

MHIContext* MHIBitmap::m_parent {nullptr}

Definition at line 305 of file mhi.h.

Referenced by Draw().

◆ m_tiled

bool MHIBitmap::m_tiled

Definition at line 306 of file mhi.h.

◆ m_image

QImage MHIBitmap::m_image

Definition at line 307 of file mhi.h.

Referenced by CreateFromJPEG(), CreateFromMPEG(), CreateFromPNG(), Draw(), and ScaleImage().

◆ m_opaque

bool MHIBitmap::m_opaque {false}

Definition at line 308 of file mhi.h.

Referenced by CreateFromJPEG(), CreateFromMPEG(), and CreateFromPNG().

◆ m_copyCtx

MythAVCopy* MHIBitmap::m_copyCtx {nullptr}

Definition at line 309 of file mhi.h.

Referenced by CreateFromMPEG(), and ~MHIBitmap().


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