mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
a3cc03f180
This thing is essentially a wrapper around an SkPath, although we do some indirection via a PathImpl class to keep the door open for alternative rasterizer/path backends in the future. We also update the 2D canvas code, since that was the only code that used Painter+DeprecatedPath, and this allows us to just drop that code instead of temporarily supporting it until the next commit.
76 lines
1.2 KiB
C++
76 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace Gfx {
|
|
|
|
class Bitmap;
|
|
class CMYKBitmap;
|
|
class ImmutableBitmap;
|
|
class Color;
|
|
|
|
template<typename T>
|
|
class DisjointRectSet;
|
|
|
|
class Emoji;
|
|
class Font;
|
|
class ImageDecoder;
|
|
struct FontPixelMetrics;
|
|
class ScaledFont;
|
|
|
|
template<typename T>
|
|
class Line;
|
|
|
|
class AntiAliasingPainter;
|
|
class DeprecatedPainter;
|
|
class Painter;
|
|
class Palette;
|
|
class PaletteImpl;
|
|
class DeprecatedPath;
|
|
class Path;
|
|
class ShareableBitmap;
|
|
struct SystemTheme;
|
|
|
|
template<typename T>
|
|
class Triangle;
|
|
|
|
template<typename T>
|
|
class Point;
|
|
|
|
template<typename T>
|
|
class Size;
|
|
|
|
template<typename T>
|
|
class Rect;
|
|
|
|
template<typename T>
|
|
class Quad;
|
|
|
|
using DisjointIntRectSet = DisjointRectSet<int>;
|
|
using DisjointFloatRectSet = DisjointRectSet<float>;
|
|
|
|
using IntLine = Line<int>;
|
|
using FloatLine = Line<float>;
|
|
|
|
using IntRect = Rect<int>;
|
|
using FloatRect = Rect<float>;
|
|
|
|
using IntPoint = Point<int>;
|
|
using FloatPoint = Point<float>;
|
|
|
|
using IntSize = Size<int>;
|
|
using FloatSize = Size<float>;
|
|
|
|
using FloatQuad = Quad<float>;
|
|
|
|
enum class BitmapFormat;
|
|
enum class ColorRole;
|
|
enum class TextAlignment;
|
|
|
|
}
|
|
|
|
using Gfx::Color;
|