// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#include "gdtools_types.h"
#include <Rcpp.h>

using namespace Rcpp;

#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>&  Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get();
#endif

// str_metrics_
NumericVector str_metrics_(CharacterVector x, std::string fontname, double fontsize, int bold, int italic, std::string fontfile);
RcppExport SEXP _gdtools_str_metrics_(SEXP xSEXP, SEXP fontnameSEXP, SEXP fontsizeSEXP, SEXP boldSEXP, SEXP italicSEXP, SEXP fontfileSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< CharacterVector >::type x(xSEXP);
    Rcpp::traits::input_parameter< std::string >::type fontname(fontnameSEXP);
    Rcpp::traits::input_parameter< double >::type fontsize(fontsizeSEXP);
    Rcpp::traits::input_parameter< int >::type bold(boldSEXP);
    Rcpp::traits::input_parameter< int >::type italic(italicSEXP);
    Rcpp::traits::input_parameter< std::string >::type fontfile(fontfileSEXP);
    rcpp_result_gen = Rcpp::wrap(str_metrics_(x, fontname, fontsize, bold, italic, fontfile));
    return rcpp_result_gen;
END_RCPP
}
// m_str_extents_
NumericMatrix m_str_extents_(CharacterVector x, std::vector<std::string> fontname, std::vector<double> fontsize, std::vector<int> bold, std::vector<int> italic, std::vector<std::string> fontfile);
RcppExport SEXP _gdtools_m_str_extents_(SEXP xSEXP, SEXP fontnameSEXP, SEXP fontsizeSEXP, SEXP boldSEXP, SEXP italicSEXP, SEXP fontfileSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< CharacterVector >::type x(xSEXP);
    Rcpp::traits::input_parameter< std::vector<std::string> >::type fontname(fontnameSEXP);
    Rcpp::traits::input_parameter< std::vector<double> >::type fontsize(fontsizeSEXP);
    Rcpp::traits::input_parameter< std::vector<int> >::type bold(boldSEXP);
    Rcpp::traits::input_parameter< std::vector<int> >::type italic(italicSEXP);
    Rcpp::traits::input_parameter< std::vector<std::string> >::type fontfile(fontfileSEXP);
    rcpp_result_gen = Rcpp::wrap(m_str_extents_(x, fontname, fontsize, bold, italic, fontfile));
    return rcpp_result_gen;
END_RCPP
}
// m_str_metrics_
Rcpp::DataFrame m_str_metrics_(CharacterVector x, std::vector<std::string> fontname, std::vector<double> fontsize, std::vector<int> bold, std::vector<int> italic, std::vector<std::string> fontfile);
RcppExport SEXP _gdtools_m_str_metrics_(SEXP xSEXP, SEXP fontnameSEXP, SEXP fontsizeSEXP, SEXP boldSEXP, SEXP italicSEXP, SEXP fontfileSEXP) {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    Rcpp::traits::input_parameter< CharacterVector >::type x(xSEXP);
    Rcpp::traits::input_parameter< std::vector<std::string> >::type fontname(fontnameSEXP);
    Rcpp::traits::input_parameter< std::vector<double> >::type fontsize(fontsizeSEXP);
    Rcpp::traits::input_parameter< std::vector<int> >::type bold(boldSEXP);
    Rcpp::traits::input_parameter< std::vector<int> >::type italic(italicSEXP);
    Rcpp::traits::input_parameter< std::vector<std::string> >::type fontfile(fontfileSEXP);
    rcpp_result_gen = Rcpp::wrap(m_str_metrics_(x, fontname, fontsize, bold, italic, fontfile));
    return rcpp_result_gen;
END_RCPP
}
// version_freetype
Rcpp::List version_freetype();
RcppExport SEXP _gdtools_version_freetype() {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    rcpp_result_gen = Rcpp::wrap(version_freetype());
    return rcpp_result_gen;
END_RCPP
}
// version_cairo_
Rcpp::CharacterVector version_cairo_();
RcppExport SEXP _gdtools_version_cairo_() {
BEGIN_RCPP
    Rcpp::RObject rcpp_result_gen;
    Rcpp::RNGScope rcpp_rngScope_gen;
    rcpp_result_gen = Rcpp::wrap(version_cairo_());
    return rcpp_result_gen;
END_RCPP
}

static const R_CallMethodDef CallEntries[] = {
    {"_gdtools_str_metrics_", (DL_FUNC) &_gdtools_str_metrics_, 6},
    {"_gdtools_m_str_extents_", (DL_FUNC) &_gdtools_m_str_extents_, 6},
    {"_gdtools_m_str_metrics_", (DL_FUNC) &_gdtools_m_str_metrics_, 6},
    {"_gdtools_version_freetype", (DL_FUNC) &_gdtools_version_freetype, 0},
    {"_gdtools_version_cairo_", (DL_FUNC) &_gdtools_version_cairo_, 0},
    {NULL, NULL, 0}
};

RcppExport void R_init_gdtools(DllInfo *dll) {
    R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
    R_useDynamicSymbols(dll, FALSE);
}
