chromium/ui/gfx/geometry/linear_gradient.h

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_GFX_GEOMETRY_LINEAR_GRADIENT_H_
#define UI_GFX_GEOMETRY_LINEAR_GRADIENT_H_

#include <stdint.h>

#include <array>
#include <cstddef>
#include <cstdint>
#include <string>

#include "ui/gfx/geometry/geometry_skia_export.h"

namespace gfx {

class AxisTransform2d;
class Transform;

// A class that defines a linear gradient mask.
// Up to 6 steps are supported.
//
// ex. Horizontal linear gradient that starts in the middle.
// LinearGradient gradient(0);
// gradient.AddStep(20, 0);
// gradient.AddStep(30, 255);
// gradient.AddStep(70, 255);
// gradient.AddStep(80, 0);
class GEOMETRY_SKIA_EXPORT LinearGradient {};

inline bool operator==(const LinearGradient::Step& lhs,
                       const LinearGradient::Step& rhs) {}

inline bool operator==(const LinearGradient& lhs, const LinearGradient& rhs) {}

inline bool operator!=(const LinearGradient& lhs, const LinearGradient& rhs) {}

}  // namespace gfx

#endif  // UI_GFX_GEOMETRY_LINEAR_GRADIENT_H_