File: gtk-text_tag.ads

package info (click to toggle)
libgtkada2 2.8.1-6lenny3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,496 kB
  • ctags: 3,886
  • sloc: ada: 103,189; ansic: 45,411; perl: 5,500; sh: 2,812; makefile: 1,169; xml: 19
file content (555 lines) | stat: -rw-r--r-- 25,351 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
-----------------------------------------------------------------------
--              GtkAda - Ada95 binding for Gtk+/Gnome                --
--                                                                   --
--                 Copyright (C) 2001-2006 AdaCore                   --
--                                                                   --
-- This library is free software; you can redistribute it and/or     --
-- modify it under the terms of the GNU General Public               --
-- License as published by the Free Software Foundation; either      --
-- version 2 of the License, or (at your option) any later version.  --
--                                                                   --
-- This library is distributed in the hope that it will be useful,   --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of    --
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU --
-- General Public License for more details.                          --
--                                                                   --
-- You should have received a copy of the GNU General Public         --
-- License along with this library; if not, write to the             --
-- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      --
-- Boston, MA 02111-1307, USA.                                       --
--                                                                   --
-----------------------------------------------------------------------

--  <description>
--  A tag is a set of properties that can be associated with a range of text.
--  See also Gtk.Text_Attributes. Tags should be in a Gtk_Text_Tag_Table for
--  a given before before they are used in that buffer.
--  </description>
--  <c_version>2.8.17</c_version>
--  <group>Multiline Text Editor</group>

with Gtk.Enums;
with Pango.Enums;
with Glib.Properties;
with Glib.GSlist;
with Pango.Font;
with Gdk.Color;
with System;
pragma Elaborate_All (Gdk.Color);
pragma Elaborate_All (Glib.GSlist);

