LeviLamina
Loading...
Searching...
No Matches
FontRepository.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/application/AppPlatformListener.h"
7#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
8
9// auto generated forward declare list
10// clang-format off
11class Font;
12class FontHandle;
13namespace Core { class Path; }
14namespace mce { class TextureGroup; }
15// clang-format on
16
17class FontRepository : public ::AppPlatformListener, public ::Bedrock::EnableNonOwnerReferences {
18public:
19 // member variables
20 // NOLINTBEGIN
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 FontRepository& operator=(FontRepository const&);
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 virtual ~FontRepository() /*override*/;
45
46 virtual void onAppSuspended() /*override*/;
47
48 virtual void onDeviceLost() /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
55
56 MCNAPI void _queueBitmapFont(
57 ::std::string const& alias,
58 ::Core::Path const& asciiName,
59 ::Core::Path const& unicodeName,
60 ::std::weak_ptr<::mce::TextureGroup> textureGroupWeakPtr
61 );
62
63 MCNAPI void _queueMsdfFont(
64 ::std::string const& alias,
65 ::Core::Path const& fontPagePrefix,
66 ::std::weak_ptr<::mce::TextureGroup> textureGroupWeakPtr
67 );
68
69 MCNAPI void _setDefaultFont(::std::string const& fontName, uint64 fontId, ::std::shared_ptr<::Font> font);
70
71 MCNAPI void _setFontIfOverride(uint64 fontId, ::std::shared_ptr<::Font> font);
72
73 MCNAPI uint64 addPreloadedFont(::std::string const& fontName, ::std::shared_ptr<::Font> font);
74
76 ::FontHandle& defaultFontHandle,
77 ::FontHandle& runeFontHandle,
78 ::FontHandle& unicodeFontHandle,
79 ::FontHandle& smoothLatinFontHandle,
80 ::FontHandle& uiFontHandle
81 );
82
83 MCNAPI void loadDefaultFonts(::std::shared_ptr<::mce::TextureGroup> textureGroup);
84
85 MCNAPI void parseAndLoadMetadataFonts(::std::shared_ptr<::mce::TextureGroup> textureGroup);
86
87 MCNAPI void prepForShutdown();
88
89 MCNAPI void reloadFontTextures(bool blockingLoad);
90
91 MCNAPI void resetPerFontData();
92
93 MCNAPI void setFont(uint64 fontId, ::std::shared_ptr<::Font> font);
94
95 MCNAPI void setMinecraftUIFontStyle(::std::string const& languageCode);
96
97 MCNAPI void setUseFontOverrides(bool useOverrides);
98 // NOLINTEND
99
100public:
101 // static variables
102 // NOLINTBEGIN
103 MCNAPI static uint64& INVALID_FONT();
104 // NOLINTEND
105
106public:
107 // constructor thunks
108 // NOLINTBEGIN
109 MCNAPI void* $ctor();
110 // NOLINTEND
111
112public:
113 // destructor thunk
114 // NOLINTBEGIN
115 MCNAPI void $dtor();
116 // NOLINTEND
117
118public:
119 // virtual function thunks
120 // NOLINTBEGIN
121 MCNAPI void $onAppSuspended();
122
123 MCNAPI void $onDeviceLost();
124 // NOLINTEND
125
126public:
127 // vftables
128 // NOLINTBEGIN
129 MCNAPI static void** $vftableForAppPlatformListener();
130
132 // NOLINTEND
133};
Definition FontHandle.h:5
Definition FontRepository.h:5
MCAPI void _queueBitmapFont(::std::string const &alias, ::Core::Path const &asciiName, ::Core::Path const &unicodeName, ::std::weak_ptr<::mce::TextureGroup > textureGroupWeakPtr)
MCAPI void setUseFontOverrides(bool useOverrides)
static MCAPI void ** $vftableForAppPlatformListener()
MCAPI void setFont(uint64 fontId, ::std::shared_ptr<::Font > font)
MCAPI void setMinecraftUIFontStyle(::std::string const &languageCode)
static MCAPI uint64 & INVALID_FONT()
MCAPI void _setDefaultFont(::std::string const &fontName, uint64 fontId, ::std::shared_ptr<::Font > font)
MCAPI FontRepository()
MCAPI void $dtor()
MCAPI void $onDeviceLost()
MCAPI void getDefaultFontHandles(::FontHandle &defaultFontHandle, ::FontHandle &runeFontHandle, ::FontHandle &unicodeFontHandle, ::FontHandle &smoothLatinFontHandle, ::FontHandle &uiFontHandle)
MCAPI void loadDefaultFonts(::std::shared_ptr<::mce::TextureGroup > textureGroup)
MCAPI void _queueMsdfFont(::std::string const &alias, ::Core::Path const &fontPagePrefix, ::std::weak_ptr<::mce::TextureGroup > textureGroupWeakPtr)
MCAPI uint64 addPreloadedFont(::std::string const &fontName, ::std::shared_ptr<::Font > font)
MCAPI void resetPerFontData()
MCAPI void $onAppSuspended()
static MCAPI void ** $vftableForEnableNonOwnerReferences()
MCAPI void _setFontIfOverride(uint64 fontId, ::std::shared_ptr<::Font > font)
MCAPI void reloadFontTextures(bool blockingLoad)
MCAPI void prepForShutdown()
MCAPI void * $ctor()
MCAPI void parseAndLoadMetadataFonts(::std::shared_ptr<::mce::TextureGroup > textureGroup)
Definition Font.h:5
Definition Alias.h:14