chromium/third_party/pdfium/core/fxcrt/fx_coordinates.h

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

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#ifndef CORE_FXCRT_FX_COORDINATES_H_
#define CORE_FXCRT_FX_COORDINATES_H_

#include <stdint.h>

#include "core/fxcrt/span.h"

template <class BaseType>
class CFX_PTemplate {};
CFX_Point16;
CFX_Point;
CFX_PointF;

template <class BaseType>
class CFX_STemplate {};
CFX_Size;
CFX_SizeF;

template <class BaseType>
class CFX_VTemplate final : public CFX_PTemplate<BaseType> {};
CFX_Vector;
CFX_VectorF;

// Rectangles.
// TODO(tsepez): Consolidate all these different rectangle classes.

// LTRB rectangles (y-axis runs downwards).
// Struct layout is compatible with win32 RECT.
struct FX_RECT {};

// LTRB rectangles (y-axis runs upwards).
class CFX_FloatRect {};

// LTWH rectangles (y-axis runs downwards).
class CFX_RectF {};

// The matrix is of the form:
// | a  b  0 |
// | c  d  0 |
// | e  f  1 |
// See PDF spec 1.7 Section 4.2.3.
//
class CFX_Matrix {};

#endif  // CORE_FXCRT_FX_COORDINATES_H_