libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
Art::Paperback::Graphics::Canvas::Internal Struct Reference

Holds internal canvas data. More...

Public Member Functions

 Internal (Page &page)
 
void write (char c)
 Write single byte to content stream.
 
void write (string const &str)
 Write string to content stream.
 
void write (double v)
 Write real value to stream.
 
void write (long long int v)
 Write integer value to stream.
 
void write_name (string const &n)
 Write name to content stream.
 
void write_encode_text (string const &text)
 Write encoded text string to content stream.
 

Public Attributes

Pagepage
 Reference to parent page.
 
Carousel::Streamcontents
 Canvas content stream.
 
stack< Internals::Graphics_stategstates
 Holds the graphics states.
 

Detailed Description

Holds internal canvas data.

Member Function Documentation

◆ write() [1/4]

void Art::Paperback::Graphics::Canvas::Internal::write ( char c)
inline

Write single byte to content stream.

◆ write() [2/4]

void Art::Paperback::Graphics::Canvas::Internal::write ( string const & str)
inline

Write string to content stream.

◆ write() [3/4]

void Art::Paperback::Graphics::Canvas::Internal::write ( double v)
inline

Write real value to stream.

◆ write() [4/4]

void Art::Paperback::Graphics::Canvas::Internal::write ( long long int v)
inline

Write integer value to stream.

◆ write_name()

void Art::Paperback::Graphics::Canvas::Internal::write_name ( string const & n)
inline

Write name to content stream.

◆ write_encode_text()

void Art::Paperback::Graphics::Canvas::Internal::write_encode_text ( string const & text)
inline

Write encoded text string to content stream.

The text is hexadecimally coded.

Member Data Documentation

◆ page

Page& Art::Paperback::Graphics::Canvas::Internal::page

Reference to parent page.

◆ contents

Carousel::Stream& Art::Paperback::Graphics::Canvas::Internal::contents

Canvas content stream.

◆ gstates

stack<Internals::Graphics_state> Art::Paperback::Graphics::Canvas::Internal::gstates

Holds the graphics states.