package Gtk.Text_Tag is

   type Gtk_Text_Tag_Record is new GObject_Record with private;
   type Gtk_Text_Tag is access all Gtk_Text_Tag_Record'Class;

   function Convert (W : Gtk_Text_Tag) return System.Address;
   function Convert (W : System.Address) return Gtk_Text_Tag;
   package Text_Tag_List is new Glib.GSlist.Generic_SList
     (Gpointer => Gtk_Text_Tag);

   procedure Gtk_New (Widget : out Gtk_Text_Tag; Name : String := "");
   --  Create a new Gtk_Text_Tag.
   --  Newly created tags must be added to the tags table for the buffer you
   --  intend to use them in.
   --     Gtk.Text_Tag_Table.Add (Get_Tag_Table (Buffer), Tag);
   --  See also Gtk.Text_Buffer.Create_Tag which is a more convenient way of
   --  creating a tag.

   procedure Initialize
     (Widget : access Gtk_Text_Tag_Record'Class;
      Name   : String := "");
   --  Internal initialization function.
   --  See the section "Creating your own widgets" in the documentation.

   function Get_Type return Glib.GType;
   --  Return the internal value associated with this widget.

   procedure Set_Priority (Tag : access Gtk_Text_Tag_Record; Priority : Gint);
   function Get_Priority (Tag : access Gtk_Text_Tag_Record) return Gint;
   --  Set the priority of a Gtk_Text_Tag.
   --  Valid priorities start at 0 and go to one less than Table_Size.
   --  Each tag in a table has a unique priority; setting the priority of one
   --  tag shifts the priorities of all the other tags in the table to maintain
   --  a unique priority for each tag. Higher priority tags "win" if two tags
   --  both set the same text attribute. When adding a tag to a tag table, it
   --  will be assigned the highest priority in the table by default; so
   --  normally the precedence of a set of tags is the order in which they were
   --  added to the table, or created with Gtk.Text_Buffer.Create_Tag, which
   --  adds the tag to the buffer's table automatically.

   ----------------
   -- Properties --
   ----------------

   --  <properties>
   --  The following properties are defined for this widget. See
   --  Glib.Properties for more information on properties.
   --
   --  Name:  Name_Property
   --  Type:  String
   --  Flags: read-write (construct only)
   --  Descr: Name used to refer to the text tag
   --
   --  Name:  Background_Property
   --  Type:  String
   --  Flags: writable
   --  Descr: Background color as a string
   --
   --  Name:  Background_Gdk_Property
   --  Type:  Gdk_Color
   --  Flags: read-write
   --  Descr: Background color
   --
   --  Name:  Background_Full_Height_Property
   --  Type:  Boolean
   --  Flags: read-write
   --  Descr: Whether the background color fills the entire line height or
   --         only the height of the tagged characters
   --
   --  Name:  Background_Stipple_Property
   --  Type:  Gdk_Pixmap
   --  Flags: read-write
   --  Descr: Bitmap to use as a mask when drawing the text background
   --
   --  Name:  Foreground_Property
   --  Type:  String
   --  Flags: writable
   --  Descr: Foreground color as a string
   --
   --  Name:  Foreground_Gdk_Property
   --  Type:  Gdk_Color
   --  Flags: read-write
   --  Descr: Foreground color
   --
   --  Name:  Foreground_Stipple_Property
   --  Type:  Gdk_Pixmap
   --  Flags: read-write
   --  Descr: Bitmap to use as a mask when drawing the text foreground
   --
   --  Name:  Direction_Property
   --  Type:  Gtk_Text_Direction
   --  Flags: read-write
   --  Descr: Text direction, e.g. right-to-left or left-to-right
   --
   --  Name:  Editable_Property
   --  Type:  Boolean
   --  Flags: read-write
   --  Descr: Whether the text can be modified by the user
   --
   --  Name:  Font_Property
   --  Type:  String
   --  Flags: read-write
   --  Descr: Font description as a string
   --
   --  Name:  Font_Desc_Property
   --  Type:  Pango_Font_Description
   --  Flags: read-write
   --  Descr: Font description
   --
   --  Name:  Family_Property
   --  Type:  String
   --  Flags: read-write
   --  Descr: Name of the font family, e.g. Sans, Helvetica, Times, Monospace
   --
   --  Name:  Style_Property
   --  Type:  Pango.Enums.Style
   --  Flags: read-write
   --  Descr: Font style
   --
   --  Name:  Variant_Property
   --  Type:  Pango_Type_Variant
   --  Flags: read-write
   --  Descr: Font variant
   --
   --  Name:  Weight_Property
   --  Type:  Pango.Enums.Weight
   --  Flags: read-write
   --  Descr: Font weight
   --
   --  Name:  Stretch_Property
   --  Type:  Pango_Type_Strech
   --  Flags: read-write
   --  Descr: Font strech
   --
   --  Name:  Size_Property
   --  Type:  Gint
   --  Flags: read-write
   --  Descr: Font size
   --
   --  Name:  Size_Points_Property
   --  Type:  Gdouble
   --  Flags: read-write
   --  Descr: Font size in points
   --
   --  Name:  Justification_Property
   --  Type:  Gtk_Type_Justification
   --  Flags: read-write
   --  Descr: Left, right, or center justification
   --
   --  Name:  Language_Property
   --  Type:  String
   --  Flags: read-write
   --  Descr: Language engine code to use for rendering the text
   --
   --  Name:  Left_Margin_Property
   --  Type:  Gint
   --  Flags: read-write
   --  Descr: Width of the left margin in pixels
   --
   --  Name:  Right_Margin_Property
   --  Type:  Gint
   --  Flags: read-write
   --  Descr: Width of the right margin in pixels
   --
   --  Name:  Indent_Property
   --  Type:  Gint
   --  Flags: read-write
   --  Descr: Amount to indent the paragraph, in pixels
   --
   --  Name:  Rise_Property
   --  Type:  Gint
   --  Flags: read-write
   --  Descr: Offset of text above the baseline (below the baseline if
   --         rise is negative)
   --
   --  Name:  Pixels_Above_Lines_Property
   --  Type:  Gint
   --  Flags: read-write
   --  Descr: Pixels of blank space above paragraphs
   --
   --  Name:  Pixels_Below_Lines_Property
   --  Type:  Gint
   --  Flags: read-write
   --  Descr: Pixels of blank space below paragraphs
   --
   --  Name:  Strikethrough_Property
   --  Type:  Boolean
   --  Flags: read-write
   --  Descr: Whether to strike through the text
   --
   --  Name:  Underline_Property
   --  Type:  Pango_Type_Underline
   --  Flags: read-write
   --  Descr: Style of underline for this text
   --
   --  Name:  Wrap_Mode_Property
   --  Type:  Gtk_Wrap_Mode
   --  Flags: read-write
   --  Descr: Whether to wrap lines never, at word boundaries, or at
   --         character boundaries
   --
   --  Name:  Tabs_Property
   --  Type:  Pango_Tab_Array
   --  Flags: read-write
   --  Descr: Custom tabs for this text
   --
   --  Name:  Invisible_Property
   --  Type:  Boolean
   --  Flags: read-write
   --  Descr: Whether this text is hidden
   --
   --  Name:  Scale_Property
   --  Type:  Double
   --  Descr: Font size as a scale factor relative to the default font size.
   --         This properly adapts to theme changes etc. so is recommended.
   --         Pango predefines some scales such as PANGO_SCALE_X_LARGE
   --
   --  Name:  Paragraph_Background_Property
   --  Type:  String
   --  Descr: Paragraph background color as a string
   --
   --  Name:  Paragraph_Background_Gdk_Property
   --  Type:  Gdk_Color
   --  Descr: Paragraph background color as a color

   --  The following properties indicate whether a tag modifies some aspect of
   --  text or not. You do not need to modify them explicitely when modifying
   --  one of the above properties, since they will be automatically set to
   --  True when you modify the above.
   --  However, the ones below should be set back to False if you wish to
   --  cancel the effect of a previous modification of a tag.
   --
   --  They all default to False, unless you have modified one of the
   --  properties above. They are all of type boolean, and match the properties
   --  above.
   --
   --  Name: Background_Full_Height_Set_Property
   --  Name: Background_Set_Property
   --  Name: Background_Stipple_Set_Property
   --  Name: Editable_Set_Property
   --  Name: Family_Set_Property
   --  Name: Foreground_Set_Property
   --  Name: Foreground_Stipple_Set_Property
   --  Name: Indent_Set_Property
   --  Name: Inside_Wrap_Set_Property
   --  Name: Invisible_Set_Property
   --  Name: Justification_Set_Property
   --  Name: Language_Set_Property
   --  Name: Left_Margin_Set_Property
   --  Name: Paragraph_Background_Set_Property
   --  Name: Pixels_Above_Lines_Set_Property
   --  Name: Pixels_Below_Lines_Set_Property
   --  Name: Pixels_Inside_Wrap_Set_Property
   --  Name: Right_Margin_Set_Property
   --  Name: Rise_Set_Property
   --  Name: Scale_Set_Property
   --  Name: Size_Set_Property
   --  Name: Stretch_Set_Property
   --  Name: Strikethrough_Set_Property
   --  Name: Style_Set_Property
   --  Name: Tabs_Set_Property
   --  Name: Underline_Set_Property
   --  Name: Variant_Set_Property
   --  Name: Weight_Set_Property
   --  Name: Wrap_Mode_Set_Property
   --
   --  </properties>

   Background_Full_Height_Property : constant Glib.Properties.Property_Boolean;
   Background_Gdk_Property     : constant Gdk.Color.Property_Gdk_Color;
   Background_Property         : constant Glib.Properties.Property_String_WO;
   Background_Stipple_Property : constant Glib.Properties.Property_C_Proxy;
   Direction_Property         : constant Gtk.Enums.Property_Gtk_Text_Direction;
   Editable_Property           : constant Glib.Properties.Property_Boolean;
   Family_Property             : constant Glib.Properties.Property_String;
   Font_Desc_Property          : constant Pango.Font.Property_Font_Description;
   Font_Property               : constant Glib.Properties.Property_String;
   Foreground_Gdk_Property     : constant Gdk.Color.Property_Gdk_Color;
   Foreground_Property         : constant Glib.Properties.Property_String_WO;
   Foreground_Stipple_Property : constant Glib.Properties.Property_C_Proxy;
   Indent_Property             : constant Glib.Properties.Property_Int;
   Inside_Wrap_Property        : constant Glib.Properties.Property_Int;
   Invisible_Property          : constant Glib.Properties.Property_Boolean;
   Justification_Property      : constant Gtk.Enums.Property_Gtk_Justification;
   Language_Property           : constant Glib.Properties.Property_String;
   Left_Margin_Property        : constant Glib.Properties.Property_Int;
   Name_Property               : constant Glib.Properties.Property_String;
   Paragraph_Background_Property  : constant Glib.Properties.Property_String;
   Pixels_Above_Lines_Property : constant Glib.Properties.Property_Int;
   Pixels_Below_Lines_Property : constant Glib.Properties.Property_Int;
   Pixels_Inside_Wrap_Property : constant Glib.Properties.Property_Int;
   Right_Margin_Property       : constant Glib.Properties.Property_Int;
   Rise_Property               : constant Glib.Properties.Property_Int;
   Scale_Property              : constant Glib.Properties.Property_Double;
   Size_Points_Property        : constant Glib.Properties.Property_Double;
   Size_Property               : constant Glib.Properties.Property_Int;
   Stretch_Property            : constant Pango.Enums.Property_Stretch;
   Strikethrough_Property      : constant Glib.Properties.Property_Boolean;
   Style_Property              : constant Pango.Enums.Property_Style;
   Underline_Property          : constant Pango.Enums.Property_Underline;
   Variant_Property            : constant Pango.Enums.Property_Variant;
   Weight_Property             : constant Pango.Enums.Property_Weight;
   Wrap_Mode_Property          : constant Gtk.Enums.Property_Gtk_Wrap_Mode;

   --  Tabs_Property            : constant Pango.Types.Property_Tab_Array;
   --  Paragraph_Background_Gdk_Property :
   --     constant Glib.Properties.Property_Boxed;

   Background_Full_Height_Set_Property : constant
     Glib.Properties.Property_Boolean;
   Background_Set_Property         : constant Glib.Properties.Property_Boolean;
   Background_Stipple_Set_Property : constant Glib.Properties.Property_Boolean;
   Editable_Set_Property           : constant Glib.Properties.Property_Boolean;
   Family_Set_Property             : constant Glib.Properties.Property_Boolean;
   Foreground_Set_Property         : constant Glib.Properties.Property_Boolean;
   Foreground_Stipple_Set_Property : constant Glib.Properties.Property_Boolean;
   Indent_Set_Property             : constant Glib.Properties.Property_Boolean;
   Inside_Wrap_Set_Property        : constant Glib.Properties.Property_Boolean;
   Invisible_Set_Property          : constant Glib.Properties.Property_Boolean;
   Justification_Set_Property      : constant Glib.Properties.Property_Boolean;
   Language_Set_Property           : constant Glib.Properties.Property_Boolean;
   Left_Margin_Set_Property        : constant Glib.Properties.Property_Boolean;
   Paragraph_Background_Set_Property : constant
     Glib.Properties.Property_Boolean;
   Pixels_Above_Lines_Set_Property : constant Glib.Properties.Property_Boolean;
   Pixels_Below_Lines_Set_Property : constant Glib.Properties.Property_Boolean;
   Pixels_Inside_Wrap_Set_Property : constant Glib.Properties.Property_Boolean;
   Right_Margin_Set_Property       : constant Glib.Properties.Property_Boolean;
   Rise_Set_Property               : constant Glib.Properties.Property_Boolean;
   Scale_Set_Property              : constant Glib.Properties.Property_Boolean;
   Size_Set_Property               : constant Glib.Properties.Property_Boolean;
   Stretch_Set_Property            : constant Glib.Properties.Property_Boolean;
   Strikethrough_Set_Property      : constant Glib.Properties.Property_Boolean;
   Style_Set_Property              : constant Glib.Properties.Property_Boolean;
   Tabs_Set_Property               : constant Glib.Properties.Property_Boolean;
   Underline_Set_Property          : constant Glib.Properties.Property_Boolean;
   Variant_Set_Property            : constant Glib.Properties.Property_Boolean;
   Weight_Set_Property             : constant Glib.Properties.Property_Boolean;
   Wrap_Mode_Set_Property          : constant Glib.Properties.Property_Boolean;

   -------------
   -- Signals --
   -------------

   --  <signals>
   --  The following new signals are defined for this widget:
   --
   --  - "event"
   --    function Handler
   --      (Tag          : access Gtk_Text_Tag_Record'Class;
   --       Event_Object : out GObject;
   --       Event        : Gdk.Event.Gdk_Event;
   --       Iter         : access Gtk.Text_Iter.Gtk_Text_Iter_Record'Class)
   --       return Gint;
   --    ???
   --
   --  </signals>

   Signal_Event : constant String := "event";

private
   type Gtk_Text_Tag_Record is new GObject_Record with null record;

   Background_Full_Height_Property : constant Glib.Properties.Property_Boolean
     := Glib.Properties.Build ("background_full_height");
   Direction_Property         : constant Gtk.Enums.Property_Gtk_Text_Direction
     := Gtk.Enums.Build ("direction");
   Name_Property               : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("name");
   Background_Property         : constant Glib.Properties.Property_String_WO :=
     Glib.Properties.Build ("background");
   Background_Gdk_Property     : constant Gdk.Color.Property_Gdk_Color :=
     Gdk.Color.Build ("background_gdk");
   Background_Stipple_Property : constant Glib.Properties.Property_C_Proxy :=
     Glib.Properties.Build ("background_stipple");
   Foreground_Property         : constant Glib.Properties.Property_String_WO :=
     Glib.Properties.Build ("foreground");
   Foreground_Gdk_Property     : constant Gdk.Color.Property_Gdk_Color :=
     Gdk.Color.Build ("foreground_gdk");
   Foreground_Stipple_Property : constant Glib.Properties.Property_C_Proxy :=
     Glib.Properties.Build ("foreground_stipple");
   Editable_Property           : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("editable");
   Font_Property               : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("font");
   Font_Desc_Property        : constant Pango.Font.Property_Font_Description :=
     Pango.Font.Build ("font_desc");
   Family_Property             : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("family");
   Style_Property              : constant Pango.Enums.Property_Style :=
     Pango.Enums.Build ("style");
   Variant_Property            : constant Pango.Enums.Property_Variant :=
     Pango.Enums.Build ("variant");
   Weight_Property             : constant Pango.Enums.Property_Weight :=
     Pango.Enums.Build ("weight");
   Stretch_Property            : constant Pango.Enums.Property_Stretch :=
     Pango.Enums.Build ("stretch");
   Size_Property               : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("size");
   Size_Points_Property        : constant Glib.Properties.Property_Double :=
     Glib.Properties.Build ("size_points");
   Justification_Property    : constant Gtk.Enums.Property_Gtk_Justification :=
     Gtk.Enums.Build ("justification");
   Language_Property           : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("language");
   Left_Margin_Property        : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("left_margin");
   Right_Margin_Property       : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("right_margin");
   Indent_Property             : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("indent");
   Rise_Property               : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("rise");
   Pixels_Above_Lines_Property : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("pixels_above_lines");
   Pixels_Below_Lines_Property : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("pixels_below_lines");
   Inside_Wrap_Property        : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("inside_wrap");
   Strikethrough_Property     : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("strikethrough");
   Underline_Property          : constant Pango.Enums.Property_Underline :=
     Pango.Enums.Build ("underline");
   Wrap_Mode_Property          : constant Gtk.Enums.Property_Gtk_Wrap_Mode :=
     Gtk.Enums.Build ("wrap_mode");
   --  Tabs_Property               : constant Pango.Types.Property_Tab_Array :=
   --     Pango.Types.Build ("tabs");
   Invisible_Property          : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("invisible");
   Paragraph_Background_Property : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("paragraph-background");
   Pixels_Inside_Wrap_Property : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("pixels-inside-wrap");
   Scale_Property : constant Glib.Properties.Property_Double :=
     Glib.Properties.Build ("scale");

   Background_Full_Height_Set_Property : constant
     Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("background_full_height_set");
   Background_Set_Property       : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("background_set");
   Background_Stipple_Set_Property : constant Glib.Properties.Property_Boolean
     := Glib.Properties.Build ("background_stipple_set");
   Foreground_Set_Property       : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("foreground_set");
   Foreground_Stipple_Set_Property : constant Glib.Properties.Property_Boolean
     := Glib.Properties.Build ("foreground_stipple_set");
   Editable_Set_Property         : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("editable_set");
   Family_Set_Property           : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("family_set");
   Style_Set_Property            : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("style_set");
   Variant_Set_Property          : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("variant_set");
   Weight_Set_Property           : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("weight_set");
   Stretch_Set_Property          : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("stretch_set");
   Size_Set_Property             : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("size_set");
   Justification_Set_Property    : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("justification_set");
   Language_Set_Property         : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("language_set");
   Left_Margin_Set_Property      : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("left_margin_set");
   Indent_Set_Property           : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("indent_set");
   Rise_Set_Property             : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("rise_set");
   Pixels_Above_Lines_Set_Property : constant Glib.Properties.Property_Boolean
     := Glib.Properties.Build ("pixels_above_lines_set");
   Pixels_Below_Lines_Set_Property : constant Glib.Properties.Property_Boolean
     := Glib.Properties.Build ("pixels_below_lines_set");
   Inside_Wrap_Set_Property      : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("inside_wrap_set");
   Strikethrough_Set_Property   : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("strike_through_set");
   Right_Margin_Set_Property     : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("right_margin_set");
   Underline_Set_Property        : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("underline_set");
   Wrap_Mode_Set_Property        : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("wrap_mode_set");
   Tabs_Set_Property             : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("tabs_set");
   Invisible_Set_Property        : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("invisible_set");
   Paragraph_Background_Set_Property : constant
     Glib.Properties.Property_Boolean :=
       Glib.Properties.Build ("pagraph-background-set");
   Pixels_Inside_Wrap_Set_Property : constant Glib.Properties.Property_Boolean
     := Glib.Properties.Build ("pixels-inside-wrap-set");
   Scale_Set_Property            : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("scale-set");

   --  Paragraph_Background_Gdk_Property : Glib.Properties.Property_Boxed :=
   --    Glib.Properties.Build ("paragraph-background-gdk");


   pragma Import (C, Get_Type, "gtk_text_tag_get_type");
end Gtk.Text_Tag;

--  The following subprograms have a binding in gtk-text_attributes.ads:
--  No binding: gtk_text_attributes_get_type
--  No binding: gtk_text_attributes_ref
--  No binding: gtk_text_attributes_unref
--  No binding: gtk_text_attributes_copy
--  No binding: gtk_text_attributes_copy_values
--  No binding: gtk_text_attributes_new

--  The following subprogram cannot be bound in the package, since it would
--  generate a dependency cycle:
--  No binding: gtk_text_tag_event