mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:12:44 +00:00 
			
		
		
		
	 7070713ec8
			
		
	
	
		7070713ec8
		
	
	
	
	
		
			
			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."
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			777 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			36 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;
 | |
| };
 | |
| 
 | |
| }
 |