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
path: root/server
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-03 20:36:01 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-03 21:04:24 +0300
commit6abce4e0c9bd1bd3b0f475ded29163ad9d168f58 (patch)
tree2ee63e8836d61ea77a4b68fc66be6c61422e52e7 /server
parent6e36469840f31f8459b16ea8c114e38e355fb217 (diff)
Pass hover parameter to HeaderExtraContents().
Diffstat (limited to 'server')
-rw-r--r--server/TracyTimelineItem.cpp2
-rw-r--r--server/TracyTimelineItem.hpp2
-rw-r--r--server/TracyTimelineItemPlot.cpp2
-rw-r--r--server/TracyTimelineItemPlot.hpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/server/TracyTimelineItem.cpp b/server/TracyTimelineItem.cpp
index 7cf2c450..586151e9 100644
--- a/server/TracyTimelineItem.cpp
+++ b/server/TracyTimelineItem.cpp
@@ -94,7 +94,7 @@ void TimelineItem::Draw( bool firstFrame, double pxns, int& offset, const ImVec2
DrawContents( pxns, offset, wpos, hover, yMin, yMax );
if( drawHeader )
{
- HeaderExtraContents( hdrOffset, wpos, labelWidth );
+ HeaderExtraContents( hdrOffset, wpos, labelWidth, hover );
}
}
diff --git a/server/TracyTimelineItem.hpp b/server/TracyTimelineItem.hpp
index e40358e3..2861f61d 100644
--- a/server/TracyTimelineItem.hpp
+++ b/server/TracyTimelineItem.hpp
@@ -31,7 +31,7 @@ protected:
virtual const char* HeaderLabel() const = 0;
virtual void HeaderTooltip( const char* label ) const {};
- virtual void HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth ) {};
+ virtual void HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth, bool hover ) {};
virtual int64_t RangeBegin() const = 0;
virtual int64_t RangeEnd() const = 0;
diff --git a/server/TracyTimelineItemPlot.cpp b/server/TracyTimelineItemPlot.cpp
index 6d306779..28e66f44 100644
--- a/server/TracyTimelineItemPlot.cpp
+++ b/server/TracyTimelineItemPlot.cpp
@@ -81,7 +81,7 @@ void TimelineItemPlot::HeaderTooltip( const char* label ) const
ImGui::EndTooltip();
}
-void TimelineItemPlot::HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth )
+void TimelineItemPlot::HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth, bool hover )
{
auto draw = ImGui::GetWindowDrawList();
const auto ty = ImGui::GetTextLineHeight();
diff --git a/server/TracyTimelineItemPlot.hpp b/server/TracyTimelineItemPlot.hpp
index 4e3b6e05..75367eea 100644
--- a/server/TracyTimelineItemPlot.hpp
+++ b/server/TracyTimelineItemPlot.hpp
@@ -25,7 +25,7 @@ protected:
int64_t RangeEnd() const override;
void HeaderTooltip( const char* label ) const override;
- void HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth ) override;
+ void HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth, bool hover ) override;
private:
PlotData* m_plot;