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

Method IsVisible

src/toolbars/ToolManager.cpp:1035–1052  ·  view source on GitHub ↗

Returns the visibility of the specified toolbar

Source from the content-addressed store, hash-verified

1033// Returns the visibility of the specified toolbar
1034//
1035bool ToolManager::IsVisible(Identifier type) const
1036{
1037 if (auto pBar = GetToolBar(type))
1038 return pBar->IsVisible();
1039 return false;
1040
1041#if 0
1042 // If toolbar is floating
1043 if( !t->IsDocked() )
1044 {
1045 // Must return state of floater window
1046 return t->GetParent()->IsShown();
1047 }
1048
1049 // Return state of docked toolbar
1050 return t->IsShown();
1051#endif
1052}
1053
1054//
1055// Toggles the visible/hidden state of a toolbar

Callers 3

ShowHideMethod · 0.45
OnShowToolBarMethod · 0.45

Calls 3

IsShownMethod · 0.80
IsDockedMethod · 0.45
GetParentMethod · 0.45

Tested by

no test coverage detected