chromium/third_party/harfbuzz-ng/src/src/OT/Color/COLR/COLR.hh

/*
 * Copyright © 2018  Ebrahim Byagowi
 * Copyright © 2020  Google, Inc.
 *
 *  This is part of HarfBuzz, a text shaping library.
 *
 * Permission is hereby granted, without written agreement and without
 * license or royalty fees, to use, copy, modify, and distribute this
 * software and its documentation for any purpose, provided that the
 * above copyright notice and the following two paragraphs appear in
 * all copies of this software.
 *
 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
 * DAMAGE.
 *
 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 *
 * Google Author(s): Calder Kitagawa
 */

#ifndef OT_COLOR_COLR_COLR_HH
#define OT_COLOR_COLR_COLR_HH

#include "../../../hb.hh"
#include "../../../hb-open-type.hh"
#include "../../../hb-ot-var-common.hh"
#include "../../../hb-paint.hh"
#include "../../../hb-paint-extents.hh"

/*
 * COLR -- Color
 * https://docs.microsoft.com/en-us/typography/opentype/spec/colr
 */
#define HB_OT_TAG_COLR

namespace OT {
struct hb_paint_context_t;
}

namespace OT {

struct COLR;

struct Paint;

struct hb_paint_context_t :
       hb_dispatch_context_t<hb_paint_context_t>
{};

struct hb_colrv1_closure_context_t :
       hb_dispatch_context_t<hb_colrv1_closure_context_t>
{};

struct LayerRecord
{};

struct BaseGlyphRecord
{};

template <typename T>
struct Variable
{};

template <typename T>
struct NoVariable
{};

// Color structures

struct ColorStop
{};

struct Extend : HBUINT8
{};

template <template<typename> class Var>
struct ColorLine
{};

// Composition modes

// Compositing modes are taken from https://www.w3.org/TR/compositing-1/
// NOTE: a brief audit of major implementations suggests most support most
// or all of the specified modes.
struct CompositeMode : HBUINT8
{};

struct Affine2x3
{};

struct PaintColrLayers
{};

struct PaintSolid
{};

template <template<typename> class Var>
struct PaintLinearGradient
{};

template <template<typename> class Var>
struct PaintRadialGradient
{};

template <template<typename> class Var>
struct PaintSweepGradient
{};

// Paint a non-COLR glyph, filled as indicated by paint.
struct PaintGlyph
{};

struct PaintColrGlyph
{};

template <template<typename> class Var>
struct PaintTransform
{};

struct PaintTranslate
{};

struct PaintScale
{};

struct PaintScaleAroundCenter
{};

struct PaintScaleUniform
{};

struct PaintScaleUniformAroundCenter
{};

struct PaintRotate
{};

struct PaintRotateAroundCenter
{};

struct PaintSkew
{};

struct PaintSkewAroundCenter
{};

struct PaintComposite
{};

struct ClipBoxData
{};

struct ClipBoxFormat1
{};

struct ClipBoxFormat2 : Variable<ClipBoxFormat1>
{};

struct ClipBox
{};

struct ClipRecord
{};
DECLARE_NULL_NAMESPACE_BYTES() /* namespace OT */

#endif /* OT_COLOR_COLR_COLR_HH */