ladybird/Userland/Libraries/LibWeb/SVG/AttributeNames.h
Aliaksandr Kalenik 0d8d7ae94e LibWeb: Implement painting for svg text
The implementation of painting for SVG text follows the same pattern
as the implementation of painting for SVG geometries. However, instead
of reusing the existing PaintableWithLines to draw text, a new class
called SVGTextPaintable is introduced. because everything that is
painted inside an SVG is expected to inherit from SVGGraphicsPaintable.
Therefore reusing the text painting from regular text nodes would
require significant refactoring.
2023-06-09 17:20:34 +02:00

105 lines
3.5 KiB
C++

/*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/DeprecatedFlyString.h>
#include <AK/Error.h>
namespace Web::SVG::AttributeNames {
#define ENUMERATE_SVG_ATTRIBUTES(E) \
E(attributeName) \
E(attributeType) \
E(baseFrequency) \
E(baseProfile) \
E(calcMode) \
E(clipPathUnits) \
E(contentScriptType) \
E(contentStyleType) \
E(cx) \
E(cy) \
E(dx) \
E(dy) \
E(diffuseConstant) \
E(edgeMode) \
E(filterUnits) \
E(fr) \
E(fx) \
E(fy) \
E(glyphRef) \
E(gradientTransform) \
E(gradientUnits) \
E(height) \
E(href) \
E(kernelMatrix) \
E(kernelUnitLength) \
E(keyPoints) \
E(keySplines) \
E(keyTimes) \
E(lengthAdjust) \
E(limitingConeAngle) \
E(markerHeight) \
E(markerUnits) \
E(markerWidth) \
E(maskContentUnits) \
E(maskUnits) \
E(numOctaves) \
E(offset) \
E(pathLength) \
E(patternContentUnits) \
E(patternTransform) \
E(patternUnits) \
E(points) \
E(pointsAtX) \
E(pointsAtY) \
E(pointsAtZ) \
E(preserveAlpha) \
E(preserveAspectRatio) \
E(primitiveUnits) \
E(r) \
E(refX) \
E(refY) \
E(repeatCount) \
E(repeatDur) \
E(requiredExtensions) \
E(requiredFeatures) \
E(rx) \
E(ry) \
E(specularConstant) \
E(specularExponent) \
E(spreadMethod) \
E(startOffset) \
E(stdDeviation) \
E(stitchTiles) \
E(surfaceScale) \
E(systemLanguage) \
E(tableValues) \
E(targetX) \
E(targetY) \
E(textLength) \
E(version) \
E(viewBox) \
E(viewTarget) \
E(width) \
E(x) \
E(x1) \
E(x2) \
E(xChannelSelector) \
E(y) \
E(y1) \
E(y2) \
E(yChannelSelector) \
E(zoomAndPan)
#define __ENUMERATE_SVG_ATTRIBUTE(name) extern DeprecatedFlyString name;
ENUMERATE_SVG_ATTRIBUTES(__ENUMERATE_SVG_ATTRIBUTE)
#undef __ENUMERATE_SVG_ATTRIBUTE
ErrorOr<void> initialize_strings();
}