# libpaps.h

Go to the documentation of this file.

    00001
    00019 #ifndef LIBPAPS_H
    00020 #define LIBPAPS_H
    00021
    00022 #include <glib.h>
    00023 #include <pango/pango.h>
    00024
    00030 typedef void paps_t;
    00031
    00038 paps_t *paps_new();
    00039
    00046 void paps_free(paps_t *paps);
    00047
    00056 void
    00057 paps_set_scale(paps_t  *paps,
    00058                gdouble  scale_x,
    00059                gdouble  scale_y);
    00060
    00068 PangoContext *paps_get_pango_context();
    00069
    00081 gchar *paps_get_postscript_header_strdup(paps_t *paps);
    00082
    00096 gchar *paps_layout_to_postscript_strdup(paps_t *paps,
    00097                                         double pos_x,
    00098                                         double pos_y,
    00099                                         PangoLayout *layout);
    00113 gchar *paps_layout_line_to_postscript_strdup(paps_t *paps,
    00114                                              double pos_x,
    00115                                              double pos_y,
    00116                                              PangoLayoutLine *layout_line);
    00117
    00126 double paps_postscript_points_to_pango(double points);
    00127
    00128 #endif /* LIBPAPS */