Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-03 17:45:53 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-03 18:51:31 +0300
commit9355a14657959553a3d25b55aeb84675f58694a3 (patch)
treed994e0d8bdc343050e0b0f0b9c55e723fde49951 /server/TracyTimelineController.cpp
parent8034fce416482995ba34e2f16f0bc1d008ba396a (diff)
New TimelineController begin/end logic.
Diffstat (limited to 'server/TracyTimelineController.cpp')
-rw-r--r--server/TracyTimelineController.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/server/TracyTimelineController.cpp b/server/TracyTimelineController.cpp
index f6686798..ae4297cb 100644
--- a/server/TracyTimelineController.cpp
+++ b/server/TracyTimelineController.cpp
@@ -20,8 +20,18 @@ void TimelineController::FirstFrameExpired()
m_firstFrame = false;
}
-void TimelineController::End( float offset )
+void TimelineController::Begin()
{
+ m_items.clear();
+}
+
+void TimelineController::End( double pxns, int offset, const ImVec2& wpos, bool hover, float yMin, float yMax )
+{
+ for( auto& item : m_items )
+ {
+ item->Draw( m_firstFrame, pxns, offset, wpos, hover, yMin, yMax );
+ }
+
const auto scrollPos = ImGui::GetScrollY();
if( scrollPos == 0 && m_scroll != 0 )
{