Debian Codegraph @

gtk/gtktextattributesprivate.h

raw symbols SCIP
1 /* gtktextattributes.h - text attributes
2 *
3 * Copyright (c) 1992-1994 The Regents of the University of California.
4 * Copyright (c) 1994-1997 Sun Microsystems, Inc.
5 * Copyright (c) 2000 Red Hat, Inc.
6 * Tk -> Gtk port by Havoc Pennington <[email protected]>
7 *
8 * This software is copyrighted by the Regents of the University of
9 * California, Sun Microsystems, Inc., and other parties. The
10 * following terms apply to all files associated with the software
11 * unless explicitly disclaimed in individual files.
12 *
13 * The authors hereby grant permission to use, copy, modify,
14 * distribute, and license this software and its documentation for any
15 * purpose, provided that existing copyright notices are retained in
16 * all copies and that this notice is included verbatim in any
17 * distributions. No written agreement, license, or royalty fee is
18 * required for any of the authorized uses. Modifications to this
19 * software may be copyrighted by their authors and need not follow
20 * the licensing terms described here, provided that the new terms are
21 * clearly indicated on the first page of each file where they apply.
22 *
23 * IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY
24 * PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
25 * DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION,
26 * OR ANY DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED
27 * OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
30 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
31 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
32 * NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS,
33 * AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE
34 * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
35 *
36 * GOVERNMENT USE: If you are acquiring this software on behalf of the
37 * U.S. government, the Government shall have only "Restricted Rights"
38 * in the software and related documentation as defined in the Federal
39 * Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
40 * are acquiring the software on behalf of the Department of Defense,
41 * the software shall be classified as "Commercial Computer Software"
42 * and the Government shall have only "Restricted Rights" as defined
43 * in Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the
44 * foregoing, the authors grant the U.S. Government and others acting
45 * in its behalf permission to use and distribute the software in
46 * accordance with the terms specified in this license.
47 *
48 */
49
50 #pragma once
51
52
53 #include <gdk/gdk.h>cxx . . $ `<file>/gdk/gdk.h`/
54 #include <gtk/gtkenums.h>cxx . . $ `<file>/gtk/gtkenums.h`/
55
56
57 G_BEGIN_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:947:9`!
58
59 typedef struct _GtkTextAttributescxx . . $ _GtkTextAttributes# GtkTextAttributescxx . . $ GtkTextAttributes#;
60 typedef struct _GtkTextAppearancecxx . . $ _GtkTextAppearance# GtkTextAppearancecxx . . $ GtkTextAppearance#;
61
62 struct _GtkTextAppearancecxx . . $ _GtkTextAppearance#
63 {
64 GdkRGBAcxx . . $ GdkRGBA# *bg_rgbacxx . . $ _GtkTextAppearance#bg_rgba.;
65 GdkRGBAcxx . . $ GdkRGBA# *fg_rgbacxx . . $ _GtkTextAppearance#fg_rgba.;
66 GdkRGBAcxx . . $ GdkRGBA# *underline_rgbacxx . . $ _GtkTextAppearance#underline_rgba.;
67 GdkRGBAcxx . . $ GdkRGBA# *overline_rgbacxx . . $ _GtkTextAppearance#overline_rgba.;
68 GdkRGBAcxx . . $ GdkRGBA# *strikethrough_rgbacxx . . $ _GtkTextAppearance#strikethrough_rgba.;
69
70 /* super/subscript rise, can be negative */
71 int risecxx . . $ _GtkTextAppearance#rise.;
72
73 guintcxx . . $ guint# underlinecxx . . $ _GtkTextAppearance#underline. : 4; /* PangoUnderline */
74 guintcxx . . $ guint# overlinecxx . . $ _GtkTextAppearance#overline. : 2; /* PangoOverline */
75 guintcxx . . $ guint# strikethroughcxx . . $ _GtkTextAppearance#strikethrough. : 1;
76
77 /* Whether to use background-related values; this is irrelevant for
78 * the values struct when in a tag, but is used for the composite
79 * values struct; it's true if any of the tags being composited
80 * had background stuff set.
81 */
82 guintcxx . . $ guint# draw_bgcxx . . $ _GtkTextAppearance#draw_bg. : 1;
83
84 /* These are only used when we are actually laying out and rendering
85 * a paragraph; not when a GtkTextAppearance is part of a
86 * GtkTextAttributes.
87 */
88 guintcxx . . $ guint# inside_selectioncxx . . $ _GtkTextAppearance#inside_selection. : 1;
89 guintcxx . . $ guint# is_textcxx . . $ _GtkTextAppearance#is_text. : 1;
90 };
91
92 /**
93 * GtkTextAttributes:
94 * @appearance: GtkTextAppearance for text.
95 * @justification: GtkJustification for text.
96 * @direction: GtkTextDirection for text.
97 * @font: `PangoFontDescription` for text.
98 * @font_scale: Font scale factor.
99 * @left_margin: Width of the left margin in pixels.
100 * @right_margin: Width of the right margin in pixels.
101 * @indent: Amount to indent the paragraph, in pixels.
102 * @pixels_above_lines: Pixels of blank space above paragraphs.
103 * @pixels_below_lines: Pixels of blank space below paragraphs.
104 * @pixels_inside_wrap: Pixels of blank space between wrapped lines in
105 * a paragraph.
106 * @tabs: Custom `PangoTabArray` for this text.
107 * @wrap_mode: `GtkWrapMode` for text.
108 * @language: `PangoLanguage` for text.
109 * @invisible: Hide the text.
110 * @bg_full_height: Background is fit to full line height rather than
111 * baseline +/- ascent/descent (font height).
112 * @editable: Can edit this text.
113 * @no_fallback: Whether to disable font fallback.
114 * @letter_spacing: Extra space to insert between graphemes, in Pango units
115 *
116 * Using GtkTextAttributes directly should rarely be necessary.
117 * It’s primarily useful with gtk_text_iter_get_attributes().
118 * As with most GTK structs, the fields in this struct should only
119 * be read, never modified directly.
120 */
121 struct _GtkTextAttributescxx . . $ _GtkTextAttributes#
122 {
123 guintcxx . . $ guint# refcountcxx . . $ _GtkTextAttributes#refcount.;
124
125 GtkJustificationcxx . . $ GtkJustification# justificationcxx . . $ _GtkTextAttributes#justification.;
126 GtkTextDirectioncxx . . $ GtkTextDirection# directioncxx . . $ _GtkTextAttributes#direction.;
127 GtkWrapModecxx . . $ GtkWrapMode# wrap_modecxx . . $ _GtkTextAttributes#wrap_mode.;
128
129 GtkTextAppearancecxx . . $ GtkTextAppearance# appearancecxx . . $ _GtkTextAttributes#appearance.;
130
131 PangoFontDescriptioncxx . . $ PangoFontDescription# *fontcxx . . $ _GtkTextAttributes#font.;
132 char *font_featurescxx . . $ _GtkTextAttributes#font_features.;
133
134 GdkRGBAcxx . . $ GdkRGBA# *pg_bg_rgbacxx . . $ _GtkTextAttributes#pg_bg_rgba.;
135
136 PangoTabArraycxx . . $ PangoTabArray# *tabscxx . . $ _GtkTextAttributes#tabs.;
137 PangoLanguagecxx . . $ PangoLanguage# *languagecxx . . $ _GtkTextAttributes#language.;
138
139 double font_scalecxx . . $ _GtkTextAttributes#font_scale.;
140
141 int left_margincxx . . $ _GtkTextAttributes#left_margin.;
142 int right_margincxx . . $ _GtkTextAttributes#right_margin.;
143 int indentcxx . . $ _GtkTextAttributes#indent.;
144
145 int pixels_above_linescxx . . $ _GtkTextAttributes#pixels_above_lines.;
146 int pixels_below_linescxx . . $ _GtkTextAttributes#pixels_below_lines.;
147 int pixels_inside_wrapcxx . . $ _GtkTextAttributes#pixels_inside_wrap.;
148
149 float line_heightcxx . . $ _GtkTextAttributes#line_height.;
150
151 int letter_spacingcxx . . $ _GtkTextAttributes#letter_spacing.;
152
153 guintcxx . . $ guint# invisiblecxx . . $ _GtkTextAttributes#invisible. : 1;
154 guintcxx . . $ guint# bg_full_heightcxx . . $ _GtkTextAttributes#bg_full_height. : 1;
155 guintcxx . . $ guint# editablecxx . . $ _GtkTextAttributes#editable. : 1;
156 guintcxx . . $ guint# no_fallbackcxx . . $ _GtkTextAttributes#no_fallback.: 1;
157 guintcxx . . $ guint# no_breakscxx . . $ _GtkTextAttributes#no_breaks. : 1;
158 guintcxx . . $ guint# show_spacescxx . . $ _GtkTextAttributes#show_spaces. : 3; /* PangoShowFlags */
159 guintcxx . . $ guint# no_hyphenscxx . . $ _GtkTextAttributes#no_hyphens. : 1;
160 guintcxx . . $ guint# line_height_is_absolutecxx . . $ _GtkTextAttributes#line_height_is_absolute. : 1;
161 guintcxx . . $ guint# text_transformcxx . . $ _GtkTextAttributes#text_transform. : 3; /* PangoTextTransform */
162 guintcxx . . $ guint# wordcxx . . $ _GtkTextAttributes#word. : 1;
163 guintcxx . . $ guint# sentencecxx . . $ _GtkTextAttributes#sentence. : 1;
164 };
165
166 GtkTextAttributescxx . . $ GtkTextAttributes#* gtk_text_attributes_newcxx . . $ gtk_text_attributes_new(9e292b3640c47520). (void);
167 GtkTextAttributescxx . . $ GtkTextAttributes#* gtk_text_attributes_copycxx . . $ gtk_text_attributes_copy(280d331a24d20563). (GtkTextAttributescxx . . $ GtkTextAttributes# *src);
168 void gtk_text_attributes_copy_valuescxx . . $ gtk_text_attributes_copy_values(81cef555dc0f6431). (GtkTextAttributescxx . . $ GtkTextAttributes# *src,
169 GtkTextAttributescxx . . $ GtkTextAttributes# *dest);
170 void gtk_text_attributes_unrefcxx . . $ gtk_text_attributes_unref(f8db6e1dc910a28d). (GtkTextAttributescxx . . $ GtkTextAttributes# *values);
171 GtkTextAttributescxx . . $ GtkTextAttributes# *gtk_text_attributes_refcxx . . $ gtk_text_attributes_ref(280d331a24d20563). (GtkTextAttributescxx . . $ GtkTextAttributes# *values);
172
173 G_END_DECLScxx . . $ `<external>/12741050725406041920/gmacros.h:948:9`!
174