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-04 00:17:57 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-04 00:17:57 +0300
commit8e713e636672ccb0078d20fe62174a1f6b467265 (patch)
tree97e7faa931ce79d836896c28d1c11bd580e7a87f /server
parent5cbf06ba310b7b369b296d0814fb04d76f6d4f41 (diff)
Limit access to internal methods.
Diffstat (limited to 'server')
-rw-r--r--server/TracyTimelineItem.hpp7
-rw-r--r--server/TracyTimelineItemPlot.hpp7
2 files changed, 8 insertions, 6 deletions
diff --git a/server/TracyTimelineItem.hpp b/server/TracyTimelineItem.hpp
index 4daa0c9b..4233b3bb 100644
--- a/server/TracyTimelineItem.hpp
+++ b/server/TracyTimelineItem.hpp
@@ -18,9 +18,6 @@ public:
virtual ~TimelineItem() = default;
void Draw( bool firstFrame, double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax );
- virtual bool DrawContents( double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) = 0;
-
- virtual bool IsEmpty() const { return false; }
void VisibilityCheckbox();
void SetVisible( bool visible ) { m_visible = visible; }
@@ -37,6 +34,10 @@ protected:
virtual int64_t RangeBegin() const = 0;
virtual int64_t RangeEnd() const = 0;
+ virtual bool DrawContents( double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) = 0;
+
+ virtual bool IsEmpty() const { return false; }
+
private:
void AdjustThreadHeight( bool firstFrame, int oldOffset, int& offset );
float AdjustThreadPosition( float wy, int& offset );
diff --git a/server/TracyTimelineItemPlot.hpp b/server/TracyTimelineItemPlot.hpp
index d549777b..f51aa06f 100644
--- a/server/TracyTimelineItemPlot.hpp
+++ b/server/TracyTimelineItemPlot.hpp
@@ -12,9 +12,6 @@ class TimelineItemPlot final : public TimelineItem
public:
TimelineItemPlot( View& view, Worker& worker, PlotData* plot );
- bool DrawContents( double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) override;
- bool IsEmpty() const override;
-
protected:
uint32_t HeaderColor() const override { return 0xFF44DDDD; }
uint32_t HeaderColorInactive() const override { return 0xFF226E6E; }
@@ -27,6 +24,10 @@ protected:
void HeaderTooltip( const char* label ) const override;
void HeaderExtraContents( int offset, const ImVec2& wpos, float labelWidth, double pxns, bool hover ) override;
+ bool DrawContents( double pxns, int& offset, const ImVec2& wpos, bool hover, float yMin, float yMax ) override;
+
+ bool IsEmpty() const override;
+
private:
PlotData* m_plot;
};