mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
25 lines
471 B
C++
25 lines
471 B
C++
/*
|
|
* Copyright (c) 2023, MacDue <macdue@dueutil.tech>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/HTML/ImageData.h>
|
|
|
|
namespace Web::HTML {
|
|
|
|
// https://html.spec.whatwg.org/multipage/canvas.html#canvascompositing
|
|
class CanvasCompositing {
|
|
public:
|
|
virtual ~CanvasCompositing() = default;
|
|
|
|
virtual float global_alpha() const = 0;
|
|
virtual void set_global_alpha(float) = 0;
|
|
|
|
protected:
|
|
CanvasCompositing() = default;
|
|
};
|
|
|
|
}
|