| 
									
										
										
										
											2023-03-29 18:35:02 +02:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2024-10-04 13:19:50 +02:00
										 |  |  |  * Copyright (c) 2023, Andreas Kling <andreas@ladybird.org> | 
					
						
							| 
									
										
										
										
											2023-03-29 18:35:02 +02:00
										 |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: BSD-2-Clause | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <LibWeb/HTML/ImageData.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace Web::HTML { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // https://html.spec.whatwg.org/multipage/canvas.html#canvasimagesmoothing
 | 
					
						
							|  |  |  | class CanvasImageSmoothing { | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     virtual ~CanvasImageSmoothing() = default; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     virtual bool image_smoothing_enabled() const = 0; | 
					
						
							|  |  |  |     virtual void set_image_smoothing_enabled(bool) = 0; | 
					
						
							|  |  |  |     virtual Bindings::ImageSmoothingQuality image_smoothing_quality() const = 0; | 
					
						
							|  |  |  |     virtual void set_image_smoothing_quality(Bindings::ImageSmoothingQuality) = 0; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | protected: | 
					
						
							|  |  |  |     CanvasImageSmoothing() = default; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |