/src/serenity/Userland/Libraries/LibWeb/HTML/Canvas/CanvasImageSmoothing.h
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2023, Andreas Kling <kling@serenityos.org> |
3 | | * |
4 | | * SPDX-License-Identifier: BSD-2-Clause |
5 | | */ |
6 | | |
7 | | #pragma once |
8 | | |
9 | | #include <LibWeb/HTML/ImageData.h> |
10 | | |
11 | | namespace Web::HTML { |
12 | | |
13 | | // https://html.spec.whatwg.org/multipage/canvas.html#canvasimagesmoothing |
14 | | class CanvasImageSmoothing { |
15 | | public: |
16 | 0 | virtual ~CanvasImageSmoothing() = default; |
17 | | |
18 | | virtual bool image_smoothing_enabled() const = 0; |
19 | | virtual void set_image_smoothing_enabled(bool) = 0; |
20 | | virtual Bindings::ImageSmoothingQuality image_smoothing_quality() const = 0; |
21 | | virtual void set_image_smoothing_quality(Bindings::ImageSmoothingQuality) = 0; |
22 | | |
23 | | protected: |
24 | 0 | CanvasImageSmoothing() = default; |
25 | | }; |
26 | | |
27 | | } |