CLayer

Superclass:
Declared In:

Introduction

Base class for CBackground and CCard that implements most of the behaviour of those two things that can contain parts (HyperCard terminology for controls & text fields).



Member Functions

GetPropertyNamed
GoToSleep
IsLoaded
Save
ShowHandlersForObjectType

GetPropertyNamed


public

virtual bool GetPropertyNamed( const char *inPropertyName, size_t byteRangeStart, size_t byteRangeEnd, LEOContext *inContext, LEOValuePtr outValue );
Discussion

< Opposite of WakeUp().


GoToSleep


public

virtual void GoToSleep();
Discussion

< Actually activate the completely loaded layer because the user is about to use it. All OS-specific UI objects (windows, views) already exist at this point. Use this to e.g. start the insertion point of a text field flashing, or start a movie player that was playing when we quit.


IsLoaded


public

bool IsLoaded();
Discussion

< Save this layer to the given file package (i.e. .xstk folder) as an XML file.


Save


public

virtual bool Save( const std::string& inPackagePath );
Discussion

< Load this layer from its XML file, asynchronously. Once successfully done, sets mLoaded.


ShowHandlersForObjectType


public

virtual bool ShowHandlersForObjectType( std::string inTypeName );
Discussion

< Print a debug description of this object to the console.