Ultralight C++ API 1.3.0
Loading...
Searching...
No Matches
Platform.h
Go to the documentation of this file.
1/******************************************************************************
2 * This file is a part of Ultralight, an ultra-portable web-browser engine. *
3 * *
4 * See <https://ultralig.ht> for licensing and more. *
5 * *
6 * (C) 2023 Ultralight, Inc. *
7 *****************************************************************************/
8#pragma once
9#include "Defines.h"
10#include <Ultralight/String.h>
14
15namespace ultralight {
16
17///
18/// Get the native font loader for the current platform.
19///
20/// @note This singleton is owned by the library, do not destroy it.
21///
23
24///
25/// Get the native file system for the current platform, creating it if it
26/// doesn't exist using the base directory provided.
27///
28/// This is used to load data for file:/// URLs.
29///
30/// @param baseDir An base file path that will be used to resolve relative
31/// file paths. You can optionally specify "@resource_path"
32/// on macOS to use the app bundle's resource path.
33///
34/// @note This singleton is owned by the library, do not destroy it.
35///
37
38///
39/// Get the default logger (writes the log to a file on disk).
40///
41/// @param logPath A file path to write the log to.
42///
43/// @note This singleton is owned by the library, do not destroy it.
44///
46
47} // namespace ultralight
#define AExport
Definition Defines.h:42
User-defined file system interface.
Definition FileSystem.h:37
User-defined font loader interface.
Definition FontLoader.h:82
User-defined logging interface.
Definition Logger.h:32
UTF-8 String container with conversions for UTF-16 and UTF-32.
Definition String.h:21
Definition App.h:14
Logger * GetDefaultLogger(const String &logPath)
Get the default logger (writes the log to a file on disk).
FileSystem * GetPlatformFileSystem(const String &baseDir)
Get the native file system for the current platform, creating it if it doesn't exist using the base d...
FontLoader * GetPlatformFontLoader()
Get the native font loader for the current platform.