MCPcopy Create free account
hub / github.com/EasyRPG/Player / ApplyStyle

Method ApplyStyle

src/font.cpp:905–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905Font::StyleScopeGuard Font::ApplyStyle(Style new_style) {
906 vApplyStyle(new_style);
907 current_style = new_style;
908 style_applied = true;
909
910 return lcf::ScopeGuard<std::function<void()>>([&]() {
911 vApplyStyle(original_style);
912 current_style = original_style;
913 style_applied = false;
914 });
915}
916
917ExFont::ExFont() : Font("exfont", HEIGHT, false, false) {
918}

Callers 3

RefreshMethod · 0.80
DrawMethod · 0.80
GetSizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected