MCPcopy Create free account
hub / github.com/aiekick/ImGuiFontStudio / Clear

Method Clear

src/Project/ProjectFile.cpp:46–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void ProjectFile::Clear()
47{
48 m_ProjectFilePathName.clear();
49 m_ProjectFilePath.clear();
50 m_MergedFontPrefix.clear();
51 m_Fonts.clear();
52 m_ShowRangeColoring = false;
53 m_RangeColoringHash = ImVec4(10, 15, 35, 0.5f);
54 m_Preview_Glyph_CountX = 20;
55 m_CurrentFont = 0;
56 m_CountSelectedGlyphs = 0; // for all fonts
57 m_IsLoaded = false;
58 m_IsThereAnyNotSavedChanged = false;
59 m_GenMode = (GenModeFlags)(
60 GenModeFlags::GENERATOR_MODE_CURRENT_HEADER |
61 GenModeFlags::GENERATOR_MODE_HEADER_SETTINGS_ORDER_BY_NAMES |
62 GenModeFlags::GENERATOR_MODE_FONT_SETTINGS_USE_POST_TABLES);
63
64 Messaging::Instance()->Clear();
65}
66
67void ProjectFile::New()
68{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected