Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkprintcontext.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 * gtkprintcontext.h: Print Context
3 * Copyright (C) 2006, Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#pragma once
20
21
22#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
23#error "Only <gtk/gtk.h> can be included directly."
24#endif
25
26#include <pango/pango.h>
28
29
31
32typedef struct _GtkPrintContext GtkPrintContext;
33
34#define GTK_TYPE_PRINT_CONTEXT (gtk_print_context_get_type ())
35#define GTK_PRINT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_CONTEXT, GtkPrintContext))
36#define GTK_IS_PRINT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_CONTEXT))
37
40
41
42/* Rendering */
45
58 double *top,
59 double *bottom,
60 double *left,
61 double *right);
62
63/* Fonts */
70
71/* Needed for preview implementations */
74 cairo_t *cr,
75 double dpi_x,
76 double dpi_y);
77
79
81
struct _cairo cairo_t
Definition cairo.h:135
#define GDK_AVAILABLE_IN_ALL
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
typedefG_BEGIN_DECLS struct _GtkPageSetup GtkPageSetup
GDK_AVAILABLE_IN_ALL double gtk_print_context_get_width(GtkPrintContext *context)
GDK_AVAILABLE_IN_ALL PangoContext * gtk_print_context_create_pango_context(GtkPrintContext *context)
GDK_AVAILABLE_IN_ALL void gtk_print_context_set_cairo_context(GtkPrintContext *context, cairo_t *cr, double dpi_x, double dpi_y)
GDK_AVAILABLE_IN_ALL double gtk_print_context_get_height(GtkPrintContext *context)
GDK_AVAILABLE_IN_ALL GType gtk_print_context_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL GtkPageSetup * gtk_print_context_get_page_setup(GtkPrintContext *context)
GDK_AVAILABLE_IN_ALL double gtk_print_context_get_dpi_x(GtkPrintContext *context)
GDK_AVAILABLE_IN_ALL PangoFontMap * gtk_print_context_get_pango_fontmap(GtkPrintContext *context)
GDK_AVAILABLE_IN_ALL PangoLayout * gtk_print_context_create_pango_layout(GtkPrintContext *context)
GDK_AVAILABLE_IN_ALL gboolean gtk_print_context_get_hard_margins(GtkPrintContext *context, double *top, double *bottom, double *left, double *right)
typedefG_BEGIN_DECLS struct _GtkPrintContext GtkPrintContext
GDK_AVAILABLE_IN_ALL double gtk_print_context_get_dpi_y(GtkPrintContext *context)
GDK_AVAILABLE_IN_ALL cairo_t * gtk_print_context_get_cairo_context(GtkPrintContext *context)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
lu_byte right
lu_byte left
typedefG_BEGIN_DECLS struct _PangoLayout PangoLayout
struct _PangoContext PangoContext
Definition pango-types.h:44