/* * Copyright (c) 2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include namespace Profiler { class TimelineView; class TimelineContainer : public GUI::AbstractScrollableWidget { C_OBJECT(TimelineContainer); public: virtual ~TimelineContainer(); protected: virtual void did_scroll() override; virtual void resize_event(GUI::ResizeEvent&) override; private: void update_widget_sizes(); void update_widget_positions(); TimelineContainer(GUI::Widget& header_container, TimelineView&); RefPtr m_timeline_view; RefPtr m_header_container; }; }