MythTV  master
Public Member Functions | Public Attributes | 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)
 
 ~MHIBitmap () override
 
 MHIBitmap (const MHIBitmap &)=delete
 
MHIBitmapoperator= (const MHIBitmap &)=delete
 
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 ()=default
 

Public Attributes

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

Detailed Description

Object for drawing bitmaps.

Definition at line 267 of file mhi.h.

Constructor & Destructor Documentation

◆ MHIBitmap() [1/2]

MHIBitmap::MHIBitmap ( MHIContext parent,
bool  tiled 
)

Definition at line 1791 of file mhi.cpp.

◆ ~MHIBitmap()

MHIBitmap::~MHIBitmap ( )
override

Definition at line 1797 of file mhi.cpp.

◆ MHIBitmap() [2/2]

MHIBitmap::MHIBitmap ( const MHIBitmap )
delete

Member Function Documentation

◆ operator=()

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

◆ CreateFromPNG()

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

Create bitmap from PNG.

Implements MHBitmapDisplay.

Definition at line 1830 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 1865 of file mhi.cpp.

◆ CreateFromJPEG()

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

Create bitmap from JPEG.

Implements MHBitmapDisplay.

Definition at line 1846 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 1802 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 1967 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(), GetSize(), IsOpaque(), and ScaleImage().

◆ m_opaque

bool MHIBitmap::m_opaque {false}

Definition at line 308 of file mhi.h.

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

◆ 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: