MCPcopy Create free account
hub / github.com/audacity/audacity / AfterBeginGroup

Method AfterBeginGroup

libraries/lib-menus/MenuRegistry.cpp:61–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void detail::VisitorBase::AfterBeginGroup(
62 const ItemProperties *pProperties)
63{
64 const auto properties =
65 pProperties ? pProperties->GetProperties() : ItemProperties::None;
66
67 bool isMenu = false;
68 bool isExtension = false;
69
70 switch (properties) {
71 case ItemProperties::Whole:
72 case ItemProperties::Extension: {
73 isMenu = true;
74 isExtension = (properties == ItemProperties::Extension);
75 break;
76 }
77 default:
78 break;
79 }
80
81 if (isMenu) {
82 needSeparator.push_back(false);
83 firstItem.push_back(!isExtension);
84 }
85}
86
87bool detail::VisitorBase::ShouldEndGroup(
88 const ItemProperties *pProperties)

Callers

nothing calls this directly

Calls 2

GetPropertiesMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected