Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkprintdialog.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 *
3 * Copyright (C) 2022 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#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
22#error "Only <gtk/gtk.h> can be included directly."
23#endif
24
25#include <gdk/gdk.h>
26#include <gtk/gtkwindow.h>
29
31
32typedef struct _GtkPrintSetup GtkPrintSetup;
33
34#define GTK_TYPE_PRINT_SETUP (gtk_print_setup_get_type ())
35
38
41
44
48
51
52
53#define GTK_TYPE_PRINT_DIALOG (gtk_print_dialog_get_type ())
54
56G_DECLARE_FINAL_TYPE (GtkPrintDialog, gtk_print_dialog, GTK, PRINT_DIALOG, GObject)
57
59GtkPrintDialog *gtk_print_dialog_new (void);
60
62const char * gtk_print_dialog_get_title (GtkPrintDialog *self);
63
65void gtk_print_dialog_set_title (GtkPrintDialog *self,
66 const char *title);
67
69const char * gtk_print_dialog_get_accept_label (GtkPrintDialog *self);
70
72void gtk_print_dialog_set_accept_label (GtkPrintDialog *self,
73 const char *accept_label);
74
76gboolean gtk_print_dialog_get_modal (GtkPrintDialog *self);
77
79void gtk_print_dialog_set_modal (GtkPrintDialog *self,
80 gboolean modal);
81
84
86void gtk_print_dialog_set_page_setup (GtkPrintDialog *self,
87 GtkPageSetup *page_setup);
88
91
93void gtk_print_dialog_set_print_settings (GtkPrintDialog *self,
94 GtkPrintSettings *print_settings);
95
97void gtk_print_dialog_setup (GtkPrintDialog *self,
98 GtkWindow *parent,
99 GCancellable *cancellable,
100 GAsyncReadyCallback callback,
101 gpointer user_data);
102
105 GAsyncResult *result,
106 GError **error);
107
109void gtk_print_dialog_print (GtkPrintDialog *self,
110 GtkWindow *parent,
111 GtkPrintSetup *setup,
112 GCancellable *cancellable,
113 GAsyncReadyCallback callback,
114 gpointer user_data);
115
118 GAsyncResult *result,
119 GError **error);
120
122void gtk_print_dialog_print_file (GtkPrintDialog *self,
123 GtkWindow *parent,
124 GtkPrintSetup *setup,
125 GFile *file,
126 GCancellable *cancellable,
127 GAsyncReadyCallback callback,
128 gpointer user_data);
129
132 GAsyncResult *result,
133 GError **error);
134
#define GDK_AVAILABLE_IN_4_14
struct _GFile GFile
Definition giotypes.h:74
struct _GAsyncResult GAsyncResult
Definition giotypes.h:36
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
Definition giotypes.h:190
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
typedefG_BEGIN_DECLS struct _GtkPageSetup GtkPageSetup
GDK_AVAILABLE_IN_4_14 void gtk_print_dialog_setup(GtkPrintDialog *self, GtkWindow *parent, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_4_14 GtkPageSetup * gtk_print_dialog_get_page_setup(GtkPrintDialog *self)
GDK_AVAILABLE_IN_4_14 void gtk_print_dialog_set_title(GtkPrintDialog *self, const char *title)
GDK_AVAILABLE_IN_4_14 void gtk_print_dialog_set_modal(GtkPrintDialog *self, gboolean modal)
GDK_AVAILABLE_IN_4_14 GDK_AVAILABLE_IN_4_14 GtkPrintDialog * gtk_print_dialog_new(void)
GDK_AVAILABLE_IN_4_14 GtkPrintSettings * gtk_print_setup_get_print_settings(GtkPrintSetup *setup)
GDK_AVAILABLE_IN_4_14 void gtk_print_dialog_set_print_settings(GtkPrintDialog *self, GtkPrintSettings *print_settings)
GDK_AVAILABLE_IN_4_14 GType gtk_print_setup_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_4_14 GtkPrintSetup * gtk_print_dialog_setup_finish(GtkPrintDialog *self, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_4_14 GtkPrintSetup * gtk_print_setup_ref(GtkPrintSetup *setup)
typedefG_BEGIN_DECLS struct _GtkPrintSetup GtkPrintSetup
GDK_AVAILABLE_IN_4_14 GtkPageSetup * gtk_print_setup_get_page_setup(GtkPrintSetup *setup)
GDK_AVAILABLE_IN_4_14 const char * gtk_print_dialog_get_accept_label(GtkPrintDialog *self)
GDK_AVAILABLE_IN_4_14 gboolean gtk_print_dialog_print_file_finish(GtkPrintDialog *self, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_4_14 void gtk_print_dialog_set_page_setup(GtkPrintDialog *self, GtkPageSetup *page_setup)
GDK_AVAILABLE_IN_4_14 GtkPrintSettings * gtk_print_dialog_get_print_settings(GtkPrintDialog *self)
GDK_AVAILABLE_IN_4_14 GOutputStream * gtk_print_dialog_print_finish(GtkPrintDialog *self, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_4_14 void gtk_print_setup_unref(GtkPrintSetup *setup)
GDK_AVAILABLE_IN_4_14 void gtk_print_dialog_set_accept_label(GtkPrintDialog *self, const char *accept_label)
GDK_AVAILABLE_IN_4_14 void gtk_print_dialog_print_file(GtkPrintDialog *self, GtkWindow *parent, GtkPrintSetup *setup, GFile *file, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_4_14 const char * gtk_print_dialog_get_title(GtkPrintDialog *self)
GDK_AVAILABLE_IN_4_14 void gtk_print_dialog_print(GtkPrintDialog *self, GtkWindow *parent, GtkPrintSetup *setup, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_4_14 gboolean gtk_print_dialog_get_modal(GtkPrintDialog *self)
typedefG_BEGIN_DECLS struct _GtkPrintSettings GtkPrintSettings
#define G_DECLARE_FINAL_TYPE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, ParentName)
Definition gtype.h:1602
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
static void error(LoadState *S, const char *why)