ENERGY MONITOR 0.2
Loading...
Searching...
No Matches
pdf_wrap Class Reference

#include <pdfWrapper.h>

Public Member Functions

void init (std::string fileLocation)
 
void end ()
 
void newPage ()
 
void endPage ()
 
void textPiece_start ()
 
void addText (std::string text)
 
void textPiece_end ()
 
void newLine ()
 
void setFontStyle (float size, int r, int g, int b, int a)
 
void setCursor (int x, int y)
 
int get_posX ()
 
int get_posY ()
 
void center_text (std::string word)
 

Public Attributes

int left_padding = 30
 
int top_padding = 30
 
float font_size = 5
 
int interline_gap = font_size*4
 

Detailed Description

Definition at line 33 of file pdfWrapper.h.

Member Function Documentation

◆ addText()

void pdf_wrap::addText ( std::string text)
inline

Definition at line 85 of file pdfWrapper.h.

◆ center_text()

void pdf_wrap::center_text ( std::string word)
inline

Definition at line 127 of file pdfWrapper.h.

◆ end()

void pdf_wrap::end ( )
inline

Definition at line 62 of file pdfWrapper.h.

◆ endPage()

void pdf_wrap::endPage ( )
inline

Definition at line 74 of file pdfWrapper.h.

◆ get_posX()

int pdf_wrap::get_posX ( )
inline

Definition at line 119 of file pdfWrapper.h.

◆ get_posY()

int pdf_wrap::get_posY ( )
inline

Definition at line 123 of file pdfWrapper.h.

◆ init()

void pdf_wrap::init ( std::string fileLocation)
inline

Definition at line 57 of file pdfWrapper.h.

◆ newLine()

void pdf_wrap::newLine ( )
inline

Definition at line 95 of file pdfWrapper.h.

◆ newPage()

void pdf_wrap::newPage ( )
inline

Definition at line 66 of file pdfWrapper.h.

◆ setCursor()

void pdf_wrap::setCursor ( int x,
int y )
inline

Definition at line 112 of file pdfWrapper.h.

◆ setFontStyle()

void pdf_wrap::setFontStyle ( float size,
int r,
int g,
int b,
int a )
inline

Definition at line 101 of file pdfWrapper.h.

◆ textPiece_end()

void pdf_wrap::textPiece_end ( )
inline

Definition at line 91 of file pdfWrapper.h.

◆ textPiece_start()

void pdf_wrap::textPiece_start ( )
inline

Definition at line 79 of file pdfWrapper.h.

Member Data Documentation

◆ a

int pdf_wrap::a = 1

Definition at line 43 of file pdfWrapper.h.

◆ b

int pdf_wrap::b = 0

Definition at line 42 of file pdfWrapper.h.

◆ font_size

float pdf_wrap::font_size = 5

Definition at line 53 of file pdfWrapper.h.

◆ g

int pdf_wrap::g = 0

Definition at line 41 of file pdfWrapper.h.

◆ interline_gap

int pdf_wrap::interline_gap = font_size*4

Definition at line 54 of file pdfWrapper.h.

◆ left_padding

int pdf_wrap::left_padding = 30

Definition at line 51 of file pdfWrapper.h.

◆ r

int pdf_wrap::r = 0

Definition at line 40 of file pdfWrapper.h.

◆ top_padding

int pdf_wrap::top_padding = 30

Definition at line 52 of file pdfWrapper.h.


The documentation for this class was generated from the following file: