#include <resource.hpp>
|
enum | Kind : uint8_t {
Unknown = 0
, Style
, Source
, Tile
,
Glyphs
, SpriteImage
, SpriteJSON
, Image
} |
|
enum class | Priority : bool { Regular
, Low
} |
|
enum class | Usage : bool { Online
, Offline
} |
|
enum class | StoragePolicy : bool { Permanent
, Volatile
} |
|
enum class | LoadingMethod : uint8_t {
None = 0b00
, Cache = 0b01
, Network = 0b10
, CacheOnly = Cache
,
NetworkOnly = Network
, All = Cache | Network
} |
|
|
static Resource | style (const std::string &url) |
|
static Resource | source (const std::string &url) |
|
static Resource | tile (const std::string &urlTemplate, float pixelRatio, int32_t x, int32_t y, int8_t z, Tileset::Scheme scheme, LoadingMethod=LoadingMethod::All) |
|
static Resource | glyphs (const std::string &urlTemplate, const FontStack &fontStack, const std::pair< uint16_t, uint16_t > &glyphRange) |
|
static Resource | spriteImage (const std::string &base, float pixelRatio) |
|
static Resource | spriteJSON (const std::string &base, float pixelRatio) |
|
static Resource | image (const std::string &url) |
|
Definition at line 13 of file resource.hpp.
◆ Kind
Enumerator |
---|
Unknown | |
Style | |
Source | |
Tile | |
Glyphs | |
SpriteImage | |
SpriteJSON | |
Image | |
Definition at line 15 of file resource.hpp.
◆ LoadingMethod
Enumerator |
---|
None | |
Cache | |
Network | |
CacheOnly | |
NetworkOnly | |
All | |
Definition at line 46 of file resource.hpp.
◆ Priority
◆ StoragePolicy
Enumerator |
---|
Permanent | |
Volatile | |
Definition at line 36 of file resource.hpp.
◆ Usage
◆ Resource()
◆ glyphs()
static Resource mbgl::Resource::glyphs |
( |
const std::string & |
urlTemplate, |
|
|
const FontStack & |
fontStack, |
|
|
const std::pair< uint16_t, uint16_t > & |
glyphRange |
|
) |
| |
|
static |
◆ hasLoadingMethod()
◆ image()
static Resource mbgl::Resource::image |
( |
const std::string & |
url | ) |
|
|
static |
◆ setPriority()
void mbgl::Resource::setPriority |
( |
Priority |
p | ) |
|
|
inline |
◆ setUsage()
void mbgl::Resource::setUsage |
( |
Usage |
u | ) |
|
|
inline |
◆ source()
static Resource mbgl::Resource::source |
( |
const std::string & |
url | ) |
|
|
static |
◆ spriteImage()
static Resource mbgl::Resource::spriteImage |
( |
const std::string & |
base, |
|
|
float |
pixelRatio |
|
) |
| |
|
static |
◆ spriteJSON()
static Resource mbgl::Resource::spriteJSON |
( |
const std::string & |
base, |
|
|
float |
pixelRatio |
|
) |
| |
|
static |
◆ style()
static Resource mbgl::Resource::style |
( |
const std::string & |
url | ) |
|
|
static |
◆ tile()
◆ kind
Kind mbgl::Resource::kind |
◆ loadingMethod
◆ minimumUpdateInterval
Duration mbgl::Resource::minimumUpdateInterval {Duration::zero()} |
◆ priorData
std::shared_ptr<const std::string> mbgl::Resource::priorData |
◆ priorEtag
std::optional<std::string> mbgl::Resource::priorEtag = std::nullopt |
◆ priorExpires
std::optional<Timestamp> mbgl::Resource::priorExpires = std::nullopt |
◆ priority
◆ priorModified
std::optional<Timestamp> mbgl::Resource::priorModified = std::nullopt |
◆ storagePolicy
◆ tileData
std::optional<TileData> mbgl::Resource::tileData |
◆ url
std::string mbgl::Resource::url |
◆ usage
The documentation for this class was generated from the following file:
- /home/runner/work/maplibre-native/maplibre-native/include/mbgl/storage/resource.hpp