2021-09-19 15:00:47 +01:00
|
|
|
/*
|
2022-02-08 14:48:37 +00:00
|
|
|
* Copyright (c) 2021-2022, Sam Atkins <atkinssj@serenityos.org>
|
2021-09-19 15:00:47 +01:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2021-10-02 21:56:05 +02:00
|
|
|
#include <LibGfx/Color.h>
|
2025-07-19 19:35:33 -07:00
|
|
|
#include <LibWeb/Export.h>
|
2022-03-24 15:20:25 +00:00
|
|
|
#include <LibWeb/Forward.h>
|
2025-07-31 23:07:26 +02:00
|
|
|
#include <LibWeb/Painting/DisplayListRecordingContext.h>
|
2024-06-07 18:06:25 +03:00
|
|
|
#include <LibWeb/Painting/PaintBoxShadowParams.h>
|
2024-01-12 21:25:05 +01:00
|
|
|
#include <LibWeb/Painting/PaintableFragment.h>
|
2023-10-15 04:27:48 +02:00
|
|
|
#include <LibWeb/Painting/ShadowData.h>
|
2021-09-19 15:00:47 +01:00
|
|
|
|
|
|
|
|
namespace Web::Painting {
|
|
|
|
|
|
2025-07-19 19:35:33 -07:00
|
|
|
WEB_API void paint_box_shadow(
|
2025-07-31 23:07:26 +02:00
|
|
|
DisplayListRecordingContext&,
|
2023-06-05 02:42:32 +00:00
|
|
|
CSSPixelRect const& bordered_content_rect,
|
|
|
|
|
CSSPixelRect const& borderless_content_rect,
|
|
|
|
|
BordersData const& borders_data,
|
|
|
|
|
BorderRadiiData const&,
|
|
|
|
|
Vector<ShadowData> const&);
|
2025-07-19 19:35:33 -07:00
|
|
|
WEB_API void paint_text_shadow(DisplayListRecordingContext&, PaintableFragment const&, Vector<ShadowData> const&);
|
2021-09-19 15:00:47 +01:00
|
|
|
|
|
|
|
|
}
|