Audacity 3.2.0
|
#include <MenuRegistry.h>
Public Member Functions | |
Visitor (VisitorFunctions< MenuTraits > functions, std::function< void()> doSeparator) | |
Public Member Functions inherited from Registry::VisitorFunctions< MenuTraits > | |
VisitorFunctions (Visitors &&visitors) | |
Type-erasing constructor. More... | |
void | BeginGroup (const GroupItem< MenuTraits > &item, const Path &path) const |
Call-through for a decorating pre-visitor. More... | |
void | Visit (const SingleItem &item, const Path &path) const |
Call-through for a decorating leaf-visitor. More... | |
void | EndGroup (const GroupItem< MenuTraits > &item, const Path &path) const |
Call-through for a decorating post-visitor. More... | |
Public Member Functions inherited from MenuRegistry::detail::VisitorBase | |
std::pair< bool, bool > | ShouldBeginGroup (const ItemProperties *pProperties) |
void | AfterBeginGroup (const ItemProperties *pProperties) |
bool | ShouldEndGroup (const ItemProperties *pProperties) |
bool | ShouldDoSeparator () |
Private Attributes | |
const VisitorFunctions< MenuTraits > | mWrapped |
const std::function< void()> | mDoSeparator |
Additional Inherited Members | |
Public Types inherited from Registry::VisitorFunctions< MenuTraits > | |
using | NodeTypes = detail::VisitedNodeTypes< MenuTraits > |
using | LeafTypes = detail::VisitedLeafTypes< MenuTraits > |
Public Attributes inherited from MenuRegistry::detail::VisitorBase | |
std::vector< bool > | firstItem |
std::vector< bool > | needSeparator |
Wraps the behavior of another VisitorFuntions<MenuTraits>, and also needs a callback for what to do at separator lines
Definition at line 135 of file MenuRegistry.h.
|
inline |
Definition at line 139 of file MenuRegistry.h.
References MenuRegistry::detail::VisitorBase::AfterBeginGroup(), details::begin(), Registry::VisitorFunctions< RegistryTraits, Reference >::BeginGroup(), Registry::VisitorFunctions< RegistryTraits, Reference >::EndGroup(), MenuRegistry::Visitor< MenuTraits >::mDoSeparator, MenuRegistry::Visitor< MenuTraits >::mWrapped, MenuRegistry::detail::VisitorBase::ShouldBeginGroup(), MenuRegistry::detail::VisitorBase::ShouldDoSeparator(), MenuRegistry::detail::VisitorBase::ShouldEndGroup(), and Registry::VisitorFunctions< RegistryTraits, Reference >::Visit().
|
private |
Definition at line 177 of file MenuRegistry.h.
Referenced by MenuRegistry::Visitor< MenuTraits >::Visitor().
|
private |
Definition at line 176 of file MenuRegistry.h.
Referenced by MenuRegistry::Visitor< MenuTraits >::Visitor().