MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / topPane

Method topPane

source/windowing/StarPaneManager.cpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63PanePtr PaneManager::topPane(Set<PaneLayer> const& paneLayers) const {
64 for (auto const& layerPair : m_displayedPanes) {
65 if (paneLayers.contains(layerPair.first) && !layerPair.second.empty())
66 return layerPair.second.firstKey();
67 }
68 return {};
69}
70
71PanePtr PaneManager::topPane() const {
72 for (auto const& layerPair : m_displayedPanes) {

Callers 4

windowsOpenMethod · 0.80
preUpdateMethod · 0.80
updateMethod · 0.80
pollDialogMethod · 0.80

Calls 3

firstKeyMethod · 0.80
containsMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected