MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
MHBitmap Class Reference

#include <Bitmap.h>

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

Public Member Functions

 MHBitmap ()=default
 
 MHBitmap (const MHBitmap &ref)
 
const char * ClassName () override
 
 ~MHBitmap () override
 
void Initialise (MHParseNode *p, MHEngine *engine) override
 
void PrintMe (FILE *fd, int nTabs) const override
 
void Preparation (MHEngine *engine) override
 
void ContentPreparation (MHEngine *engine) override
 
void ContentArrived (const unsigned char *data, int length, MHEngine *engine) override
 
void SetTransparency (int nTransPerCent, MHEngine *engine) override
 
void ScaleBitmap (int xScale, int yScale, MHEngine *engine) override
 
void SetBitmapDecodeOffset (int newXOffset, int newYOffset, MHEngine *engine) override
 
void GetBitmapDecodeOffset (MHRoot *pXOffset, MHRoot *pYOffset) override
 
MHIngredientClone (MHEngine *) override
 
void Display (MHEngine *d) override
 
QRegion GetVisibleArea () override
 
QRegion GetOpaqueArea () override
 
- Public Member Functions inherited from MHVisible
 MHVisible ()=default
 
 MHVisible (const MHVisible &ref)
 
void Initialise (MHParseNode *p, MHEngine *engine) override
 
void PrintMe (FILE *fd, int nTabs) const override
 
void Preparation (MHEngine *engine) override
 
void Destruction (MHEngine *engine) override
 
void Activation (MHEngine *engine) override
 
void Deactivation (MHEngine *engine) override
 
void SetPosition (int nXPosition, int nYPosition, MHEngine *engine) override
 
void GetPosition (MHRoot *pXPosN, MHRoot *pYPosN) override
 
void SetBoxSize (int nWidth, int nHeight, MHEngine *engine) override
 
void GetBoxSize (MHRoot *pWidthDest, MHRoot *pHeightDest) override
 
void SetPaletteRef (MHObjectRef newPalette, MHEngine *engine) override
 
void BringToFront (MHEngine *engine) override
 
void SendToBack (MHEngine *engine) override
 
void PutBefore (const MHRoot *pRef, MHEngine *engine) override
 
void PutBehind (const MHRoot *pRef, MHEngine *engine) override
 
void ResetPosition () override
 
- Public Member Functions inherited from MHPresentable
 MHPresentable ()=default
 
 MHPresentable (const MHPresentable &)=default
 
void Run (MHEngine *engine) override
 
void Stop (MHEngine *engine) override
 
virtual void BeginPlaying (MHEngine *)
 
virtual void StopPlaying (MHEngine *)
 
- Public Member Functions inherited from MHIngredient
 MHIngredient ()=default
 
 MHIngredient (const MHIngredient &ref)
 
 ~MHIngredient () override=default
 
virtual bool InitiallyActive ()
 
virtual bool InitiallyAvailable ()
 
bool IsShared () override
 
void ContentPreparation (MHEngine *engine) override
 
void SetData (const MHOctetString &included, MHEngine *engine) override
 
void SetData (const MHContentRef &referenced, bool fSizeGiven, int size, bool fCCGiven, int cc, MHEngine *engine) override
 
void Preload (MHEngine *engine) override
 
void Unload (MHEngine *engine) override
 
- Public Member Functions inherited from MHRoot
 MHRoot ()=default
 
 MHRoot (const MHRoot &)
 
virtual ~MHRoot ()=default
 
virtual MHRootFindByObjectNo (int n)
 
virtual bool GetAvailabilityStatus ()
 
virtual bool GetRunningStatus ()
 
virtual void SetTimer (int, bool, int, MHEngine *)
 
virtual void MakeClone (MHRoot *, MHRoot *, MHEngine *)
 
virtual void SetInputRegister (int, MHEngine *)
 
virtual void TestVariable (int, const MHUnion &, MHEngine *)
 
virtual void GetVariableValue (MHUnion &, MHEngine *)
 
virtual void SetVariableValue (const MHUnion &)
 
virtual void GetTextData (MHRoot *, MHEngine *)
 
virtual void SetBackgroundColour (const MHColour &, MHEngine *)
 
virtual void SetTextColour (const MHColour &, MHEngine *)
 
virtual void SetFontAttributes (const MHOctetString &, MHEngine *)
 
virtual void Activate (bool, MHEngine *)
 
virtual void CallProgram (bool, const MHObjectRef &, const MHSequence< MHParameter * > &, MHEngine *)
 
virtual void CallActionSlot (int, MHEngine *)
 
virtual void Move (int, MHEngine *)
 
virtual void MoveTo (int, MHEngine *)
 
virtual void GetTokenPosition (MHRoot *, MHEngine *)
 
virtual void AddItem (int, MHRoot *, MHEngine *)
 
virtual void DelItem (MHRoot *, MHEngine *)
 
virtual void GetCellItem (int, const MHObjectRef &, MHEngine *)
 
virtual void GetListItem (int, const MHObjectRef &, MHEngine *)
 
virtual void GetItemStatus (int, const MHObjectRef &, MHEngine *)
 
virtual void SelectItem (int, MHEngine *)
 
virtual void DeselectItem (int, MHEngine *)
 
virtual void ToggleItem (int, MHEngine *)
 
virtual void ScrollItems (int, MHEngine *)
 
virtual void SetFirstItem (int, MHEngine *)
 
virtual void GetFirstItem (MHRoot *, MHEngine *)
 
virtual void GetListSize (MHRoot *, MHEngine *)
 
virtual void SetFillColour (const MHColour &, MHEngine *)
 
virtual void SetLineColour (const MHColour &, MHEngine *)
 
virtual void SetLineWidth (int, MHEngine *)
 
virtual void SetLineStyle (int, MHEngine *)
 
virtual void Clear ()
 
virtual void GetLineWidth (MHRoot *)
 
virtual void GetLineStyle (MHRoot *)
 
virtual void GetLineColour (MHRoot *)
 
virtual void GetFillColour (MHRoot *)
 
virtual void DrawArcSector (bool, int, int, int, int, int, int, MHEngine *)
 
virtual void DrawLine (int, int, int, int, MHEngine *)
 
virtual void DrawOval (int, int, int, int, MHEngine *)
 
virtual void DrawRectangle (int, int, int, int, MHEngine *)
 
virtual void DrawPoly (bool, int, const int *, const int *, MHEngine *)
 
virtual void ScaleVideo (int, int, MHEngine *)
 
virtual void SetVideoDecodeOffset (int, int, MHEngine *)
 
virtual void GetVideoDecodeOffset (MHRoot *, MHRoot *, MHEngine *)
 
virtual void GetCounterPosition (MHRoot *, MHEngine *)
 
virtual void GetCounterMaxPosition (MHRoot *, MHEngine *)
 
virtual void SetCounterPosition (int, MHEngine *)
 
virtual void SetSpeed (int, MHEngine *)
 
virtual void SetInteractionStatus (bool, MHEngine *)
 
virtual bool GetInteractionStatus (void)
 
virtual void SetHighlightStatus (bool, MHEngine *)
 
virtual bool GetHighlightStatus (void)
 
virtual void Step (int, MHEngine *)
 
virtual void SetSliderValue (int, MHEngine *)
 
virtual int GetSliderValue (void)
 
virtual void SetPortion (int, MHEngine *)
 
virtual int GetPortion (void)
 
virtual void SetSliderParameters (int, int, int, MHEngine *)
 

Protected Member Functions

void CreateContent (const unsigned char *data, int length, MHEngine *engine)
 
- Protected Member Functions inherited from MHRoot
void InvalidAction (const char *actionName)
 

Protected Attributes

bool m_fTiling {false}
 
int m_nOrigTransparency {0}
 
int m_nTransparency {0}
 
int m_nXDecodeOffset {0}
 
int m_nYDecodeOffset {0}
 
MHBitmapDisplaym_pContent {nullptr}
 
- Protected Attributes inherited from MHVisible
int m_nOriginalBoxWidth {-1}
 
int m_nOriginalBoxHeight {-1}
 
int m_nOriginalPosX {0}
 
int m_nOriginalPosY {0}
 
MHObjectRef m_OriginalPaletteRef
 
int m_nBoxWidth {0}
 
int m_nBoxHeight {0}
 
int m_nPosX {0}
 
int m_nPosY {0}
 
MHObjectRef m_PaletteRef
 
- Protected Attributes inherited from MHIngredient
bool m_fInitiallyActive {true}
 
int m_nContentHook {0}
 
bool m_fShared {false}
 
enum MHIngredient:: { ... }  IN_NoContent
 
MHOctetString m_OrigIncludedContent
 
MHContentRef m_OrigContentRef
 
int m_nOrigContentSize {0}
 
int m_nOrigCCPrio {127}
 
MHOctetString m_IncludedContent
 
MHContentRef m_ContentRef
 
int m_nContentSize {0}
 
int m_nCCPrio {0}
 
- Protected Attributes inherited from MHRoot
bool m_fAvailable {false}
 
bool m_fRunning {false}
 

Additional Inherited Members

- Public Attributes inherited from MHRoot
MHObjectRef m_ObjectReference
 
- Protected Types inherited from MHIngredient
enum  { IN_NoContent, IN_IncludedContent, IN_ReferencedContent }
 
- Static Protected Member Functions inherited from MHVisible
static MHRgba GetColour (const MHColour &colour)
 

Detailed Description

Definition at line 36 of file Bitmap.h.

Constructor & Destructor Documentation

◆ MHBitmap() [1/2]

MHBitmap::MHBitmap ( )
default

Referenced by Clone().

◆ MHBitmap() [2/2]

MHBitmap::MHBitmap ( const MHBitmap ref)
inline

Definition at line 40 of file Bitmap.h.

◆ ~MHBitmap()

MHBitmap::~MHBitmap ( )
override

Definition at line 40 of file Bitmap.cpp.

Member Function Documentation

◆ ClassName()

const char* MHBitmap::ClassName ( )
inlineoverridevirtual

Implements MHRoot.

Definition at line 43 of file Bitmap.h.

◆ Initialise()

void MHBitmap::Initialise ( MHParseNode p,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 45 of file Bitmap.cpp.

◆ PrintMe()

void MHBitmap::PrintMe ( FILE *  fd,
int  nTabs 
) const
overridevirtual

Reimplemented from MHRoot.

Definition at line 67 of file Bitmap.cpp.

◆ Preparation()

void MHBitmap::Preparation ( MHEngine engine)
overridevirtual

Reimplemented from MHRoot.

Definition at line 89 of file Bitmap.cpp.

◆ ContentPreparation()

void MHBitmap::ContentPreparation ( MHEngine engine)
overridevirtual

Reimplemented from MHRoot.

Definition at line 101 of file Bitmap.cpp.

◆ ContentArrived()

void MHBitmap::ContentArrived ( const unsigned char *  data,
int  length,
MHEngine engine 
)
overridevirtual

Reimplemented from MHIngredient.

Definition at line 115 of file Bitmap.cpp.

◆ SetTransparency()

void MHBitmap::SetTransparency ( int  nTransPerCent,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 162 of file Bitmap.cpp.

◆ ScaleBitmap()

void MHBitmap::ScaleBitmap ( int  xScale,
int  yScale,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 180 of file Bitmap.cpp.

◆ SetBitmapDecodeOffset()

void MHBitmap::SetBitmapDecodeOffset ( int  newXOffset,
int  newYOffset,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 189 of file Bitmap.cpp.

◆ GetBitmapDecodeOffset()

void MHBitmap::GetBitmapDecodeOffset ( MHRoot pXOffset,
MHRoot pYOffset 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 199 of file Bitmap.cpp.

◆ Clone()

MHIngredient* MHBitmap::Clone ( MHEngine )
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 58 of file Bitmap.h.

◆ Display()

void MHBitmap::Display ( MHEngine d)
overridevirtual

Implements MHVisible.

Definition at line 205 of file Bitmap.cpp.

◆ GetVisibleArea()

QRegion MHBitmap::GetVisibleArea ( )
overridevirtual

Reimplemented from MHVisible.

Definition at line 218 of file Bitmap.cpp.

Referenced by ContentArrived(), CreateContent(), GetOpaqueArea(), ScaleBitmap(), and SetBitmapDecodeOffset().

◆ GetOpaqueArea()

QRegion MHBitmap::GetOpaqueArea ( )
overridevirtual

Reimplemented from MHVisible.

Definition at line 235 of file Bitmap.cpp.

◆ CreateContent()

void MHBitmap::CreateContent ( const unsigned char *  data,
int  length,
MHEngine engine 
)
protected

Definition at line 129 of file Bitmap.cpp.

Referenced by ContentArrived(), and ContentPreparation().

Member Data Documentation

◆ m_fTiling

bool MHBitmap::m_fTiling {false}
protected

Definition at line 67 of file Bitmap.h.

Referenced by Display(), Initialise(), and PrintMe().

◆ m_nOrigTransparency

int MHBitmap::m_nOrigTransparency {0}
protected

Definition at line 68 of file Bitmap.h.

Referenced by Initialise(), Preparation(), and PrintMe().

◆ m_nTransparency

int MHBitmap::m_nTransparency {0}
protected

Definition at line 71 of file Bitmap.h.

Referenced by Preparation(), and SetTransparency().

◆ m_nXDecodeOffset

int MHBitmap::m_nXDecodeOffset {0}
protected

Definition at line 73 of file Bitmap.h.

Referenced by Display(), GetBitmapDecodeOffset(), GetVisibleArea(), and SetBitmapDecodeOffset().

◆ m_nYDecodeOffset

int MHBitmap::m_nYDecodeOffset {0}
protected

Definition at line 74 of file Bitmap.h.

Referenced by Display(), GetBitmapDecodeOffset(), GetVisibleArea(), and SetBitmapDecodeOffset().

◆ m_pContent

MHBitmapDisplay* MHBitmap::m_pContent {nullptr}
protected

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