MythTV  master
Public Member Functions | Protected Types | Protected Attributes | Friends | List of all members
MHIngredient Class Reference

#include <Ingredients.h>

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

Public Member Functions

 MHIngredient ()=default
 
 MHIngredient (const MHIngredient &ref)
 
 ~MHIngredient () override=default
 
void Initialise (MHParseNode *p, MHEngine *engine) override
 
void PrintMe (FILE *fd, int nTabs) const override
 
virtual bool InitiallyActive ()
 
virtual bool InitiallyAvailable ()
 
bool IsShared () override
 
void Preparation (MHEngine *engine) override
 
void Destruction (MHEngine *engine) 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
 
virtual void ContentArrived (const unsigned char *, int, MHEngine *)
 
- Public Member Functions inherited from MHRoot
 MHRoot ()=default
 
 MHRoot (const MHRoot &)
 
virtual ~MHRoot ()=default
 
virtual void Activation (MHEngine *engine)
 
virtual void Deactivation (MHEngine *engine)
 
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 MHIngredientClone (MHEngine *)
 
virtual void Run (MHEngine *)
 
virtual void Stop (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 SetPosition (int, int, MHEngine *)
 
virtual void GetPosition (MHRoot *, MHRoot *)
 
virtual void SetBoxSize (int, int, MHEngine *)
 
virtual void GetBoxSize (MHRoot *, MHRoot *)
 
virtual void SetPaletteRef (const MHObjectRef &, MHEngine *)
 
virtual void BringToFront (MHEngine *)
 
virtual void SendToBack (MHEngine *)
 
virtual void PutBefore (const MHRoot *, MHEngine *)
 
virtual void PutBehind (const MHRoot *, MHEngine *)
 
virtual void ResetPosition ()
 
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, const MHPointVec &, const MHPointVec &, 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 *)
 
virtual const char * ClassName ()=0
 

Protected Types

enum  { IN_NoContent, IN_IncludedContent, IN_ReferencedContent }
 

Protected Attributes

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}
 

Friends

class MHEngine
 

Additional Inherited Members

- Public Attributes inherited from MHRoot
MHObjectRef m_ObjectReference
 
- Protected Member Functions inherited from MHRoot
void InvalidAction (const char *actionName)
 

Detailed Description

Definition at line 33 of file Ingredients.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
IN_NoContent 
IN_IncludedContent 
IN_ReferencedContent 

Definition at line 71 of file Ingredients.h.

Constructor & Destructor Documentation

◆ MHIngredient() [1/2]

MHIngredient::MHIngredient ( )
default

◆ MHIngredient() [2/2]

MHIngredient::MHIngredient ( const MHIngredient ref)

Definition at line 33 of file Ingredients.cpp.

◆ ~MHIngredient()

MHIngredient::~MHIngredient ( )
overridedefault

Member Function Documentation

◆ Initialise()

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

◆ PrintMe()

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

◆ InitiallyActive()

virtual bool MHIngredient::InitiallyActive ( )
inlinevirtual

Definition at line 42 of file Ingredients.h.

Referenced by MHGroup::Activation(), MHStream::Preparation(), and MHGroup::Preparation().

◆ InitiallyAvailable()

virtual bool MHIngredient::InitiallyAvailable ( )
inlinevirtual

Reimplemented in MHProgram.

Definition at line 43 of file Ingredients.h.

Referenced by MHGroup::Preparation().

◆ IsShared()

bool MHIngredient::IsShared ( )
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 44 of file Ingredients.h.

Referenced by MHEngine::TransitionToScene().

◆ Preparation()

void MHIngredient::Preparation ( MHEngine engine)
overridevirtual

◆ Destruction()

void MHIngredient::Destruction ( MHEngine engine)
overridevirtual

Reimplemented from MHRoot.

Reimplemented in MHListGroup, MHStream, and MHVisible.

Definition at line 175 of file Ingredients.cpp.

Referenced by MHStream::Destruction(), MHVisible::Destruction(), MHGroup::Destruction(), MHListGroup::Destruction(), and Unload().

◆ ContentPreparation()

void MHIngredient::ContentPreparation ( MHEngine engine)
overridevirtual

Reimplemented from MHRoot.

Reimplemented in MHVideo, MHText, and MHStream.

Definition at line 181 of file Ingredients.cpp.

Referenced by MHText::ContentPreparation(), MHBitmap::ContentPreparation(), and SetData().

◆ SetData() [1/2]

void MHIngredient::SetData ( const MHOctetString included,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 197 of file Ingredients.cpp.

◆ SetData() [2/2]

void MHIngredient::SetData ( const MHContentRef referenced,
bool  fSizeGiven,
int  size,
bool  fCCGiven,
int  cc,
MHEngine engine 
)
overridevirtual

Reimplemented from MHRoot.

Definition at line 220 of file Ingredients.cpp.

◆ Preload()

void MHIngredient::Preload ( MHEngine engine)
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 56 of file Ingredients.h.

◆ Unload()

void MHIngredient::Unload ( MHEngine engine)
inlineoverridevirtual

Reimplemented from MHRoot.

Definition at line 58 of file Ingredients.h.

◆ ContentArrived()

virtual void MHIngredient::ContentArrived ( const unsigned char *  ,
int  ,
MHEngine  
)
inlinevirtual

Reimplemented in MHBitmap, and MHText.

Definition at line 62 of file Ingredients.h.

Referenced by MHEngine::CheckContentRequests(), and MHEngine::RequestExternalContent().

Friends And Related Function Documentation

◆ MHEngine

friend class MHEngine
friend

Definition at line 81 of file Ingredients.h.

Member Data Documentation

◆ m_fInitiallyActive

bool MHIngredient::m_fInitiallyActive {true}
protected

◆ m_nContentHook

int MHIngredient::m_nContentHook {0}
protected

◆ m_fShared

bool MHIngredient::m_fShared {false}
protected

Definition at line 68 of file Ingredients.h.

Referenced by Initialise(), IsShared(), MHIngredient(), and PrintMe().

◆ IN_NoContent

enum { ... } MHIngredient::IN_NoContent

◆ m_origIncludedContent

MHOctetString MHIngredient::m_origIncludedContent
protected

Definition at line 72 of file Ingredients.h.

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

◆ m_origContentRef

MHContentRef MHIngredient::m_origContentRef
protected

Definition at line 73 of file Ingredients.h.

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

◆ m_nOrigContentSize

int MHIngredient::m_nOrigContentSize {0}
protected

Definition at line 74 of file Ingredients.h.

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

◆ m_nOrigCCPrio

int MHIngredient::m_nOrigCCPrio {127}
protected

Definition at line 75 of file Ingredients.h.

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

◆ m_includedContent

MHOctetString MHIngredient::m_includedContent
protected

◆ m_contentRef

MHContentRef MHIngredient::m_contentRef
protected

◆ m_nContentSize

int MHIngredient::m_nContentSize {0}
protected

Definition at line 79 of file Ingredients.h.

Referenced by MHIngredient(), Preparation(), and SetData().

◆ m_nCCPrio

int MHIngredient::m_nCCPrio {0}
protected

Definition at line 80 of file Ingredients.h.

Referenced by MHIngredient(), Preparation(), and SetData().


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