PowerUI.CacheProtocol Class Reference

Detailed Description

This protocol is used if you have a Texture2D object and want it on the screen. You must add the object to the ImageCache with a name, then use cache://thename to access it.

Inheritance diagram for PowerUI.CacheProtocol:
PowerUI.FileProtocol

Public Member Functions

 CacheProtocol ()
 
override string[] GetNames ()
 Returns all protocol names:// that can be used for this protocol. More...
 
override void OnGetGraphic (ImagePackage package, FilePath path)
 Attempts to get a graphic from the given location using this protocol. More...
 
- Public Member Functions inherited from PowerUI.FileProtocol
virtual bool FullAccess (FilePath path)
 Does the item at the given location have full access to the code security domain? Used by Nitro. If it does not have full access, the Nitro security domain is asked about the path instead. If you're unsure, leave this false! If your game uses simple web browsing, this essentially stops somebody writing dangerous Nitro on a remote webpage and directing your game at it. More...
 
virtual void OnGetData (DataPackage package, FilePath path)
 Get generic binary at the given path using this protocol. Used for e.g. fonts. Once it's been retrieved, this must call package.GotData(theText) internally. More...
 
virtual void OnGetText (TextPackage package, FilePath path)
 Get the file at the given path as some html text using this protocol. Once it's been retrieved, this must call package.GotText(theText) internally. More...
 
virtual void OnPostForm (FormData form, Element formElement, FilePath path)
 Submits the given form to the given path using this protocol. More...
 
virtual void OnFollowLink (Element linkElement, FilePath path)
 The user clicked on the given link which points to the given path. More...
 

Additional Inherited Members

- Public Attributes inherited from PowerUI.FileProtocol
bool UseResolution =true
 Should images delivered with this protocol append resolution based names? More...
 

Constructor & Destructor Documentation

PowerUI.CacheProtocol.CacheProtocol ( )
inline

Member Function Documentation

override string [] PowerUI.CacheProtocol.GetNames ( )
inlinevirtual

Returns all protocol names:// that can be used for this protocol.

Reimplemented from PowerUI.FileProtocol.

override void PowerUI.CacheProtocol.OnGetGraphic ( ImagePackage  package,
FilePath  path 
)
inlinevirtual

Attempts to get a graphic from the given location using this protocol.

Parameters
packageThe image request. GotGraphic must be called on this when the protocol is done.
pathThe location of the file to retrieve using this protocol.

Reimplemented from PowerUI.FileProtocol.