Rebel Fork Framework
Urho3D::Detail::RmlFile Class Reference
Inheritance diagram for Urho3D::Detail::RmlFile:

Public Member Functions

 RmlFile (Context *context)
 Construct.
 
Rml::FileHandle Open (const Rml::String &path) override
 Opens a file.
 
void Close (Rml::FileHandle file) override
 Closes a previously opened file.
 
size_t Read (void *buffer, size_t size, Rml::FileHandle file) override
 Reads data from a previously opened file.
 
bool Seek (Rml::FileHandle file, long offset, int origin) override
 Seeks to a point in a previously opened file.
 
size_t Tell (Rml::FileHandle file) override
 Returns the current position of the file pointer.
 
size_t Length (Rml::FileHandle file) override
 Returns the length of the file.
 
bool IsResourceLoaded (const ea::string &resourceName)
 Returns true if file was opened since last call to ClearOpenedFiles().
 
void ClearLoadedResources ()
 Clear a set of opened files.
 

Private Attributes

WeakPtr< Contextcontext_
 Context pointer.
 
ea::unordered_set< ea::string > loadedResources_
 A set of loaded files. Used to trigger UI reloads when resource cache reloads a modified file.
 

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