MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ToggleOpen

Method ToggleOpen

apps/tetris/Tetris/TetrisNotebookUI.cpp:285–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285void TetrisNotebookDisplay::ToggleOpen()
286{
287 if (!_loaded || !_notebook || _notebook->IsAnimating())
288 {
289 return;
290 }
291
292 if (_notebook->IsOpen())
293 {
294 _notebook->Close();
295 }
296 else
297 {
298 _notebook->Open();
299 }
300}
301
302bool TetrisNotebookDisplay::IsOpen() const
303{

Callers 1

RunMainLoopMethod · 0.80

Calls 4

IsAnimatingMethod · 0.80
IsOpenMethod · 0.45
CloseMethod · 0.45
OpenMethod · 0.45

Tested by

no test coverage detected