Add support for drawing timeline item overlays.

This commit is contained in:
Bartosz Taudul 2022-09-03 23:24:00 +02:00
parent 8e713e6366
commit e3007062fc
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ void TimelineItem::Draw( bool firstFrame, double pxns, int& offset, const ImVec2
}
}
DrawOverlay( wpos + ImVec2( 0, oldOffset ), wpos + ImVec2( w, offset ) );
ImGui::PopClipRect();
float labelWidth;

View File

@ -35,6 +35,7 @@ protected:
virtual int64_t RangeEnd() const = 0;
virtual bool DrawContents( double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) = 0;
virtual void DrawOverlay( const ImVec2& ul, const ImVec2& dr ) {}
virtual bool IsEmpty() const { return false; }