|
virtual View * | CreateView (const ViewSettings &settings)=0 |
| Creates a new View with the spcified options.
|
|
virtual SystemCacheStats * | GetSystemCacheStats () const =0 |
| Returns an objects that holds the current statistics of the system-wide caches. Remember to Release when done.
|
|
virtual void | ClearCachedUnusedImages ()=0 |
| Removes all unused images (raster and svg) from internal caches. More...
|
|
virtual SystemRenderer * | CreateSystemRenderer (const SystemRendererSettings &settings)=0 |
| Creates a new SystemRenderer. The SystemRenderer will hold rendering resources shared by all view renderers.
|
|
virtual void | AddFontsFromFolder (const char *path)=0 |
| Loads all fonts from the specified folder. The fonts can later be used in the Views. More...
|
|
virtual void | AddBitmapFont (const char **imagesData, unsigned *imagesDataSize, unsigned imagesCount, const BitmapFontDescription &description)=0 |
| Load the bitmap font using image files. More...
|
|
virtual void | AddBitmapFont (const IAsyncResourceResponse::UserImageData *preloadedImages, unsigned imagesCount, const BitmapFontDescription &description)=0 |
| Load the bitmap font using preloaded images. More...
|
|
virtual void | SetDefaultFallbackFontName (const char *name)=0 |
| Loads font with given name from folders specified by AddFontsFromFolder. This font will be used when the another fond cannot be loaded or found as a default one. This font is a fallback if the font name used in a Style property is not found. If you want to change the default font that will be applied to all elements, you should change the value in LibraryParams::DefaultStyleFontFamily. More...
|
|
virtual void | Destroy ()=0 |
| Destroys the System.
|
|
virtual void | Advance (TimePoint timeMilliseconds)=0 |
| Advances the internal timers and inspector when available.
|
|
virtual void | RegisterGamepad (unsigned id, const char *info, unsigned axesCount, unsigned buttonsCount, void *reserved=nullptr)=0 |
| Registers a new gamepad. All views will receive the gamepadconnected event. You can provide any number of axes and buttons though the standard mapping according to the HTML spec has 4 axes and 17 buttons which can be found here https://w3c.github.io/gamepad/#remapping. More...
|
|
virtual void | UnregisterGamepad (unsigned id)=0 |
| Unregisters a gamepad. All views will receive the gamepaddisconnected event. More...
|
|
virtual void | UpdateGamepadState (const cohtml::GamepadState &state)=0 |
| Updates the state of a single gamepad. More...
|
|
virtual void | UpdateGamepadStateExtended (const cohtml::GamepadStateExtended &state)=0 |
| Updates the state of a single gamepad with motion tracking information. More...
|
|
virtual void | UserImagesChanged (const unsigned *images, unsigned count)=0 |
| Trigger repaint of a user provided texture. Call this whenever the image is changed by logic external to the library. Make sure to have ImageHandle set for such images. More...
|
|
A System owns multiple Views. These Views share resources among them. It is usually enough to have just one System per application run.