Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkfontdialog.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>
27#include <gtk/gtkfilter.h>
28
30
31#define GTK_TYPE_FONT_DIALOG (gtk_font_dialog_get_type ())
32
34G_DECLARE_FINAL_TYPE (GtkFontDialog, gtk_font_dialog, GTK, FONT_DIALOG, GObject)
35
37GtkFontDialog * gtk_font_dialog_new (void);
38
40const char * gtk_font_dialog_get_title (GtkFontDialog *self);
41
43void gtk_font_dialog_set_title (GtkFontDialog *self,
44 const char *title);
45
47gboolean gtk_font_dialog_get_modal (GtkFontDialog *self);
48
50void gtk_font_dialog_set_modal (GtkFontDialog *self,
51 gboolean modal);
52
55
57void gtk_font_dialog_set_language (GtkFontDialog *self,
58 PangoLanguage *language);
59
62
64void gtk_font_dialog_set_font_map (GtkFontDialog *self,
65 PangoFontMap *fontmap);
66
68GtkFilter * gtk_font_dialog_get_filter (GtkFontDialog *self);
69
71void gtk_font_dialog_set_filter (GtkFontDialog *self,
72 GtkFilter *filter);
73
75void gtk_font_dialog_choose_family (GtkFontDialog *self,
76 GtkWindow *parent,
77 PangoFontFamily *initial_value,
78 GCancellable *cancellable,
79 GAsyncReadyCallback callback,
80 gpointer user_data);
81
85 (GtkFontDialog *self,
86 GAsyncResult *result,
87 GError **error);
88
90void gtk_font_dialog_choose_face (GtkFontDialog *self,
91 GtkWindow *parent,
92 PangoFontFace *initial_value,
93 GCancellable *cancellable,
94 GAsyncReadyCallback callback,
95 gpointer user_data);
96
99 (GtkFontDialog *self,
100 GAsyncResult *result,
101 GError **error);
102
104void gtk_font_dialog_choose_font (GtkFontDialog *self,
105 GtkWindow *parent,
106 PangoFontDescription *initial_value,
107 GCancellable *cancellable,
108 GAsyncReadyCallback callback,
109 gpointer user_data);
110
114 (GtkFontDialog *self,
115 GAsyncResult *result,
116 GError **error);
117
120 (GtkFontDialog *self,
121 GtkWindow *parent,
122 PangoFontDescription *initial_value,
123 GCancellable *cancellable,
124 GAsyncReadyCallback callback,
125 gpointer user_data);
126
129 (GtkFontDialog *self,
130 GAsyncResult *result,
131 PangoFontDescription **font_desc,
132 char **font_features,
133 PangoLanguage **language,
134 GError **error);
135
#define GDK_AVAILABLE_IN_4_10
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
GDK_AVAILABLE_IN_4_10 gboolean gtk_font_dialog_get_modal(GtkFontDialog *self)
GDK_AVAILABLE_IN_4_10 PangoFontFamily * gtk_font_dialog_choose_family_finish(GtkFontDialog *self, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_choose_family(GtkFontDialog *self, GtkWindow *parent, PangoFontFamily *initial_value, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_4_10 const char * gtk_font_dialog_get_title(GtkFontDialog *self)
GDK_AVAILABLE_IN_4_10 PangoFontMap * gtk_font_dialog_get_font_map(GtkFontDialog *self)
GDK_AVAILABLE_IN_4_10 PangoFontFace * gtk_font_dialog_choose_face_finish(GtkFontDialog *self, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_set_font_map(GtkFontDialog *self, PangoFontMap *fontmap)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_set_filter(GtkFontDialog *self, GtkFilter *filter)
GDK_AVAILABLE_IN_4_10 PangoFontDescription * gtk_font_dialog_choose_font_finish(GtkFontDialog *self, GAsyncResult *result, GError **error)
GDK_AVAILABLE_IN_4_10 PangoLanguage * gtk_font_dialog_get_language(GtkFontDialog *self)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_choose_font_and_features(GtkFontDialog *self, GtkWindow *parent, PangoFontDescription *initial_value, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_4_10 gboolean gtk_font_dialog_choose_font_and_features_finish(GtkFontDialog *self, GAsyncResult *result, PangoFontDescription **font_desc, char **font_features, PangoLanguage **language, GError **error)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_set_modal(GtkFontDialog *self, gboolean modal)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_set_language(GtkFontDialog *self, PangoLanguage *language)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_choose_font(GtkFontDialog *self, GtkWindow *parent, PangoFontDescription *initial_value, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_set_title(GtkFontDialog *self, const char *title)
GDK_AVAILABLE_IN_4_10 GDK_AVAILABLE_IN_4_10 GtkFontDialog * gtk_font_dialog_new(void)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_choose_face(GtkFontDialog *self, GtkWindow *parent, PangoFontFace *initial_value, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GDK_AVAILABLE_IN_4_10 GtkFilter * gtk_font_dialog_get_filter(GtkFontDialog *self)
#define G_DECLARE_FINAL_TYPE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, ParentName)
Definition gtype.h:1602
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
static void error(LoadState *S, const char *why)
typedefG_BEGIN_DECLS struct _PangoFontDescription PangoFontDescription
Definition pango-font.h:43
struct _PangoLanguage PangoLanguage
Definition pango-types.h:46