serenity/Userland/DevTools/Profiler/TimelineContainer.h
Lenny Maiorani 7070713ec8 DevTools: Use default constructors/destructors
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules

"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
2022-02-16 07:33:15 -05:00

37 lines
777 B
C++

/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibGUI/AbstractScrollableWidget.h>
namespace Profiler {
class TimelineView;
class TimelineContainer : public GUI::AbstractScrollableWidget {
C_OBJECT(TimelineContainer);
public:
virtual ~TimelineContainer() override = default;
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<TimelineView> m_timeline_view;
RefPtr<GUI::Widget> m_header_container;
};
}