Photon 1.0.0
Loading...
Searching...
No Matches
html2png::converter Class Reference

#include <render2png.h>

Public Member Functions

 converter (int screen_width=800, int screen_height=600, double dpi=96, const char *default_font=nullptr, cairo_font_options_t *font_options=nullptr)
 
bool to_png (const std::string &html_file, const std::string &png_file)
 
GdkPixbuf * to_pixbuf (const std::string &html_file)
 
int get_screen_width () const
 
int get_screen_height () const
 
const char * get_default_font () const
 
double get_dpi () const
 
cairo_font_options_t * get_font_options ()
 

Private Attributes

int m_screen_width
 
int m_screen_height
 
double m_dpi
 
const char * m_default_font
 
cairo_font_options_t * m_font_options
 

Constructor & Destructor Documentation

◆ converter()

html2png::converter::converter ( int  screen_width = 800,
int  screen_height = 600,
double  dpi = 96,
const char *  default_font = nullptr,
cairo_font_options_t *  font_options = nullptr 
)

Member Function Documentation

◆ get_default_font()

const char * html2png::converter::get_default_font ( ) const
inline

◆ get_dpi()

double html2png::converter::get_dpi ( ) const
inline

◆ get_font_options()

cairo_font_options_t * html2png::converter::get_font_options ( )
inline

◆ get_screen_height()

int html2png::converter::get_screen_height ( ) const
inline

◆ get_screen_width()

int html2png::converter::get_screen_width ( ) const
inline

◆ to_pixbuf()

GdkPixbuf * html2png::converter::to_pixbuf ( const std::string &  html_file)

◆ to_png()

bool html2png::converter::to_png ( const std::string &  html_file,
const std::string &  png_file 
)

Member Data Documentation

◆ m_default_font

const char* html2png::converter::m_default_font
private

◆ m_dpi

double html2png::converter::m_dpi
private

◆ m_font_options

cairo_font_options_t* html2png::converter::m_font_options
private

◆ m_screen_height

int html2png::converter::m_screen_height
private

◆ m_screen_width

int html2png::converter::m_screen_width
private

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