ScummVM API documentation
Titanic::CToggleRemoteGlyph Class Reference
Inheritance diagram for Titanic::CToggleRemoteGlyph:
Titanic::CPetRemoteGlyph Titanic::CPetGlyph Titanic::ListItem Titanic::CSaveableObject Titanic::CDeployComfortGlyph Titanic::CDeployFloralGlyph Titanic::CDeployFullyRelaxationGlyph Titanic::CDeployMaintenanceGlyph Titanic::CDeployMajorRelaxationGlyph Titanic::CDeployMajorStorageGlyph Titanic::CDeployMinorRelaxationGlyph Titanic::CDeployMinorStorageGlyph Titanic::CDeploySinkGlyph Titanic::CDeployWorkSurfaceGlyph Titanic::CEntertainmentDeviceGlyph Titanic::CInflateRelaxationGlyph

Public Member Functions

bool setup (CPetControl *petControl, CPetGlyphs *owner) override
 
void draw2 (CScreenManager *screenManager) override
 
bool elementMouseButtonDownMsg (const Point &pt, int petNum)
 
bool elementMouseButtonUpMsg (const Point &pt, int petNum)
 
- Public Member Functions inherited from Titanic::CPetGlyph
virtual bool reset ()
 
virtual void enter ()
 
virtual void leave ()
 
virtual void drawAt (CScreenManager *screenManager, const Point &pt, bool isHighlighted)
 
virtual void updateTooltip ()
 
virtual Rect getBounds () const
 
virtual bool MouseButtonDownMsg (const Point &pt)
 
virtual bool MouseDragStartMsg (CMouseDragStartMsg *msg)
 
virtual bool MouseDragMoveMsg (CMouseDragMoveMsg *msg)
 
virtual bool MouseDragEndMsg (CMouseDragEndMsg *msg)
 
virtual bool MouseButtonUpMsg (const Point &pt)
 
virtual bool MouseDoubleClickMsg (const CMouseDoubleClickMsg *msg)
 
virtual bool KeyCharMsg (int key)
 
virtual bool VirtualKeyCharMsg (CVirtualKeyCharMsg *msg)
 
virtual void unhighlightCurrent ()
 
virtual void highlightCurrent (const Point &pt)
 
virtual void glyphFocused (const Point &topLeft, bool flag)
 
virtual void selectGlyph (const Point &topLeft, const Point &pt)
 
virtual bool dragGlyph (const Point &topLeft, CMouseDragStartMsg *msg)
 
virtual bool contains (const Point &delta, const Point &pt)
 
virtual void getTooltip (CTextControl *text)
 
virtual void saveGlyph (SimpleFile *file, int indent)
 
virtual bool proc33 (CPetGlyph *glyph)
 
virtual bool isValid () const
 
virtual bool enterHighlighted ()
 
virtual void leaveHighlighted ()
 
virtual CGameObjectgetObjectAt ()
 
virtual bool doAction (CGlyphAction *action)
 
void translate (const Point &pt)
 
void translateBack (const Point &pt)
 
CPetGlyphsgetOwner ()
 
CPetControlgetPetControl () const
 
void setName (const CString &name, CPetControl *petControl)
 
bool isHighlighted () const
 
- Public Member Functions inherited from Titanic::ListItem
void save (SimpleFile *file, int indent) override
 
void load (SimpleFile *file) override
 
- Public Member Functions inherited from Titanic::CSaveableObject
virtual ClassDefgetType () const
 
bool isInstanceOf (const ClassDef *classDef) const
 
virtual void saveHeader (SimpleFile *file, int indent)
 
virtual void saveFooter (SimpleFile *file, int indent)
 

Protected Attributes

CPetGfxElement_toggle
 
bool _toggleFlag
 
- Protected Attributes inherited from Titanic::CPetRemoteGlyph
CPetGfxElement_callButton
 

Additional Inherited Members

- Static Public Member Functions inherited from Titanic::CSaveableObject
static void initClassList ()
 
static void freeClassList ()
 
static CSaveableObjectcreateInstance (const Common::String &name)
 
- Public Attributes inherited from Titanic::CPetGlyph
CPetGfxElement _element
 
CPetGlyphs_owner
 
- Public Attributes inherited from Titanic::ListItem
 CLASSDEF
 
- Static Public Attributes inherited from Titanic::CSaveableObject
static ClassDef_type
 
- Protected Member Functions inherited from Titanic::CPetRemoteGlyph
void setDefaults (const CString &name, CPetControl *petControl)
 
CPetRemoteGlyphsgetOwner () const
 
CPetGfxElementgetElement (uint id) const
 
- Protected Member Functions inherited from Titanic::CPetGlyph
CPetSectiongetPetSection () const
 

Member Function Documentation

◆ setup()

◆ draw2()

void Titanic::CToggleRemoteGlyph::draw2 ( CScreenManager screenManager)
overridevirtual

Handles any secondary drawing of the glyph

Reimplemented from Titanic::CPetGlyph.

Reimplemented in Titanic::CEntertainmentDeviceGlyph.

◆ elementMouseButtonDownMsg()

bool Titanic::CToggleRemoteGlyph::elementMouseButtonDownMsg ( const Point pt,
int  petNum 
)

Called for mouse button down messages to the default element

◆ elementMouseButtonUpMsg()

bool Titanic::CToggleRemoteGlyph::elementMouseButtonUpMsg ( const Point pt,
int  petNum 
)

Called for mouse button up messages to the default element


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