Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkpagesetup.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 * gtkpagesetup.h: Page Setup
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
27
28
30
31typedef struct _GtkPageSetup GtkPageSetup;
32
33#define GTK_TYPE_PAGE_SETUP (gtk_page_setup_get_type ())
34#define GTK_PAGE_SETUP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PAGE_SETUP, GtkPageSetup))
35#define GTK_IS_PAGE_SETUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PAGE_SETUP))
36
47 GtkPageOrientation orientation);
52 GtkPaperSize *size);
55 GtkUnit unit);
58 double margin,
59 GtkUnit unit);
62 GtkUnit unit);
65 double margin,
66 GtkUnit unit);
69 GtkUnit unit);
72 double margin,
73 GtkUnit unit);
76 GtkUnit unit);
79 double margin,
80 GtkUnit unit);
81
84 GtkPaperSize *size);
85
86/* These take orientation, but not margins into consideration */
89 GtkUnit unit);
92 GtkUnit unit);
93
94
95/* These take orientation, and margins into consideration */
98 GtkUnit unit);
101 GtkUnit unit);
102
103/* Saving and restoring page setup */
106 GError **error);
109 const char *file_name,
110 GError **error);
113 const char *file_name,
114 GError **error);
117 const char *group_name,
118 GError **error);
121 GKeyFile *key_file,
122 const char *group_name,
123 GError **error);
126 GKeyFile *key_file,
127 const char *group_name);
128
133
135
137
#define GDK_AVAILABLE_IN_ALL
struct _GKeyFile GKeyFile
Definition gkeyfile.h:50
#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)
GtkUnit
Definition gtkenums.h:759
GtkPageOrientation
Definition gtkenums.h:709
GDK_AVAILABLE_IN_ALL GtkPaperSize * gtk_page_setup_get_paper_size(GtkPageSetup *setup)
GDK_AVAILABLE_IN_ALL gboolean gtk_page_setup_load_file(GtkPageSetup *setup, const char *file_name, GError **error)
GDK_AVAILABLE_IN_ALL double gtk_page_setup_get_paper_height(GtkPageSetup *setup, GtkUnit unit)
GDK_AVAILABLE_IN_ALL double gtk_page_setup_get_left_margin(GtkPageSetup *setup, GtkUnit unit)
GDK_AVAILABLE_IN_ALL gboolean gtk_page_setup_load_key_file(GtkPageSetup *setup, GKeyFile *key_file, const char *group_name, GError **error)
GDK_AVAILABLE_IN_ALL void gtk_page_setup_set_paper_size_and_default_margins(GtkPageSetup *setup, GtkPaperSize *size)
GDK_AVAILABLE_IN_ALL gboolean gtk_page_setup_to_file(GtkPageSetup *setup, const char *file_name, GError **error)
GDK_AVAILABLE_IN_ALL double gtk_page_setup_get_top_margin(GtkPageSetup *setup, GtkUnit unit)
GDK_AVAILABLE_IN_ALL double gtk_page_setup_get_bottom_margin(GtkPageSetup *setup, GtkUnit unit)
GDK_AVAILABLE_IN_ALL void gtk_page_setup_set_bottom_margin(GtkPageSetup *setup, double margin, GtkUnit unit)
typedefG_BEGIN_DECLS struct _GtkPageSetup GtkPageSetup
GDK_AVAILABLE_IN_ALL GtkPageSetup * gtk_page_setup_copy(GtkPageSetup *other)
GDK_AVAILABLE_IN_ALL void gtk_page_setup_set_left_margin(GtkPageSetup *setup, double margin, GtkUnit unit)
GDK_AVAILABLE_IN_ALL void gtk_page_setup_set_paper_size(GtkPageSetup *setup, GtkPaperSize *size)
GDK_AVAILABLE_IN_ALL double gtk_page_setup_get_paper_width(GtkPageSetup *setup, GtkUnit unit)
GDK_AVAILABLE_IN_ALL GType gtk_page_setup_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL void gtk_page_setup_to_key_file(GtkPageSetup *setup, GKeyFile *key_file, const char *group_name)
GDK_AVAILABLE_IN_ALL double gtk_page_setup_get_page_width(GtkPageSetup *setup, GtkUnit unit)
GDK_AVAILABLE_IN_ALL void gtk_page_setup_set_right_margin(GtkPageSetup *setup, double margin, GtkUnit unit)
GDK_AVAILABLE_IN_ALL double gtk_page_setup_get_right_margin(GtkPageSetup *setup, GtkUnit unit)
GDK_AVAILABLE_IN_ALL void gtk_page_setup_set_orientation(GtkPageSetup *setup, GtkPageOrientation orientation)
GDK_AVAILABLE_IN_ALL GtkPageSetup * gtk_page_setup_new_from_file(const char *file_name, GError **error)
GDK_AVAILABLE_IN_ALL void gtk_page_setup_set_top_margin(GtkPageSetup *setup, double margin, GtkUnit unit)
GDK_AVAILABLE_IN_ALL GtkPageSetup * gtk_page_setup_new_from_gvariant(GVariant *variant)
GDK_AVAILABLE_IN_ALL GVariant * gtk_page_setup_to_gvariant(GtkPageSetup *setup)
GDK_AVAILABLE_IN_ALL GtkPageSetup * gtk_page_setup_new(void)
GDK_AVAILABLE_IN_ALL GtkPageOrientation gtk_page_setup_get_orientation(GtkPageSetup *setup)
GDK_AVAILABLE_IN_ALL GtkPageSetup * gtk_page_setup_new_from_key_file(GKeyFile *key_file, const char *group_name, GError **error)
GDK_AVAILABLE_IN_ALL double gtk_page_setup_get_page_height(GtkPageSetup *setup, GtkUnit unit)
typedefG_BEGIN_DECLS struct _GtkPaperSize GtkPaperSize
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
typedefG_BEGIN_DECLS struct _GVariant GVariant
Definition gvariant.h:36
static void error(LoadState *S, const char *why)