|
Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
|
#include <config.h>#include <string.h>#include <math.h>#include <gtk/gtk.h>#include "ev-document-misc.h"
Include dependency graph for ev-document-misc.c:Go to the source code of this file.
Functions | |
| static GdkPixbuf * | create_thumbnail_frame (int width, int height, GdkPixbuf *source_pixbuf, gboolean fill_bg) |
| GdkPixbuf * | ev_document_misc_get_thumbnail_frame (int width, int height, GdkPixbuf *source_pixbuf) |
| GdkPixbuf * | ev_document_misc_get_loading_thumbnail (int width, int height, gboolean inverted_colors) |
| static cairo_surface_t * | ev_document_misc_render_thumbnail_frame (GtkWidget *widget, int width, int height, gboolean inverted_colors, GdkPixbuf *source_pixbuf, cairo_surface_t *source_surface) |
| GdkPixbuf * | ev_document_misc_render_loading_thumbnail (GtkWidget *widget, int width, int height, gboolean inverted_colors) |
| cairo_surface_t * | ev_document_misc_render_loading_thumbnail_surface (GtkWidget *widget, int width, int height, gboolean inverted_colors) |
| GdkPixbuf * | ev_document_misc_render_thumbnail_with_frame (GtkWidget *widget, GdkPixbuf *source_pixbuf) |
| cairo_surface_t * | ev_document_misc_render_thumbnail_surface_with_frame (GtkWidget *widget, cairo_surface_t *source_surface, int width, int height) |
| 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) |
| 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) |
| gdouble | ev_document_misc_get_screen_dpi (GdkScreen *screen) |
| gchar * | ev_document_misc_format_date (GTime utime) |
| void | ev_document_misc_get_pointer_position (GtkWidget *widget, gint *x, gint *y) |
|
static |
| gchar* ev_document_misc_format_date | ( | GTime | utime) |
| GdkPixbuf* ev_document_misc_get_loading_thumbnail | ( | int | width, |
| int | height, | ||
| gboolean | inverted_colors | ||
| ) |
ev_document_misc_get_loading_thumbnail: : the desired width : the desired height : whether to invert colors
Returns: (transfer full): a #GdkPixbuf
Definition at line 122 of file ev-document-misc.c.
| void ev_document_misc_get_page_border_size | ( | gint | page_width, |
| gint | page_height, | ||
| GtkBorder * | border | ||
| ) |
Definition at line 301 of file ev-document-misc.c.
| void ev_document_misc_get_pointer_position | ( | GtkWidget * | widget, |
| gint * | x, | ||
| gint * | y | ||
| ) |
| gdouble ev_document_misc_get_screen_dpi | ( | GdkScreen * | screen) |
| GdkPixbuf* ev_document_misc_get_thumbnail_frame | ( | int | width, |
| int | height, | ||
| GdkPixbuf * | source_pixbuf | ||
| ) |
ev_document_misc_get_thumbnail_frame: : the desired width : the desired height : a #GdkPixbuf
Returns: (transfer full): a #GdkPixbuf
Definition at line 106 of file ev-document-misc.c.
Here is the caller graph for this function:| void ev_document_misc_invert_pixbuf | ( | GdkPixbuf * | pixbuf) |
Definition at line 480 of file ev-document-misc.c.
| void ev_document_misc_invert_surface | ( | cairo_surface_t * | surface) |
| void ev_document_misc_paint_one_page | ( | cairo_t * | cr, |
| GtkWidget * | widget, | ||
| GdkRectangle * | area, | ||
| GtkBorder * | border, | ||
| gboolean | highlight, | ||
| gboolean | inverted_colors | ||
| ) |
Definition at line 323 of file ev-document-misc.c.
| GdkPixbuf* ev_document_misc_pixbuf_from_surface | ( | cairo_surface_t * | surface) |
ev_document_misc_pixbuf_from_surface: : a #cairo_surface_t
Returns: (transfer full): a #GdkPixbuf
Definition at line 396 of file ev-document-misc.c.
Here is the caller graph for this function:| GdkPixbuf* ev_document_misc_render_loading_thumbnail | ( | GtkWidget * | widget, |
| int | width, | ||
| int | height, | ||
| gboolean | inverted_colors | ||
| ) |
ev_document_misc_render_loading_thumbnail: : a #GtkWidget to use for style information : the desired width : the desired height : whether to invert colors
Returns: (transfer full): a #GdkPixbuf
Since: 3.8
Definition at line 220 of file ev-document-misc.c.
| cairo_surface_t* ev_document_misc_render_loading_thumbnail_surface | ( | GtkWidget * | widget, |
| int | width, | ||
| int | height, | ||
| gboolean | inverted_colors | ||
| ) |
ev_document_misc_render_loading_thumbnail_surface: : a #GtkWidget to use for style information : the desired width : the desired height : whether to invert colors
Returns: (transfer full): a #cairo_surface_t
Since: 3.14
Definition at line 247 of file ev-document-misc.c.
Here is the caller graph for this function:
|
static |
| cairo_surface_t* ev_document_misc_render_thumbnail_surface_with_frame | ( | GtkWidget * | widget, |
| cairo_surface_t * | source_surface, | ||
| int | width, | ||
| int | height | ||
| ) |
ev_document_misc_render_thumbnail_surface_with_frame: : a #GtkWidget to use for style information : a #cairo_surface_t : the desired width : the desired height
Returns: (transfer full): a #cairo_surface_t
Since: 3.14
Definition at line 292 of file ev-document-misc.c.
Here is the caller graph for this function:| GdkPixbuf* ev_document_misc_render_thumbnail_with_frame | ( | GtkWidget * | widget, |
| GdkPixbuf * | source_pixbuf | ||
| ) |
ev_document_misc_render_thumbnail_with_frame: : a #GtkWidget to use for style information : a #GdkPixbuf
Returns: (transfer full): a #GdkPixbuf
Since: 3.8
Definition at line 265 of file ev-document-misc.c.
| cairo_surface_t* ev_document_misc_surface_from_pixbuf | ( | GdkPixbuf * | pixbuf) |
| cairo_surface_t* ev_document_misc_surface_rotate_and_scale | ( | cairo_surface_t * | surface, |
| gint | dest_width, | ||
| gint | dest_height, | ||
| gint | dest_rotation | ||
| ) |