2022-09-03 14:54:46 +00:00
|
|
|
#ifndef __TRACYTIMELINEITEMPLOT_HPP__
|
|
|
|
#define __TRACYTIMELINEITEMPLOT_HPP__
|
|
|
|
|
|
|
|
#include "TracyEvent.hpp"
|
|
|
|
#include "TracyTimelineItem.hpp"
|
|
|
|
|
|
|
|
namespace tracy
|
|
|
|
{
|
|
|
|
|
|
|
|
class TimelineItemPlot final : public TimelineItem
|
|
|
|
{
|
|
|
|
public:
|
2022-09-03 16:34:11 +00:00
|
|
|
TimelineItemPlot( View& view, Worker& worker, PlotData* plot );
|
2022-09-03 14:54:46 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
uint32_t HeaderColor() const override { return 0xFF44DDDD; }
|
|
|
|
uint32_t HeaderColorInactive() const override { return 0xFF226E6E; }
|
|
|
|
uint32_t HeaderLineColor() const override { return 0x8844DDDD; }
|
|
|
|
const char* HeaderLabel() const override;
|
|
|
|
|
|
|
|
int64_t RangeBegin() const override;
|
|
|
|
int64_t RangeEnd() const override;
|
|
|
|
|
|
|
|
void HeaderTooltip( const char* label ) const override;
|
2023-03-18 15:07:56 +00:00
|
|
|
void HeaderExtraContents( const TimelineContext& ctx, int offset, float labelWidth ) override;
|
2022-09-03 14:54:46 +00:00
|
|
|
|
2023-03-18 15:07:56 +00:00
|
|
|
bool DrawContents( const TimelineContext& ctx, int& offset ) override;
|
2022-09-03 21:17:57 +00:00
|
|
|
|
|
|
|
bool IsEmpty() const override;
|
|
|
|
|
2022-09-03 14:54:46 +00:00
|
|
|
private:
|
|
|
|
PlotData* m_plot;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|