MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / AddPlace

Method AddPlace

external/ImGuiFileDialog/ImGuiFileDialog.cpp:3397–3409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3395}
3396
3397bool IGFD::PlacesFeature::GroupStruct::AddPlace(const std::string& vPlaceName, const std::string& vPlacePath, const bool vCanBeSaved, const FileStyle& vStyle) {
3398 if (vPlaceName.empty() || vPlacePath.empty()) {
3399 return false;
3400 }
3401 canBeSaved |= vCanBeSaved; // if one place must be saved so we mark the group to be saved
3402 PlaceStruct place;
3403 place.name = vPlaceName;
3404 place.path = vPlacePath;
3405 place.canBeSaved = vCanBeSaved;
3406 place.style = vStyle;
3407 places.push_back(place);
3408 return true;
3409}
3410
3411void IGFD::PlacesFeature::GroupStruct::AddPlaceSeparator(const float& vThickness) {
3412 PlaceStruct place;

Callers 4

m_InitPlacesMethod · 0.80
m_DrawPlacesPaneMethod · 0.80
DeserializePlacesMethod · 0.80
IGFD_AddPlaceFunction · 0.80

Calls 2

emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected