MythTV  master
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
MHText Class Reference

#include <Text.h>

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

Public Member Functions

 MHText ()=default
 
 MHText (const MHText &ref)
 
 ~MHText ()
 
const char * ClassName () override
 
void Initialise (MHParseNode *p, MHEngine *engine) override
 
void PrintMe (FILE *, 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 GetTextData (MHRoot *pDestination, MHEngine *) override
 
MHIngredientClone (MHEngine *) override
 
void SetBackgroundColour (const MHColour &colour, MHEngine *engine) override
 
void SetTextColour (const MHColour &colour, MHEngine *engine) override
 
void SetFontAttributes (const MHOctetString &fontAttrs, MHEngine *engine) override
 
void Display (MHEngine *engine) 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 (const 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
 
virtual QRegion GetVisibleArea ()
 
void ResetPosition () override
 
- Public Member Functions inherited from MHPresentable
 MHPresentable ()=default
 
 MHPresentable (const MHPresentable &ref)
 
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)
 
virtual ~MHIngredient ()=default
 
virtual bool InitiallyActive ()
 
virtual bool InitiallyAvailable ()
 
bool IsShared () 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 ()
 
 MHRoot (const MHRoot &)
 
virtual ~MHRoot ()
 
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 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 SetTransparency (int, MHEngine *)
 
virtual void ScaleBitmap (int, int, MHEngine *)
 
virtual void SetBitmapDecodeOffset (int, int, MHEngine *)
 
virtual void GetBitmapDecodeOffset (MHRoot *, MHRoot *)
 
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 *)
 

Static Public Member Functions

static int GetJustification (const char *str)
 
static int GetLineOrientation (const char *str)
 
static int GetStartCorner (const char *str)
 

Protected Types

enum  Justification { Start = 1, End, Centre, Justified }
 
enum  LineOrientation { Vertical = 1, Horizontal }
 
enum  StartCorner { UpperLeft = 1, UpperRight, LowerLeft, LowerRight }
 
- Protected Types inherited from MHIngredient
enum  { IN_NoContent, IN_IncludedContent, IN_ReferencedContent }
 

Protected Member Functions

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

Protected Attributes

MHFontBody m_OrigFont
 
MHOctetString m_OriginalFontAttrs
 
MHColour m_OriginalTextColour
 
MHColour m_OriginalBgColour
 
int m_nCharSet {-1}
 
Justification m_HorizJ {Start}
 
Justification m_VertJ {Start}
 
LineOrientation m_LineOrientation {Horizontal}
 
StartCorner m_StartCorner {UpperLeft}
 
bool m_fTextWrap {false}
 
MHColour m_textColour
 
MHColour m_bgColour
 
MHOctetString m_fontAttrs
 
MHOctetString m_Content
 
MHTextDisplaym_pDisplay {nullptr}
 
bool m_fNeedsRedraw {false}
 
- 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
 
- Static Protected Member Functions inherited from MHVisible
static MHRgba GetColour (const MHColour &colour)
 

Detailed Description

Definition at line 37 of file Text.h.

Member Enumeration Documentation

◆ Justification

enum MHText::Justification
protected
Enumerator
Start 
End 
Centre 
Justified 

Definition at line 79 of file Text.h.

◆ LineOrientation

enum MHText::LineOrientation
protected
Enumerator
Vertical 
Horizontal 

Definition at line 80 of file Text.h.

◆ StartCorner

enum MHText::StartCorner
protected
Enumerator
UpperLeft 
UpperRight 
LowerLeft 
LowerRight 

Definition at line 81 of file Text.h.

Constructor & Destructor Documentation

◆ MHText() [1/2]

MHText::MHText ( )
default

Referenced by Clone().

◆ MHText() [2/2]

MHText::MHText ( const MHText ref)

Definition at line 35 of file Text.cpp.

◆ ~MHText()

MHText::~MHText ( )

Definition at line 51 of file Text.cpp.

Member Function Documentation

◆ ClassName()

const char* MHText::ClassName ( )
inlineoverridevirtual

Implements MHRoot.

Reimplemented in MHHyperText.

Definition at line 43 of file Text.h.

◆ Initialise()

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

Reimplemented from MHIngredient.

Reimplemented in MHHyperText.

Definition at line 57 of file Text.cpp.

Referenced by MHHyperText::Initialise().

◆ PrintMe()

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

Reimplemented from MHIngredient.

Reimplemented in MHHyperText.

Definition at line 203 of file Text.cpp.

Referenced by MHHyperText::PrintMe().

◆ Preparation()

void MHText::Preparation ( MHEngine engine)
overridevirtual

Reimplemented from MHIngredient.

Definition at line 281 of file Text.cpp.

◆ ContentPreparation()

void MHText::ContentPreparation ( MHEngine engine)
overridevirtual

