diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-09-04 00:24:00 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-09-04 00:24:00 +0300 |
commit | e3007062fcfe81ac3c121bcea7bc6ed87e5eb299 (patch) | |
tree | 5f04b1cada341224daf042671b91602172d3ecb9 /server | |
parent | 8e713e636672ccb0078d20fe62174a1f6b467265 (diff) |
Add support for drawing timeline item overlays.
Diffstat (limited to 'server')
-rw-r--r-- | server/TracyTimelineItem.cpp | 1 | ||||
-rw-r--r-- | server/TracyTimelineItem.hpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/server/TracyTimelineItem.cpp b/server/TracyTimelineItem.cpp index ed8a2c30..6b69021e 100644 --- a/server/TracyTimelineItem.cpp +++ b/server/TracyTimelineItem.cpp @@ -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; diff --git a/server/TracyTimelineItem.hpp b/server/TracyTimelineItem.hpp index 4233b3bb..655bea06 100644 --- a/server/TracyTimelineItem.hpp +++ b/server/TracyTimelineItem.hpp @@ -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; } |