MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / IsDisplayed

Method IsDisplayed

src/base_grid.cpp:623–628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623bool BaseGrid::IsDisplayed(const AssDialogue *line) const {
624 if (!context->project->VideoProvider()) return false;
625 int frame = context->videoController->GetFrameN();
626 return context->project->Timecodes().FrameAtTime(line->Start, agi::vfr::START) <= frame
627 && context->project->Timecodes().FrameAtTime(line->End, agi::vfr::END) >= frame;
628}
629
630void BaseGrid::OnCharHook(wxKeyEvent &event) {
631 if (hotkey::check("Subtitle Grid", context, event))

Callers

nothing calls this directly

Calls 3

VideoProviderMethod · 0.80
GetFrameNMethod · 0.80
FrameAtTimeMethod · 0.45

Tested by

no test coverage detected