3#ifndef PDFSDK_CXX_PDF_TEXT_RUN_H_INCLUDED_
4#define PDFSDK_CXX_PDF_TEXT_RUN_H_INCLUDED_
7#include <pdfsdk/cxx/math.h>
9#include "forward_declarations.h"
10#include "wrapper_base.h"
19class TextRun :
public detail::RefCountedHandle<PDETextItem> {
52 void InsertChars(
size_t index,
const char* chars,
size_t numChars);
214 PDF_CXX_CORE_WRAPPER_DEFINE_MEMBERS_(
TextRun, PDETextItem)
219#include "text_run_impl.inl"
Represents a PDF content element.
Definition element.h:19
Represents a font in a PDF document.
Definition font.h:21
Represents the graphics state of a PDF document.
Definition gstate.h:19
Represents a text run in a PDF document.
Definition text_run.h:19
void SetGState(const GState &gState)
void SetTextState(const PDETextState &textState)
size_t GetNumChars() const
std::wstring GetText() const
RectF GetCharsRect(size_t begindex, size_t endindex) const
void SetTextMatrix(const Matrix &textMatrix)
void SetFont(const Font &font)
Quad GetCharQuad(size_t index) const
void SetFont(const Font &font, float fontSize)
void InsertChars(size_t index, const char *chars, size_t numChars)
void InsertUnicodeChars(size_t index, const UnicodeChar *unicodeChars, size_t numUnicodeChars)
void SetFontSize(float fontSize)
TextRun MakeEmptyCopy() const
void SetMatrix(const Matrix &matrix)
float GetFontSize() const
void SetParent(const Element &parent)
Element GetParent() const
bool IsCharWhitespace(size_t index) const
bool Equals(const TextRun &that) const
PDETextState GetTextState() const
Matrix GetTextMatrix() const
std::wstring GetNthUnicode(size_t charindex) const
Quad GetOutlineQuad(size_t index) const
void RemoveChars(size_t index, size_t numChars)