LeviLamina
Loading...
Searching...
No Matches
FontAlias.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/Font.h"
7#include "mc/deps/core/file/PathBuffer.h"
8#include "mc/deps/core/utility/NonOwnerPointer.h"
9#include "mc/deps/minecraft_renderer/renderer/Type.h"
10
11// auto generated forward declare list
12// clang-format off
13class FontHandle;
14class ResourceLocation;
15class ScreenContext;
16namespace Core { class Path; }
17namespace mce { class Color; }
18namespace mce { class MaterialPtr; }
19namespace mce { class TextureGroup; }
20namespace mce::Font { struct RenderingParameters; }
21// clang-format on
22
23class FontAlias : public ::Font {
24public:
25 // FontAlias inner types declare
26 // clang-format off
27 struct ReferenceData;
28 // clang-format on
29
30 // FontAlias inner types define
32 public:
33 // member variables
34 // NOLINTBEGIN
39 // NOLINTEND
40
41 public:
42 // prevent constructor by default
43 ReferenceData& operator=(ReferenceData const&);
45
46 public:
47 // member functions
48 // NOLINTBEGIN
50
51 MCNAPI ::FontAlias::ReferenceData& operator=(::FontAlias::ReferenceData&&);
52
54 // NOLINTEND
55
56 public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCNAPI void* $ctor(::FontAlias::ReferenceData const&);
60 // NOLINTEND
61
62 public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCNAPI void $dtor();
66 // NOLINTEND
67 };
68
69public:
70 // member variables
71 // NOLINTBEGIN
79 // NOLINTEND
80
81public:
82 // prevent constructor by default
83 FontAlias& operator=(FontAlias const&);
84 FontAlias(FontAlias const&);
85 FontAlias();
86
87public:
88 // virtual functions
89 // NOLINTBEGIN
90 virtual ~FontAlias() /*override*/ = default;
91
92 virtual float _getCharWidth(int uniChar, bool forceUnicode) /*override*/;
93
94 virtual bool supportsChar(int const& character) /*override*/;
95
96 virtual float getWrapHeight() const /*override*/;
97
98 virtual float getScaleFactor() const /*override*/;
99
100 virtual float getScaleFactor(int uniChar) const /*override*/;
101
102 virtual bool isScreenPixelAligned() const /*override*/;
103
104 virtual bool materialCanBeOverridden() const /*override*/;
105
106 virtual void setTextConstantsInScreenContext(
107 ::ScreenContext& screenContext,
108 int glyphSheet,
109 float guiScale,
110 ::mce::Color const& textColor,
111 bool hasShadow
112 ) const /*override*/;
113
114 virtual void uploadTextureToGPU() /*override*/;
115
116 virtual ::ResourceLocation _getFontSheetLocation(int sheet, bool forceUnicode) const /*override*/;
117
118 virtual ::mce::MaterialPtr const& getMaterial(int sheet, bool isOddGuiScale) const /*override*/;
119
120 virtual ::mce::Font::Type getType(int glyphSheet) const /*override*/;
121
122 virtual ::std::optional<::mce::Font::RenderingParameters> tryGetRenderingParameters(
123 ::ScreenContext const& screenContext,
124 int glyphSheet,
125 float guiScale,
126 ::mce::Color const& textColor,
127 bool hasShadow,
128 uint textureWidth,
129 uint textureHeight
130 ) const /*override*/;
131
132 virtual void loadFontData(bool uploadTextureImmediately) /*override*/;
133
134 virtual bool _supportsShadowInSingleDraw() /*override*/;
135
136 virtual void onLanguageChanged(::std::string const& languageCode) /*override*/;
137
138 virtual void _scanUnicodeCharacterSize(int character, int sheet, bool forceUnicode) /*override*/;
139
140 virtual float buildChar(
141 ::std::vector<::Font::GlyphQuad>& quads,
142 int i,
143 ::mce::Color const& color,
144 bool italic,
145 float x,
146 float y,
147 bool unicode
148 ) /*override*/;
149
150 virtual ::std::string _remapString(::std::string const& str) const /*override*/;
151
152 virtual void switchFontsource(::Core::Path const& asciiName, ::Core::Path const& unicodeName) /*override*/;
153
154 virtual ::std::pair<::Core::PathBuffer<::std::string> const&, ::Core::PathBuffer<::std::string> const&>
155 getFontSources() const /*override*/;
156 // NOLINTEND
157
158public:
159 // member functions
160 // NOLINTBEGIN
161 MCNAPI FontAlias(
162 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
163 ::std::vector<::FontAlias::ReferenceData>&& fontReferences,
164 float scaleFactor
165 );
166
167 MCNAPI ::Bedrock::NotNullNonOwnerPtr<::FontHandle const> getFontReferenceForSheet(int const& sheet) const;
168
169 MCNAPI ::Bedrock::NotNullNonOwnerPtr<::FontHandle const> getFontReferenceForUnicode(int const& character) const;
170 // NOLINTEND
171
172public:
173 // constructor thunks
174 // NOLINTBEGIN
175 MCNAPI void* $ctor(
176 ::std::shared_ptr<::mce::TextureGroup> textureGroup,
177 ::std::vector<::FontAlias::ReferenceData>&& fontReferences,
178 float scaleFactor
179 );
180 // NOLINTEND
181
182public:
183 // virtual function thunks
184 // NOLINTBEGIN
185 MCNAPI float $_getCharWidth(int uniChar, bool forceUnicode);
186
187 MCNAPI bool $supportsChar(int const& character);
188
189 MCNAPI float $getWrapHeight() const;
190
191 MCNAPI float $getScaleFactor() const;
192
193 MCNAPI float $getScaleFactor(int uniChar) const;
194
195 MCNAPI bool $isScreenPixelAligned() const;
196
197 MCNAPI bool $materialCanBeOverridden() const;
198
200 ::ScreenContext& screenContext,
201 int glyphSheet,
202 float guiScale,
203 ::mce::Color const& textColor,
204 bool hasShadow
205 ) const;
206
207 MCNAPI void $uploadTextureToGPU();
208
209 MCNAPI ::ResourceLocation $_getFontSheetLocation(int sheet, bool forceUnicode) const;
210
211 MCNAPI ::mce::MaterialPtr const& $getMaterial(int sheet, bool isOddGuiScale) const;
212
213 MCNAPI ::mce::Font::Type $getType(int glyphSheet) const;
214
215 MCNAPI ::std::optional<::mce::Font::RenderingParameters> $tryGetRenderingParameters(
216 ::ScreenContext const& screenContext,
217 int glyphSheet,
218 float guiScale,
219 ::mce::Color const& textColor,
220 bool hasShadow,
221 uint textureWidth,
222 uint textureHeight
223 ) const;
224
225 MCNAPI void $loadFontData(bool uploadTextureImmediately);
226
228
229 MCNAPI void $onLanguageChanged(::std::string const& languageCode);
230
231 MCNAPI void $_scanUnicodeCharacterSize(int character, int sheet, bool forceUnicode);
232
233 MCNAPI float $buildChar(
234 ::std::vector<::Font::GlyphQuad>& quads,
235 int i,
236 ::mce::Color const& color,
237 bool italic,
238 float x,
239 float y,
240 bool unicode
241 );
242
243 MCNAPI ::std::string $_remapString(::std::string const& str) const;
244
245 MCNAPI void $switchFontsource(::Core::Path const& asciiName, ::Core::Path const& unicodeName);
246
247 MCNAPI ::std::pair<::Core::PathBuffer<::std::string> const&, ::Core::PathBuffer<::std::string> const&>
249 // NOLINTEND
250
251public:
252 // vftables
253 // NOLINTBEGIN
254 MCNAPI static void** $vftable();
255 // NOLINTEND
256};
Definition FontAlias.h:5
MCAPI ::Bedrock::NotNullNonOwnerPtr<::FontHandle const > getFontReferenceForSheet(int const &sheet) const
MCAPI float $buildChar(::std::vector<::Font::GlyphQuad > &quads, int i, ::mce::Color const &color, bool italic, float x, float y, bool unicode)
MCAPI ::std::optional<::mce::Font::RenderingParameters > $tryGetRenderingParameters(::ScreenContext const &screenContext, int glyphSheet, float guiScale, ::mce::Color const &textColor, bool hasShadow, uint textureWidth, uint textureHeight) const
MCAPI void $uploadTextureToGPU()
MCAPI void * $ctor(::std::shared_ptr<::mce::TextureGroup > textureGroup, ::std::vector<::FontAlias::ReferenceData > &&fontReferences, float scaleFactor)
MCAPI float $_getCharWidth(int uniChar, bool forceUnicode)
MCAPI void $switchFontsource(::Core::Path const &asciiName, ::Core::Path const &unicodeName)
MCAPI ::Bedrock::NotNullNonOwnerPtr<::FontHandle const > getFontReferenceForUnicode(int const &character) const
MCAPI void $_scanUnicodeCharacterSize(int character, int sheet, bool forceUnicode)
MCAPI::std::string $_remapString(::std::string const &str) const
MCAPI::mce::MaterialPtr const & $getMaterial(int sheet, bool isOddGuiScale) const
MCAPI void $onLanguageChanged(::std::string const &languageCode)
MCAPI float $getWrapHeight() const
static MCAPI void ** $vftable()
MCAPI void $loadFontData(bool uploadTextureImmediately)
MCAPI ::std::pair<::Core::PathBuffer<::std::string > const &, ::Core::PathBuffer<::std::string > const & > $getFontSources() const
MCAPI::ResourceLocation $_getFontSheetLocation(int sheet, bool forceUnicode) const
MCAPI bool $supportsChar(int const &character)
MCAPI float $getScaleFactor() const
MCAPI void $setTextConstantsInScreenContext(::ScreenContext &screenContext, int glyphSheet, float guiScale, ::mce::Color const &textColor, bool hasShadow) const
MCAPI bool $materialCanBeOverridden() const
MCAPI::mce::Font::Type $getType(int glyphSheet) const
MCAPI bool $isScreenPixelAligned() const
MCAPI bool $_supportsShadowInSingleDraw()
Definition FontHandle.h:5
Definition Font.h:5
Definition ScreenContext.h:5
STL namespace.
Definition FontAlias.h:31
MCAPI ReferenceData(::FontAlias::ReferenceData const &)
MCAPI void * $ctor(::FontAlias::ReferenceData const &)
MCAPI::FontAlias::ReferenceData & operator=(::FontAlias::ReferenceData &&)
Definition Font.h:37
Definition Alias.h:14