mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:52:45 +00:00 
			
		
		
		
	 19a4b820c4
			
		
	
	
		19a4b820c4
		
	
	
	
	
		
			
			This has been overkill from the start, and it has been bugging me for a long time. With this change, we're probably a bit slower on most platforms but save huge amounts of space with all in-memory sample datastructures.
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			816 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			816 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Cesar Torres <shortanemoia@protonmail.com>
 | |
|  * Copyright (c) 2022, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include "VisualizationWidget.h"
 | |
| #include <LibGUI/Frame.h>
 | |
| 
 | |
| class AlbumCoverVisualizationWidget final : public VisualizationWidget {
 | |
|     C_OBJECT(AlbumCoverVisualizationWidget)
 | |
| 
 | |
| public:
 | |
|     ~AlbumCoverVisualizationWidget() override = default;
 | |
|     void start_new_file(StringView) override;
 | |
| 
 | |
| private:
 | |
|     void render(GUI::PaintEvent&, FixedArray<float> const&) override { }
 | |
|     void paint_event(GUI::PaintEvent&) override;
 | |
|     AlbumCoverVisualizationWidget() = default;
 | |
|     ErrorOr<NonnullRefPtr<Gfx::Bitmap>> get_album_cover(StringView const filename);
 | |
| 
 | |
|     RefPtr<Gfx::Bitmap> m_serenity_bg;
 | |
|     RefPtr<Gfx::Bitmap> m_album_cover;
 | |
| };
 |