mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Start extracting timeline height control logic.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef __TRACYTIMELINECONTROLLER_HPP__
|
||||
#define __TRACYTIMELINECONTROLLER_HPP__
|
||||
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
class TimelineController
|
||||
{
|
||||
public:
|
||||
TimelineController();
|
||||
|
||||
void End( float offset );
|
||||
|
||||
float GetHeight() const { return m_height; }
|
||||
|
||||
private:
|
||||
float m_height;
|
||||
float m_offset;
|
||||
float m_scroll;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user