Evince Document Library Reference Manual: ev-document-misc

## ev-document-misc ev-document-misc |

## Synopsis

    void                ev_document_misc_get_pointer_position
                                                            (GtkWidget *widget,
                                                             gint *x,
                                                             gint *y);
    gdouble             ev_document_misc_get_screen_dpi     (GdkScreen *screen);
    cairo_surface_t *   ev_document_misc_surface_from_pixbuf
                                                            (GdkPixbuf *pixbuf);
    GdkPixbuf *         ev_document_misc_pixbuf_from_surface
                                                            (cairo_surface_t *surface);
    cairo_surface_t *   ev_document_misc_surface_rotate_and_scale
                                                            (cairo_surface_t *surface,
                                                             gint dest_width,
                                                             gint dest_height,
                                                             gint dest_rotation);
    void                ev_document_misc_invert_surface     (cairo_surface_t *surface);
    void                ev_document_misc_invert_pixbuf      (GdkPixbuf *pixbuf);
    gchar *             ev_document_misc_format_date        (GTime utime);
    GdkPixbuf *         ev_document_misc_render_loading_thumbnail
                                                            (GtkWidget *widget,
                                                             int width,
                                                             int height,
                                                             gboolean inverted_colors);
    GdkPixbuf *         ev_document_misc_render_thumbnail_with_frame
                                                            (GtkWidget *widget,
                                                             GdkPixbuf *source_pixbuf);

    GdkPixbuf *         ev_document_misc_get_loading_thumbnail
                                                            (int width,
                                                             int height,
                                                             gboolean inverted_colors);
    void                ev_document_misc_get_page_border_size
                                                            (gint page_width,
                                                             gint page_height,
                                                             GtkBorder *border);
    void                ev_document_misc_paint_one_page     (cairo_t *cr,
                                                             GtkWidget *widget,
                                                             GdkRectangle *area,
                                                             GtkBorder *border,
                                                             gboolean highlight,
                                                             gboolean inverted_colors);
    GdkPixbuf *         ev_document_misc_get_thumbnail_frame
                                                            (int width,
                                                             int height,
                                                             GdkPixbuf *source_pixbuf);

## Description

## Details

### ev_document_misc_get_pointer_position ()

    void                ev_document_misc_get_pointer_position
                                                            (GtkWidget *widget,
                                                             gint *x,
                                                             gint *y);

### ev_document_misc_get_screen_dpi ()

    gdouble             ev_document_misc_get_screen_dpi     (GdkScreen *screen);

### ev_document_misc_surface_from_pixbuf ()

    cairo_surface_t *   ev_document_misc_surface_from_pixbuf
                                                            (GdkPixbuf *pixbuf);

### ev_document_misc_pixbuf_from_surface ()

    GdkPixbuf *         ev_document_misc_pixbuf_from_surface
                                                            (cairo_surface_t *surface);

`surface` : | a cairo_surface_t
Returns : | a GdkPixbuf. [transfer full]

### ev_document_misc_surface_rotate_and_scale ()

    cairo_surface_t *   ev_document_misc_surface_rotate_and_scale
                                                            (cairo_surface_t *surface,
                                                             gint dest_width,
                                                             gint dest_height,
                                                             gint dest_rotation);

### ev_document_misc_invert_surface ()

    void                ev_document_misc_invert_surface     (cairo_surface_t *surface);

### ev_document_misc_invert_pixbuf ()

    void                ev_document_misc_invert_pixbuf      (GdkPixbuf *pixbuf);

### ev_document_misc_format_date ()

    gchar *             ev_document_misc_format_date        (GTime utime);

### ev_document_misc_render_loading_thumbnail ()

    GdkPixbuf *         ev_document_misc_render_loading_thumbnail
                                                            (GtkWidget *widget,
                                                             int width,
                                                             int height,
                                                             gboolean inverted_colors);

Since 3.8

### ev_document_misc_render_thumbnail_with_frame ()

    GdkPixbuf *         ev_document_misc_render_thumbnail_with_frame
                                                            (GtkWidget *widget,
                                                             GdkPixbuf *source_pixbuf);

Since 3.8

### ev_document_misc_get_loading_thumbnail ()

    GdkPixbuf *         ev_document_misc_get_loading_thumbnail
                                                            (int width,
                                                             int height,
                                                             gboolean inverted_colors);

### ev_document_misc_get_page_border_size ()

    void                ev_document_misc_get_page_border_size
                                                            (gint page_width,
                                                             gint page_height,
                                                             GtkBorder *border);

### ev_document_misc_paint_one_page ()

    void                ev_document_misc_paint_one_page     (cairo_t *cr,
                                                             GtkWidget *widget,
                                                             GdkRectangle *area,
                                                             GtkBorder *border,
                                                             gboolean highlight,
                                                             gboolean inverted_colors);

### ev_document_misc_get_thumbnail_frame ()

    GdkPixbuf *         ev_document_misc_get_thumbnail_frame
                                                            (int width,
                                                             int height,
                                                             GdkPixbuf *source_pixbuf);

`width` : | the desired width
`height` : | the desired height
`source_pixbuf` : | a GdkPixbuf
Returns : | a GdkPixbuf. [transfer full]