MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / activeView

Method activeView

src/app/ui_context.cpp:63–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63DocumentView* UIContext::activeView() const
64{
65 if (!isUIAvailable())
66 return nullptr;
67
68 Workspace* workspace = App::instance()->workspace();
69 if (!workspace)
70 return nullptr;
71
72 WorkspaceView* view = workspace->activeView();
73 if (DocumentView* docView = dynamic_cast<DocumentView*>(view))
74 return docView;
75 else
76 return nullptr;
77}
78
79void UIContext::setActiveView(DocumentView* docView)
80{

Callers 2

updateDisplayTitleBarMethod · 0.45
setActiveViewMethod · 0.45

Calls 2

instanceFunction · 0.85
workspaceMethod · 0.80

Tested by

no test coverage detected