File: pps-document-misc.h

package info (click to toggle)
papers 49.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,140 kB
  • sloc: ansic: 37,721; sh: 197; xml: 127; makefile: 112
file content (44 lines) | stat: -rw-r--r-- 1,336 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Copyright (C) 2000-2003 Marco Pesenti Gritti
 */

#pragma once

#if !defined(__PPS_PAPERS_DOCUMENT_H_INSIDE__) && !defined(PAPERS_COMPILATION)
#error "Only <papers-document.h> can be included directly."
#endif

#include <cairo.h>

#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtk.h>

#include "pps-macros.h"

G_BEGIN_DECLS

PPS_PUBLIC
cairo_surface_t *pps_document_misc_surface_from_pixbuf (GdkPixbuf *pixbuf);
PPS_PUBLIC
GdkPixbuf *pps_document_misc_pixbuf_from_surface (cairo_surface_t *surface);
PPS_PUBLIC
GdkTexture *pps_document_misc_texture_from_surface (cairo_surface_t *surface);
PPS_PUBLIC
cairo_surface_t *pps_document_misc_surface_rotate_and_scale (cairo_surface_t *surface,
                                                             gint dest_width,
                                                             gint dest_height,
                                                             gint dest_rotation);

PPS_PUBLIC
gdouble pps_document_misc_get_widget_dpi (GtkWidget *widget);

PPS_PUBLIC
gchar *pps_document_misc_format_datetime (GDateTime *dt);

PPS_PUBLIC
gboolean pps_document_misc_get_pointer_position (GtkWidget *widget,
                                                 gint *x,
                                                 gint *y);

G_END_DECLS