Reimplemented from MHIngredient.

Definition at line 330 of file Text.cpp.

◆ ContentArrived()

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

Reimplemented from MHIngredient.

Definition at line 346 of file Text.cpp.

◆ GetTextData()

void MHText::GetTextData ( MHRoot pDestination,
MHEngine  
)
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 54 of file Text.h.

◆ Clone()

MHIngredient* MHText::Clone ( MHEngine )
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 56 of file Text.h.

◆ SetBackgroundColour()

void MHText::SetBackgroundColour ( const MHColour colour,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 372 of file Text.cpp.

◆ SetTextColour()

void MHText::SetTextColour ( const MHColour colour,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 365 of file Text.cpp.

◆ SetFontAttributes()

void MHText::SetFontAttributes ( const MHOctetString fontAttrs,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 380 of file Text.cpp.

◆ GetJustification()

int MHText::GetJustification ( const char *  str)
static

Definition at line 150 of file Text.cpp.

Referenced by MHParseText::NextSym().

◆ GetLineOrientation()

int MHText::GetLineOrientation ( const char *  str)
static

Definition at line 169 of file Text.cpp.

Referenced by MHParseText::NextSym().

◆ GetStartCorner()

int MHText::GetStartCorner ( const char *  str)
static

Definition at line 190 of file Text.cpp.

Referenced by MHParseText::NextSym().

◆ Display()

void MHText::Display ( MHEngine engine)
overridevirtual

Implements MHVisible.

Definition at line 857 of file Text.cpp.

◆ GetOpaqueArea()

QRegion MHText::GetOpaqueArea ( )
overridevirtual

Reimplemented from MHVisible.

Definition at line 877 of file Text.cpp.

◆ Redraw()

void MHText::Redraw ( )
protected

Definition at line 539 of file Text.cpp.

Referenced by Display().

◆ CreateContent()

void MHText::CreateContent ( const unsigned char *  p,
int  s,
MHEngine engine 
)
protected

Definition at line 357 of file Text.cpp.

Referenced by ContentArrived(), and ContentPreparation().

Member Data Documentation

◆ m_OrigFont

MHFontBody MHText::m_OrigFont
protected

Definition at line 74 of file Text.h.

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

◆ m_OriginalFontAttrs

MHOctetString MHText::m_OriginalFontAttrs
protected

Definition at line 75 of file Text.h.

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

◆ m_OriginalTextColour

MHColour MHText::m_OriginalTextColour
protected

Definition at line 76 of file Text.h.

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

◆ m_OriginalBgColour

MHColour MHText::m_OriginalBgColour
protected

Definition at line 76 of file Text.h.

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

◆ m_nCharSet

int MHText::m_nCharSet {-1}
protected

Definition at line 77 of file Text.h.

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

◆ m_HorizJ

Justification MHText::m_HorizJ {Start}
protected

Definition at line 82 of file Text.h.

Referenced by Initialise(), MHText(), PrintMe(), and Redraw().

◆ m_VertJ

Justification MHText::m_VertJ {Start}
protected

Definition at line 83 of file Text.h.

Referenced by Initialise(), MHText(), PrintMe(), and Redraw().

◆ m_LineOrientation

LineOrientation MHText::m_LineOrientation {Horizontal}
protected

Definition at line 84 of file Text.h.

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

◆ m_StartCorner

StartCorner MHText::m_StartCorner {UpperLeft}
protected

Definition at line 85 of file Text.h.

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

◆ m_fTextWrap

bool MHText::m_fTextWrap {false}
protected

Definition at line 86 of file Text.h.

Referenced by Initialise(), MHText(), PrintMe(), and Redraw().

◆ m_textColour

MHColour MHText::m_textColour
protected

Definition at line 90 of file Text.h.

Referenced by Preparation(), Redraw(), and SetTextColour().

◆ m_bgColour

MHColour MHText::m_bgColour
protected

Definition at line 90 of file Text.h.

Referenced by Display(), GetOpaqueArea(), Preparation(), and SetBackgroundColour().

◆ m_fontAttrs

MHOctetString MHText::m_fontAttrs
protected

Definition at line 91 of file Text.h.

Referenced by Preparation(), Redraw(), and SetFontAttributes().

◆ m_Content

MHOctetString MHText::m_Content
protected

Definition at line 92 of file Text.h.

Referenced by ContentArrived(), CreateContent(), GetTextData(), and Redraw().

◆ m_pDisplay

MHTextDisplay* MHText::m_pDisplay {nullptr}
protected

Definition at line 94 of file Text.h.

Referenced by Display(), Initialise(), MHText(), Preparation(), Redraw(), and ~MHText().

◆ m_fNeedsRedraw

bool MHText::m_fNeedsRedraw {false}
protected

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