opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
icon_cache.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <memory>
6#include <string_view>
7
8namespace osc { class Icon; }
9
10namespace osc
11{
12 class IconCache final {
13 public:
14 explicit IconCache(
15 ResourceLoader loader_prefixed_at_dir_containing_svgs,
16 float vertical_scale,
17 float device_pixel_ratio
18 );
19 IconCache(const IconCache&) = delete;
20 IconCache(IconCache&&) noexcept;
21 IconCache& operator=(const IconCache&) = delete;
22 IconCache& operator=(IconCache&&) noexcept;
23 ~IconCache() noexcept;
24
25 const Icon& find_or_throw(std::string_view icon_name) const;
26
27 private:
28 class Impl;
29 std::unique_ptr<Impl> impl_;
30 };
31}
Definition icon_cache.h:12
IconCache(ResourceLoader loader_prefixed_at_dir_containing_svgs, float vertical_scale, float device_pixel_ratio)
IconCache(const IconCache &)=delete
const Icon & find_or_throw(std::string_view icon_name) const
IconCache(IconCache &&) noexcept
Definition icon.h:11
Definition resource_loader.h:24
Definition custom_decoration_generator.h:5