/* * Copyright (c) 2021-2022, Sam Atkins * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::Painting { enum class ShadowPlacement { Outer, Inner, }; struct ShadowData { Gfx::Color color; int offset_x; int offset_y; int blur_radius; int spread_distance; ShadowPlacement placement; }; void paint_box_shadow(PaintContext&, Gfx::IntRect const&, BorderRadiiData const&, Vector const&); void paint_text_shadow(PaintContext&, Layout::LineBoxFragment const&, Vector const&); }