Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdf_contentstream_write_utils.h
Go to the documentation of this file.
1// Copyright 2019 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CORE_FPDFAPI_EDIT_CPDF_CONTENTSTREAM_WRITE_UTILS_H_
6#define CORE_FPDFAPI_EDIT_CPDF_CONTENTSTREAM_WRITE_UTILS_H_
7
8#include <iosfwd>
9
10#include "core/fxcrt/fx_coordinates.h"
11
12// Writes `value` to `stream` as a decimal string in a form suitable for use in
13// a PDF content stream. Does not use scientific notation. Omits leading zeroes.
14std::ostream& WriteFloat(std::ostream& stream, float value);
15
16std::ostream& WriteMatrix(std::ostream& stream, const CFX_Matrix& matrix);
17std::ostream& WritePoint(std::ostream& stream, const CFX_PointF& point);
18std::ostream& WriteRect(std::ostream& stream, const CFX_FloatRect& rect);
19
20#endif // CORE_FPDFAPI_EDIT_CPDF_CONTENTSTREAM_WRITE_UTILS_H_
float Width() const
float Height() const
#define UNSAFE_TODO(...)
std::ostream & WritePoint(std::ostream &stream, const CFX_PointF &point)
std::ostream & WriteFloat(std::ostream &stream, float value)
std::ostream & WriteRect(std::ostream &stream, const CFX_FloatRect &rect)
std::ostream & WriteMatrix(std::ostream &stream, const CFX_Matrix &matrix)
CFX_PTemplate< float > CFX_PointF
#define assert