MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / BeginFlash

Method BeginFlash

external/zep/src/buffer.cpp:1600–1615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1598 }
1599
1600 void ZepBuffer::BeginFlash(float seconds, FlashType flashType, const GlyphRange& range) {
1601 if (range.first == range.second) {
1602 return;
1603 }
1604
1605 auto spMarker = std::make_shared<RangeMarker>(*this);
1606 spMarker->SetRange(ByteRange(range.first.Index(), range.second.Index()));
1607 spMarker->SetBackgroundColor(ThemeColor::FlashColor);
1608 spMarker->displayType = RangeMarkerDisplayType::Timed | RangeMarkerDisplayType::Background;
1609 spMarker->markerType = RangeMarkerType::Mark;
1610 spMarker->duration = seconds;
1611 spMarker->flashType = flashType;
1612 timer_restart(spMarker->timer);
1613
1614 GetEditor().SetFlags(ZSetFlags(GetEditor().GetFlags(), ZepEditorFlags::FastUpdate));
1615 }
1616
1617 // Conversion to handle for clients that don't want to know about ZepBuffer, but pass
1618 // around references to them

Callers 1

HandleExCommandMethod · 0.80

Calls 8

ByteRangeClass · 0.85
timer_restartFunction · 0.85
ZSetFlagsFunction · 0.85
SetRangeMethod · 0.80
IndexMethod · 0.80
SetBackgroundColorMethod · 0.80
GetFlagsMethod · 0.80
SetFlagsMethod · 0.45

Tested by

no test coverage detected