Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkfontdialogbutton.h
Go to the documentation of this file.
1/*
2 * GTK - The GIMP Toolkit
3 * Copyright (C) 2022 Red Hat, Inc.
4 * All rights reserved.
5 *
6 * This Library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
10 *
11 * This Library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#pragma once
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 <gtk/gtkbutton.h>
27#include <gtk/gtkfontdialog.h>
28
30
31#define GTK_TYPE_FONT_DIALOG_BUTTON (gtk_font_dialog_button_get_type ())
32
34G_DECLARE_FINAL_TYPE (GtkFontDialogButton, gtk_font_dialog_button, GTK, FONT_DIALOG_BUTTON, GtkWidget)
35
37GtkWidget * gtk_font_dialog_button_new (GtkFontDialog *dialog);
38
40GtkFontDialog * gtk_font_dialog_button_get_dialog (GtkFontDialogButton *self);
41
43void gtk_font_dialog_button_set_dialog (GtkFontDialogButton *self,
44 GtkFontDialog *dialog);
45
46/**
47 * GtkFontLevel:
48 * @GTK_FONT_LEVEL_FAMILY: Select a font family
49 * @GTK_FONT_LEVEL_FACE: Select a font face (i.e. a family and a style)
50 * @GTK_FONT_LEVEL_FONT: Select a font (i.e. a face with a size, and possibly font variations)
51 * @GTK_FONT_LEVEL_FEATURES: Select a font and font features
52 *
53 * The level of granularity for the font selection.
54 *
55 * Depending on this value, the `PangoFontDescription` that
56 * is returned by [method@Gtk.FontDialogButton.get_font_desc]
57 * will have more or less fields set.
58 *
59 * Since: 4.10
60 */
68
71
73void gtk_font_dialog_button_set_level (GtkFontDialogButton *self,
74 GtkFontLevel level);
75
78 gtk_font_dialog_button_get_font_desc (GtkFontDialogButton *self);
79
81void gtk_font_dialog_button_set_font_desc (GtkFontDialogButton *self,
82 const PangoFontDescription *font_desc);
83
86 (GtkFontDialogButton *self);
87
90 (GtkFontDialogButton *self,
91 const char *font_features);
92
95
97void gtk_font_dialog_button_set_language (GtkFontDialogButton *self,
98 PangoLanguage *language);
99
102
104void gtk_font_dialog_button_set_use_font (GtkFontDialogButton *self,
105 gboolean use_font);
106
109
111void gtk_font_dialog_button_set_use_size (GtkFontDialogButton *self,
112 gboolean use_size);
113
#define GDK_AVAILABLE_IN_4_10
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
GDK_AVAILABLE_IN_4_10 PangoLanguage * gtk_font_dialog_button_get_language(GtkFontDialogButton *self)
GDK_AVAILABLE_IN_4_10 GtkFontLevel gtk_font_dialog_button_get_level(GtkFontDialogButton *self)
GDK_AVAILABLE_IN_4_10 GDK_AVAILABLE_IN_4_10 GtkWidget * gtk_font_dialog_button_new(GtkFontDialog *dialog)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_button_set_language(GtkFontDialogButton *self, PangoLanguage *language)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_button_set_dialog(GtkFontDialogButton *self, GtkFontDialog *dialog)
GDK_AVAILABLE_IN_4_10 GtkFontDialog * gtk_font_dialog_button_get_dialog(GtkFontDialogButton *self)
GDK_AVAILABLE_IN_4_10 const char * gtk_font_dialog_button_get_font_features(GtkFontDialogButton *self)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_button_set_use_size(GtkFontDialogButton *self, gboolean use_size)
@ GTK_FONT_LEVEL_FEATURES
@ GTK_FONT_LEVEL_FACE
@ GTK_FONT_LEVEL_FONT
@ GTK_FONT_LEVEL_FAMILY
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_button_set_use_font(GtkFontDialogButton *self, gboolean use_font)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_button_set_level(GtkFontDialogButton *self, GtkFontLevel level)
GDK_AVAILABLE_IN_4_10 gboolean gtk_font_dialog_button_get_use_size(GtkFontDialogButton *self)
GDK_AVAILABLE_IN_4_10 gboolean gtk_font_dialog_button_get_use_font(GtkFontDialogButton *self)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_button_set_font_desc(GtkFontDialogButton *self, const PangoFontDescription *font_desc)
GDK_AVAILABLE_IN_4_10 PangoFontDescription * gtk_font_dialog_button_get_font_desc(GtkFontDialogButton *self)
GDK_AVAILABLE_IN_4_10 void gtk_font_dialog_button_set_font_features(GtkFontDialogButton *self, const char *font_features)
#define G_DECLARE_FINAL_TYPE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, ParentName)
Definition gtype.h:1602
gint gboolean
Definition gtypes.h:56
typedefG_BEGIN_DECLS struct _PangoFontDescription PangoFontDescription
Definition pango-font.h:43
struct _PangoLanguage PangoLanguage
Definition pango-types.h:46