This file is indexed.

/usr/share/ada/adainclude/gtkada/gtk-gentry.ads is in libgtkada16.1.0-dev 17.0.2017-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   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
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
------------------------------------------------------------------------------
--                                                                          --
--      Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet       --
--                     Copyright (C) 2000-2017, AdaCore                     --
--                                                                          --
-- This library is free software;  you can redistribute it and/or modify it --
-- under terms of the  GNU General Public License  as published by the Free --
-- Software  Foundation;  either version 3,  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 MERCHAN- --
-- TABILITY or FITNESS FOR A PARTICULAR PURPOSE.                            --
--                                                                          --
--                                                                          --
--                                                                          --
--                                                                          --
--                                                                          --
-- You should have received a copy of the GNU General Public License and    --
-- a copy of the GCC Runtime Library Exception along with this program;     --
-- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
-- <http://www.gnu.org/licenses/>.                                          --
--                                                                          --
------------------------------------------------------------------------------

--  <description>
--  The Gtk.GEntry.Gtk_Entry widget is a single line text entry widget. A
--  fairly large set of key bindings are supported by default. If the entered
--  text is longer than the allocation of the widget, the widget will scroll so
--  that the cursor position is visible.
--
--  When using an entry for passwords and other sensitive information, it can
--  be put into "password mode" using Gtk.GEntry.Set_Visibility. In this mode,
--  entered text is displayed using a "invisible" character. By default, GTK+
--  picks the best invisible character that is available in the current font,
--  but it can be changed with Gtk.GEntry.Set_Invisible_Char. Since 2.16, GTK+
--  displays a warning when Caps Lock or input methods might interfere with
--  entering text in a password entry. The warning can be turned off with the
--  Gtk.GEntry.Gtk_Entry:caps-lock-warning property.
--
--  Since 2.16, GtkEntry has the ability to display progress or activity
--  information behind the text. To make an entry display such information, use
--  Gtk.GEntry.Set_Progress_Fraction or Gtk.GEntry.Set_Progress_Pulse_Step.
--
--  Additionally, GtkEntry can show icons at either side of the entry. These
--  icons can be activatable by clicking, can be set up as drag source and can
--  have tooltips. To add an icon, use Gtk.GEntry.Set_Icon_From_Gicon or one of
--  the various other functions that set an icon from a stock id, an icon name
--  or a pixbuf. To trigger an action when the user clicks an icon, connect to
--  the Gtk.GEntry.Gtk_Entry::icon-press signal. To allow DND operations from
--  an icon, use Gtk.GEntry.Set_Icon_Drag_Source. To set a tooltip on an icon,
--  use Gtk.GEntry.Set_Icon_Tooltip_Text or the corresponding function for
--  markup.
--
--  Note that functionality or information that is only available by clicking
--  on an icon in an entry may not be accessible at all to users which are not
--  able to use a mouse or other pointing device. It is therefore recommended
--  that any such functionality should also be available by other means, e.g.
--  via the context menu of the entry.
--
--  </description>
--  <description>
--  A Gtk_Entry is a single line text editing widget. The text is
--  automatically scrolled if it is longer than can be displayed on the screen,
--  so that the cursor position is visible at all times.
--
--  See Gtk_Text_View for a multiple-line text editing widget.
--
--  </description>
--  <screenshot>gtk-gentry</screenshot>
--  <group>Numeric/Text Data Entry</group>
--  <testgtk>create_entry.adb</testgtk>
pragma Ada_2005;

pragma Warnings (Off, "*is already use-visible*");
with Gdk.Drag_Contexts;       use Gdk.Drag_Contexts;
with Gdk.Event;               use Gdk.Event;
with Gdk.Pixbuf;              use Gdk.Pixbuf;
with Gdk.Rectangle;           use Gdk.Rectangle;
with Glib;                    use Glib;
with Glib.G_Icon;             use Glib.G_Icon;
with Glib.Generic_Properties; use Glib.Generic_Properties;
with Glib.Object;             use Glib.Object;
with Glib.Properties;         use Glib.Properties;
with Glib.Types;              use Glib.Types;
with Gtk.Adjustment;          use Gtk.Adjustment;
with Gtk.Buildable;           use Gtk.Buildable;
with Gtk.Cell_Editable;       use Gtk.Cell_Editable;
with Gtk.Editable;            use Gtk.Editable;
with Gtk.Entry_Buffer;        use Gtk.Entry_Buffer;
with Gtk.Entry_Completion;    use Gtk.Entry_Completion;
with Gtk.Enums;               use Gtk.Enums;
with Gtk.Image;               use Gtk.Image;
with Gtk.Style;               use Gtk.Style;
with Gtk.Target_List;         use Gtk.Target_List;
with Gtk.Widget;              use Gtk.Widget;
with Pango.Attributes;        use Pango.Attributes;
with Pango.Layout;            use Pango.Layout;
with Pango.Tabs;              use Pango.Tabs;

package Gtk.GEntry is

   type Gtk_Entry_Record is new Gtk_Widget_Record with null record;
   type Gtk_Entry is access all Gtk_Entry_Record'Class;

   type Gtk_Entry_Icon_Position is (
      Gtk_Entry_Icon_Primary,
      Gtk_Entry_Icon_Secondary);
   pragma Convention (C, Gtk_Entry_Icon_Position);
   --  Specifies the side of the entry at which an icon is placed.

   ----------------------------
   -- Enumeration Properties --
   ----------------------------

   package Gtk_Entry_Icon_Position_Properties is
      new Generic_Internal_Discrete_Property (Gtk_Entry_Icon_Position);
   type Property_Gtk_Entry_Icon_Position is new Gtk_Entry_Icon_Position_Properties.Property;

   ------------------
   -- Constructors --
   ------------------

   procedure Gtk_New (The_Entry : out Gtk_Entry);
   procedure Initialize (The_Entry : not null access Gtk_Entry_Record'Class);
   --  Creates a new entry.
   --  Initialize does nothing if the object was already created with another
   --  call to Initialize* or G_New.

   function Gtk_Entry_New return Gtk_Entry;
   --  Creates a new entry.

   procedure Gtk_New_With_Buffer
      (The_Entry : out Gtk_Entry;
       Buffer    : not null access Gtk.Entry_Buffer.Gtk_Entry_Buffer_Record'Class);
   procedure Initialize_With_Buffer
      (The_Entry : not null access Gtk_Entry_Record'Class;
       Buffer    : not null access Gtk.Entry_Buffer.Gtk_Entry_Buffer_Record'Class);
   --  Creates a new entry with the specified text buffer.
   --  Since: gtk+ 2.18
   --  Initialize_With_Buffer does nothing if the object was already created
   --  with another call to Initialize* or G_New.
   --  "buffer": The buffer to use for the new Gtk.GEntry.Gtk_Entry.

   function Gtk_Entry_New_With_Buffer
      (Buffer : not null access Gtk.Entry_Buffer.Gtk_Entry_Buffer_Record'Class)
       return Gtk_Entry;
   --  Creates a new entry with the specified text buffer.
   --  Since: gtk+ 2.18
   --  "buffer": The buffer to use for the new Gtk.GEntry.Gtk_Entry.

   function Get_Type return Glib.GType;
   pragma Import (C, Get_Type, "gtk_entry_get_type");

   -------------
   -- Methods --
   -------------

   function Get_Activates_Default
      (The_Entry : not null access Gtk_Entry_Record) return Boolean;
   --  Retrieves the value set by Gtk.GEntry.Set_Activates_Default.

   procedure Set_Activates_Default
      (The_Entry : not null access Gtk_Entry_Record;
       Setting   : Boolean);
   --  If Setting is True, pressing Enter in the Entry will activate the
   --  default widget for the window containing the entry. This usually means
   --  that the dialog box containing the entry will be closed, since the
   --  default widget is usually one of the dialog buttons.
   --  (For experts: if Setting is True, the entry calls
   --  Gtk.Window.Activate_Default on the window containing the entry, in the
   --  default handler for the Gtk.GEntry.Gtk_Entry::activate signal.)
   --  "setting": True to activate window's default widget on Enter keypress

   function Get_Alignment
      (The_Entry : not null access Gtk_Entry_Record) return Gfloat;
   --  Gets the value set by Gtk.GEntry.Set_Alignment.
   --  Since: gtk+ 2.4

   procedure Set_Alignment
      (The_Entry : not null access Gtk_Entry_Record;
       Xalign    : Gfloat);
   --  Sets the alignment for the contents of the entry. This controls the
   --  horizontal positioning of the contents when the displayed text is
   --  shorter than the width of the entry.
   --  Since: gtk+ 2.4
   --  "xalign": The horizontal alignment, from 0 (left) to 1 (right).
   --  Reversed for RTL layouts

   function Get_Attributes
      (The_Entry : not null access Gtk_Entry_Record)
       return Pango.Attributes.Pango_Attr_List;
   --  Gets the attribute list that was set on the entry using
   --  Gtk.GEntry.Set_Attributes, if any.
   --  Since: gtk+ 3.6

   procedure Set_Attributes
      (The_Entry : not null access Gtk_Entry_Record;
       Attrs     : Pango.Attributes.Pango_Attr_List);
   --  Sets a Pango.Attributes.Pango_Attr_List; the attributes in the list are
   --  applied to the entry text.
   --  Since: gtk+ 3.6
   --  "attrs": a Pango.Attributes.Pango_Attr_List

   function Get_Buffer
      (The_Entry : not null access Gtk_Entry_Record)
       return Gtk.Entry_Buffer.Gtk_Entry_Buffer;
   --  Get the Gtk.Entry_Buffer.Gtk_Entry_Buffer object which holds the text
   --  for this widget.
   --  Since: gtk+ 2.18

   procedure Set_Buffer
      (The_Entry : not null access Gtk_Entry_Record;
       Buffer    : not null access Gtk.Entry_Buffer.Gtk_Entry_Buffer_Record'Class);
   --  Set the Gtk.Entry_Buffer.Gtk_Entry_Buffer object which holds the text
   --  for this widget.
   --  Since: gtk+ 2.18
   --  "buffer": a Gtk.Entry_Buffer.Gtk_Entry_Buffer

   function Get_Completion
      (The_Entry : not null access Gtk_Entry_Record)
       return Gtk.Entry_Completion.Gtk_Entry_Completion;
   --  Returns the auxiliary completion object currently in use by Entry.
   --  Since: gtk+ 2.4

   procedure Set_Completion
      (The_Entry  : not null access Gtk_Entry_Record;
       Completion : access Gtk.Entry_Completion.Gtk_Entry_Completion_Record'Class);
   --  Sets Completion to be the auxiliary completion object to use with
   --  Entry. All further configuration of the completion mechanism is done on
   --  Completion using the Gtk.Entry_Completion.Gtk_Entry_Completion API.
   --  Completion is disabled if Completion is set to null.
   --  Since: gtk+ 2.4
   --  "completion": The Gtk.Entry_Completion.Gtk_Entry_Completion or null

   function Get_Current_Icon_Drag_Source
      (The_Entry : not null access Gtk_Entry_Record) return Gint;
   --  Returns the index of the icon which is the source of the current DND
   --  operation, or -1.
   --  This function is meant to be used in a
   --  Gtk.Widget.Gtk_Widget::drag-data-get callback.
   --  Since: gtk+ 2.16

   function Get_Cursor_Hadjustment
      (The_Entry : not null access Gtk_Entry_Record)
       return Gtk.Adjustment.Gtk_Adjustment;
   --  Retrieves the horizontal cursor adjustment for the entry. See
   --  Gtk.GEntry.Set_Cursor_Hadjustment.
   --  Since: gtk+ 2.12

   procedure Set_Cursor_Hadjustment
      (The_Entry  : not null access Gtk_Entry_Record;
       Adjustment : not null access Gtk.Adjustment.Gtk_Adjustment_Record'Class);
   --  Hooks up an adjustment to the cursor position in an entry, so that when
   --  the cursor is moved, the adjustment is scrolled to show that position.
   --  See Gtk.Scrolled_Window.Get_Hadjustment for a typical way of obtaining
   --  the adjustment.
   --  The adjustment has to be in pixel units and in the same coordinate
   --  system as the entry.
   --  Since: gtk+ 2.12
   --  "adjustment": an adjustment which should be adjusted when the cursor is
   --  moved, or null

   function Get_Has_Frame
      (The_Entry : not null access Gtk_Entry_Record) return Boolean;
   --  Gets the value set by Gtk.GEntry.Set_Has_Frame.

   procedure Set_Has_Frame
      (The_Entry : not null access Gtk_Entry_Record;
       Setting   : Boolean := True);
   --  Sets whether the entry has a beveled frame around it.
   --  "setting": new value

   function Get_Icon_Activatable
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position) return Boolean;
   --  Returns whether the icon is activatable.
   --  Since: gtk+ 2.16
   --  "icon_pos": Icon position

   procedure Set_Icon_Activatable
      (The_Entry   : not null access Gtk_Entry_Record;
       Icon_Pos    : Gtk_Entry_Icon_Position;
       Activatable : Boolean);
   --  Sets whether the icon is activatable.
   --  Since: gtk+ 2.16
   --  "icon_pos": Icon position
   --  "activatable": True if the icon should be activatable

   procedure Get_Icon_Area
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position;
       Icon_Area : out Gdk.Rectangle.Gdk_Rectangle);
   --  Gets the area where entry's icon at Icon_Pos is drawn. This function is
   --  useful when drawing something to the entry in a draw callback.
   --  If the entry is not realized or has no icon at the given position,
   --  Icon_Area is filled with zeros.
   --  See also Gtk.GEntry.Get_Text_Area
   --  Since: gtk+ 3.0
   --  "icon_pos": Icon position
   --  "icon_area": Return location for the icon's area

   function Get_Icon_At_Pos
      (The_Entry : not null access Gtk_Entry_Record;
       X         : Gint;
       Y         : Gint) return Gint;
   --  Finds the icon at the given position and return its index. The
   --  position's coordinates are relative to the Entry's top left corner. If
   --  X, Y doesn't lie inside an icon, -1 is returned. This function is
   --  intended for use in a Gtk.Widget.Gtk_Widget::query-tooltip signal
   --  handler.
   --  Since: gtk+ 2.16
   --  "x": the x coordinate of the position to find
   --  "y": the y coordinate of the position to find

   function Get_Icon_Gicon
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position) return Glib.G_Icon.G_Icon;
   --  Retrieves the Glib.G_Icon.G_Icon used for the icon, or null if there is
   --  no icon or if the icon was set by some other method (e.g., by stock,
   --  pixbuf, or icon name).
   --  Since: gtk+ 2.16
   --  "icon_pos": Icon position

   function Get_Icon_Name
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position) return UTF8_String;
   --  Retrieves the icon name used for the icon, or null if there is no icon
   --  or if the icon was set by some other method (e.g., by pixbuf, stock or
   --  gicon).
   --  Since: gtk+ 2.16
   --  "icon_pos": Icon position

   function Get_Icon_Pixbuf
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position) return Gdk.Pixbuf.Gdk_Pixbuf;
   --  Retrieves the image used for the icon.
   --  Unlike the other methods of setting and getting icon data, this method
   --  will work regardless of whether the icon was set using a
   --  Gdk.Pixbuf.Gdk_Pixbuf, a Glib.G_Icon.G_Icon, a stock item, or an icon
   --  name.
   --  Since: gtk+ 2.16
   --  "icon_pos": Icon position

   function Get_Icon_Sensitive
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position) return Boolean;
   --  Returns whether the icon appears sensitive or insensitive.
   --  Since: gtk+ 2.16
   --  "icon_pos": Icon position

   procedure Set_Icon_Sensitive
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position;
       Sensitive : Boolean);
   --  Sets the sensitivity for the specified icon.
   --  Since: gtk+ 2.16
   --  "icon_pos": Icon position
   --  "sensitive": Specifies whether the icon should appear sensitive or
   --  insensitive

   function Get_Icon_Stock
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position) return UTF8_String;
   pragma Obsolescent (Get_Icon_Stock);
   --  Retrieves the stock id used for the icon, or null if there is no icon
   --  or if the icon was set by some other method (e.g., by pixbuf, icon name
   --  or gicon).
   --  Since: gtk+ 2.16
   --  Deprecated since 3.10, 1
   --  "icon_pos": Icon position

   function Get_Icon_Storage_Type
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position) return Gtk.Image.Gtk_Image_Type;
   --  Gets the type of representation being used by the icon to store image
   --  data. If the icon has no image data, the return value will be
   --  Gtk.Image.Image_Empty.
   --  Since: gtk+ 2.16
   --  "icon_pos": Icon position

   function Get_Icon_Tooltip_Markup
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position) return UTF8_String;
   --  Gets the contents of the tooltip on the icon at the specified position
   --  in Entry.
   --  Since: gtk+ 2.16
   --  "icon_pos": the icon position

   procedure Set_Icon_Tooltip_Markup
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position;
       Tooltip   : UTF8_String := "");
   --  Sets Tooltip as the contents of the tooltip for the icon at the
   --  specified position. Tooltip is assumed to be marked up with the [Pango
   --  text markup language][PangoMarkupFormat].
   --  Use null for Tooltip to remove an existing tooltip.
   --  See also Gtk.Widget.Set_Tooltip_Markup and
   --  Gtk.GEntry.Set_Icon_Tooltip_Text.
   --  Since: gtk+ 2.16
   --  "icon_pos": the icon position
   --  "tooltip": the contents of the tooltip for the icon, or null

   function Get_Icon_Tooltip_Text
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position) return UTF8_String;
   --  Gets the contents of the tooltip on the icon at the specified position
   --  in Entry.
   --  Since: gtk+ 2.16
   --  "icon_pos": the icon position

   procedure Set_Icon_Tooltip_Text
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position;
       Tooltip   : UTF8_String := "");
   --  Sets Tooltip as the contents of the tooltip for the icon at the
   --  specified position.
   --  Use null for Tooltip to remove an existing tooltip.
   --  See also Gtk.Widget.Set_Tooltip_Text and
   --  Gtk.GEntry.Set_Icon_Tooltip_Markup.
   --  Since: gtk+ 2.16
   --  "icon_pos": the icon position
   --  "tooltip": the contents of the tooltip for the icon, or null

   function Get_Inner_Border
      (The_Entry : not null access Gtk_Entry_Record)
       return Gtk.Style.Gtk_Border;
   pragma Obsolescent (Get_Inner_Border);
   --  This function returns the entry's Gtk.GEntry.Gtk_Entry:inner-border
   --  property. See Gtk.GEntry.Set_Inner_Border for more information.
   --  Since: gtk+ 2.10
   --  Deprecated since 3.4, 1

   procedure Set_Inner_Border
      (The_Entry : not null access Gtk_Entry_Record;
       Border    : Gtk.Style.Gtk_Border);
   pragma Obsolescent (Set_Inner_Border);
   --  Sets %entry's inner-border property to Border, or clears it if null is
   --  passed. The inner-border is the area around the entry's text, but inside
   --  its frame.
   --  If set, this property overrides the inner-border style property.
   --  Overriding the style-provided border is useful when you want to do
   --  in-place editing of some text in a canvas or list widget, where
   --  pixel-exact positioning of the entry is important.
   --  Since: gtk+ 2.10
   --  Deprecated since 3.4, 1
   --  "border": a Gtk.Style.Gtk_Border, or null

   function Get_Input_Hints
      (The_Entry : not null access Gtk_Entry_Record)
       return Gtk.Enums.Gtk_Input_Hints;
   --  Gets the value of the Gtk.GEntry.Gtk_Entry:input-hints property.
   --  Since: gtk+ 3.6

   procedure Set_Input_Hints
      (The_Entry : not null access Gtk_Entry_Record;
       Hints     : Gtk.Enums.Gtk_Input_Hints);
   --  Sets the Gtk.GEntry.Gtk_Entry:input-hints property, which allows input
   --  methods to fine-tune their behaviour.
   --  Since: gtk+ 3.6
   --  "hints": the hints

   function Get_Input_Purpose
      (The_Entry : not null access Gtk_Entry_Record)
       return Gtk.Enums.Gtk_Input_Purpose;
   --  Gets the value of the Gtk.GEntry.Gtk_Entry:input-purpose property.
   --  Since: gtk+ 3.6

   procedure Set_Input_Purpose
      (The_Entry : not null access Gtk_Entry_Record;
       Purpose   : Gtk.Enums.Gtk_Input_Purpose);
   --  Sets the Gtk.GEntry.Gtk_Entry:input-purpose property which can be used
   --  by on-screen keyboards and other input methods to adjust their
   --  behaviour.
   --  Since: gtk+ 3.6
   --  "purpose": the purpose

   function Get_Invisible_Char
      (The_Entry : not null access Gtk_Entry_Record) return Gunichar;
   --  Retrieves the character displayed in place of the real characters for
   --  entries with visibility set to false. See Gtk.GEntry.Set_Invisible_Char.

   procedure Set_Invisible_Char
      (The_Entry : not null access Gtk_Entry_Record;
       Char      : Gunichar);
   --  Sets the character to use in place of the actual text when
   --  Gtk.GEntry.Set_Visibility has been called to set text visibility to
   --  False. i.e. this is the character used in "password mode" to show the
   --  user how many characters have been typed. By default, GTK+ picks the
   --  best invisible char available in the current font. If you set the
   --  invisible char to 0, then the user will get no feedback at all; there
   --  will be no text on the screen as they type.
   --  "Char": a Unicode character

   function Get_Layout
      (The_Entry : not null access Gtk_Entry_Record)
       return Pango.Layout.Pango_Layout;
   --  Gets the Pango.Layout.Pango_Layout used to display the entry. The
   --  layout is useful to e.g. convert text positions to pixel positions, in
   --  combination with Gtk.GEntry.Get_Layout_Offsets. The returned layout is
   --  owned by the entry and must not be modified or freed by the caller.
   --  Keep in mind that the layout text may contain a preedit string, so
   --  Gtk.GEntry.Layout_Index_To_Text_Index and
   --  Gtk.GEntry.Text_Index_To_Layout_Index are needed to convert byte indices
   --  in the layout to byte indices in the entry contents.

   procedure Get_Layout_Offsets
      (The_Entry : not null access Gtk_Entry_Record;
       X         : out Gint;
       Y         : out Gint);
   --  Obtains the position of the Pango.Layout.Pango_Layout used to render
   --  text in the entry, in widget coordinates. Useful if you want to line up
   --  the text in an entry with some other text, e.g. when using the entry to
   --  implement editable cells in a sheet widget.
   --  Also useful to convert mouse events into coordinates inside the
   --  Pango.Layout.Pango_Layout, e.g. to take some action if some part of the
   --  entry text is clicked.
   --  Note that as the user scrolls around in the entry the offsets will
   --  change; you'll need to connect to the "notify::scroll-offset" signal to
   --  track this. Remember when using the Pango.Layout.Pango_Layout functions
   --  you need to convert to and from pixels using PANGO_PIXELS or
   --  PANGO_SCALE.
   --  Keep in mind that the layout text may contain a preedit string, so
   --  Gtk.GEntry.Layout_Index_To_Text_Index and
   --  Gtk.GEntry.Text_Index_To_Layout_Index are needed to convert byte indices
   --  in the layout to byte indices in the entry contents.
   --  "x": location to store X offset of layout, or null
   --  "y": location to store Y offset of layout, or null

   function Get_Max_Length
      (The_Entry : not null access Gtk_Entry_Record) return Gint;
   --  Retrieves the maximum allowed length of the text in Entry. See
   --  Gtk.GEntry.Set_Max_Length.
   --  This is equivalent to:
   --  |[<!-- language="C" --> GtkEntryBuffer *buffer; buffer =
   --  gtk_entry_get_buffer (entry); gtk_entry_buffer_get_max_length (buffer);
   --  ]|

   procedure Set_Max_Length
      (The_Entry : not null access Gtk_Entry_Record;
       Max       : Gint);
   --  Sets the maximum allowed length of the contents of the widget. If the
   --  current contents are longer than the given length, then they will be
   --  truncated to fit.
   --  This is equivalent to:
   --  |[<!-- language="C" --> GtkEntryBuffer *buffer; buffer =
   --  gtk_entry_get_buffer (entry); gtk_entry_buffer_set_max_length (buffer,
   --  max); ]|
   --  "max": the maximum length of the entry, or 0 for no maximum. (other
   --  than the maximum length of entries.) The value passed in will be clamped
   --  to the range 0-65536.

   function Get_Max_Width_Chars
      (The_Entry : not null access Gtk_Entry_Record) return Gint;
   --  Retrieves the desired maximum width of Entry, in characters. See
   --  Gtk.GEntry.Set_Max_Width_Chars.
   --  Since: gtk+ 3.12

   procedure Set_Max_Width_Chars
      (The_Entry : not null access Gtk_Entry_Record;
       N_Chars   : Gint);
   --  Sets the desired maximum width in characters of Entry.
   --  Since: gtk+ 3.12
   --  "n_chars": the new desired maximum width, in characters

   function Get_Overwrite_Mode
      (The_Entry : not null access Gtk_Entry_Record) return Boolean;
   --  Gets the value set by Gtk.GEntry.Set_Overwrite_Mode.
   --  Since: gtk+ 2.14

   procedure Set_Overwrite_Mode
      (The_Entry : not null access Gtk_Entry_Record;
       Overwrite : Boolean);
   --  Sets whether the text is overwritten when typing in the
   --  Gtk.GEntry.Gtk_Entry.
   --  Since: gtk+ 2.14
   --  "overwrite": new value

   function Get_Placeholder_Text
      (The_Entry : not null access Gtk_Entry_Record) return UTF8_String;
   --  Retrieves the text that will be displayed when Entry is empty and
   --  unfocused
   --  Since: gtk+ 3.2

   procedure Set_Placeholder_Text
      (The_Entry : not null access Gtk_Entry_Record;
       Text      : UTF8_String);
   --  Sets text to be displayed in Entry when it is empty and unfocused. This
   --  can be used to give a visual hint of the expected contents of the
   --  Gtk.GEntry.Gtk_Entry.
   --  Note that since the placeholder text gets removed when the entry
   --  received focus, using this feature is a bit problematic if the entry is
   --  given the initial focus in a window. Sometimes this can be worked around
   --  by delaying the initial focus setting until the first key event arrives.
   --  Since: gtk+ 3.2
   --  "text": a string to be displayed when Entry is empty an unfocused, or
   --  null

   function Get_Progress_Fraction
      (The_Entry : not null access Gtk_Entry_Record) return Gdouble;
   --  Returns the current fraction of the task that's been completed. See
   --  Gtk.GEntry.Set_Progress_Fraction.
   --  Since: gtk+ 2.16

   procedure Set_Progress_Fraction
      (The_Entry : not null access Gtk_Entry_Record;
       Fraction  : Gdouble);
   --  Causes the entry's progress indicator to "fill in" the given fraction
   --  of the bar. The fraction should be between 0.0 and 1.0, inclusive.
   --  Since: gtk+ 2.16
   --  "fraction": fraction of the task that's been completed

   function Get_Progress_Pulse_Step
      (The_Entry : not null access Gtk_Entry_Record) return Gdouble;
   --  Retrieves the pulse step set with Gtk.GEntry.Set_Progress_Pulse_Step.
   --  Since: gtk+ 2.16

   procedure Set_Progress_Pulse_Step
      (The_Entry : not null access Gtk_Entry_Record;
       Fraction  : Gdouble);
   --  Sets the fraction of total entry width to move the progress bouncing
   --  block for each call to Gtk.GEntry.Progress_Pulse.
   --  Since: gtk+ 2.16
   --  "fraction": fraction between 0.0 and 1.0

   function Get_Tabs
      (The_Entry : not null access Gtk_Entry_Record)
       return Pango.Tabs.Pango_Tab_Array;
   --  Gets the tabstops that were set on the entry using Gtk.GEntry.Set_Tabs,
   --  if any.
   --  Since: gtk+ 3.10

   procedure Set_Tabs
      (The_Entry : not null access Gtk_Entry_Record;
       Tabs      : Pango.Tabs.Pango_Tab_Array);
   --  Sets a Pango.Tabs.Pango_Tab_Array; the tabstops in the array are
   --  applied to the entry text.
   --  Since: gtk+ 3.10
   --  "tabs": a Pango.Tabs.Pango_Tab_Array

   function Get_Text
      (The_Entry : not null access Gtk_Entry_Record) return UTF8_String;
   --  Retrieves the contents of the entry widget. See also
   --  Gtk.Editable.Get_Chars.
   --  This is equivalent to:
   --  |[<!-- language="C" --> GtkEntryBuffer *buffer; buffer =
   --  gtk_entry_get_buffer (entry); gtk_entry_buffer_get_text (buffer); ]|

   procedure Set_Text
      (The_Entry : not null access Gtk_Entry_Record;
       Text      : UTF8_String);
   --  Sets the text in the widget to the given value, replacing the current
   --  contents.
   --  See Gtk.Entry_Buffer.Set_Text.
   --  "text": the new text

   procedure Get_Text_Area
      (The_Entry : not null access Gtk_Entry_Record;
       Text_Area : out Gdk.Rectangle.Gdk_Rectangle);
   --  Gets the area where the entry's text is drawn. This function is useful
   --  when drawing something to the entry in a draw callback.
   --  If the entry is not realized, Text_Area is filled with zeros.
   --  See also Gtk.GEntry.Get_Icon_Area.
   --  Since: gtk+ 3.0
   --  "text_area": Return location for the text area.

   function Get_Text_Length
      (The_Entry : not null access Gtk_Entry_Record) return Guint16;
   --  Retrieves the current length of the text in Entry.
   --  This is equivalent to:
   --  |[<!-- language="C" --> GtkEntryBuffer *buffer; buffer =
   --  gtk_entry_get_buffer (entry); gtk_entry_buffer_get_length (buffer); ]|
   --  Since: gtk+ 2.14

   function Get_Visibility
      (The_Entry : not null access Gtk_Entry_Record) return Boolean;
   --  Retrieves whether the text in Entry is visible. See
   --  Gtk.GEntry.Set_Visibility.

   procedure Set_Visibility
      (The_Entry : not null access Gtk_Entry_Record;
       Visible   : Boolean);
   --  Sets whether the contents of the entry are visible or not. When
   --  visibility is set to False, characters are displayed as the invisible
   --  char, and will also appear that way when the text in the entry widget is
   --  copied elsewhere.
   --  By default, GTK+ picks the best invisible character available in the
   --  current font, but it can be changed with Gtk.GEntry.Set_Invisible_Char.
   --  Note that you probably want to set Gtk.GEntry.Gtk_Entry:input-purpose
   --  to Gtk.Enums.Input_Purpose_Password or Gtk.Enums.Input_Purpose_Pin to
   --  inform input methods about the purpose of this entry, in addition to
   --  setting visibility to False.
   --  "visible": True if the contents of the entry are displayed as plaintext

   function Get_Width_Chars
      (The_Entry : not null access Gtk_Entry_Record) return Gint;
   --  Gets the value set by Gtk.GEntry.Set_Width_Chars.

   procedure Set_Width_Chars
      (The_Entry : not null access Gtk_Entry_Record;
       Width     : Gint);
   --  Changes the size request of the entry to be about the right size for
   --  N_Chars characters. Note that it changes the size request, the size can
   --  still be affected by how you pack the widget into containers. If N_Chars
   --  is -1, the size reverts to the default entry size.
   --  "Width": width in chars

   function Im_Context_Filter_Keypress
      (The_Entry : not null access Gtk_Entry_Record;
       Event     : Gdk.Event.Gdk_Event_Key) return Boolean;
   --  Allow the Gtk.GEntry.Gtk_Entry input method to internally handle key
   --  press and release events. If this function returns True, then no further
   --  processing should be done for this key event. See
   --  Gtk.IM_Context.Filter_Keypress.
   --  Note that you are expected to call this function from your handler when
   --  overriding key event handling. This is needed in the case when you need
   --  to insert your own key handling between the input method and the default
   --  key event handling of the Gtk.GEntry.Gtk_Entry. See
   --  Gtk.Text_View.Reset_Im_Context for an example of use.
   --  Since: gtk+ 2.22
   --  "event": the key event

   function Layout_Index_To_Text_Index
      (The_Entry    : not null access Gtk_Entry_Record;
       Layout_Index : Gint) return Gint;
   --  Converts from a position in the entry contents (returned by
   --  Gtk.GEntry.Get_Text) to a position in the entry's
   --  Pango.Layout.Pango_Layout (returned by Gtk.GEntry.Get_Layout, with text
   --  retrieved via Pango.Layout.Get_Text).
   --  "layout_index": byte index into the entry layout text

   procedure Progress_Pulse (The_Entry : not null access Gtk_Entry_Record);
   --  Indicates that some progress is made, but you don't know how much.
   --  Causes the entry's progress indicator to enter "activity mode," where a
   --  block bounces back and forth. Each call to Gtk.GEntry.Progress_Pulse
   --  causes the block to move by a little bit (the amount of movement per
   --  pulse is determined by Gtk.GEntry.Set_Progress_Pulse_Step).
   --  Since: gtk+ 2.16

   procedure Reset_Im_Context (The_Entry : not null access Gtk_Entry_Record);
   --  Reset the input method context of the entry if needed.
   --  This can be necessary in the case where modifying the buffer would
   --  confuse on-going input method behavior.
   --  Since: gtk+ 2.22

   procedure Set_Icon_Drag_Source
      (The_Entry   : not null access Gtk_Entry_Record;
       Icon_Pos    : Gtk_Entry_Icon_Position;
       Target_List : Gtk.Target_List.Gtk_Target_List;
       Actions     : Gdk.Drag_Contexts.Gdk_Drag_Action);
   --  Sets up the icon at the given position so that GTK+ will start a drag
   --  operation when the user clicks and drags the icon.
   --  To handle the drag operation, you need to connect to the usual
   --  Gtk.Widget.Gtk_Widget::drag-data-get (or possibly
   --  Gtk.Widget.Gtk_Widget::drag-data-delete) signal, and use
   --  Gtk.GEntry.Get_Current_Icon_Drag_Source in your signal handler to find
   --  out if the drag was started from an icon.
   --  By default, GTK+ uses the icon as the drag icon. You can use the
   --  Gtk.Widget.Gtk_Widget::drag-begin signal to set a different icon. Note
   --  that you have to use g_signal_connect_after to ensure that your signal
   --  handler gets executed after the default handler.
   --  Since: gtk+ 2.16
   --  "icon_pos": icon position
   --  "target_list": the targets (data formats) in which the data can be
   --  provided
   --  "actions": a bitmask of the allowed drag actions

   procedure Set_Icon_From_Gicon
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position;
       Icon      : Glib.G_Icon.G_Icon);
   --  Sets the icon shown in the entry at the specified position from the
   --  current icon theme. If the icon isn't known, a "broken image" icon will
   --  be displayed instead.
   --  If Icon is null, no icon will be shown in the specified position.
   --  Since: gtk+ 2.16
   --  "icon_pos": The position at which to set the icon
   --  "icon": The icon to set, or null

   procedure Set_Icon_From_Icon_Name
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position;
       Icon_Name : UTF8_String := "");
   --  Sets the icon shown in the entry at the specified position from the
   --  current icon theme.
   --  If the icon name isn't known, a "broken image" icon will be displayed
   --  instead.
   --  If Icon_Name is null, no icon will be shown in the specified position.
   --  Since: gtk+ 2.16
   --  "icon_pos": The position at which to set the icon
   --  "icon_name": An icon name, or null

   procedure Set_Icon_From_Pixbuf
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position;
       Pixbuf    : access Gdk.Pixbuf.Gdk_Pixbuf_Record'Class);
   --  Sets the icon shown in the specified position using a pixbuf.
   --  If Pixbuf is null, no icon will be shown in the specified position.
   --  Since: gtk+ 2.16
   --  "icon_pos": Icon position
   --  "pixbuf": A Gdk.Pixbuf.Gdk_Pixbuf, or null

   procedure Set_Icon_From_Stock
      (The_Entry : not null access Gtk_Entry_Record;
       Icon_Pos  : Gtk_Entry_Icon_Position;
       Stock_Id  : UTF8_String := "");
   pragma Obsolescent (Set_Icon_From_Stock);
   --  Sets the icon shown in the entry at the specified position from a stock
   --  image.
   --  If Stock_Id is null, no icon will be shown in the specified position.
   --  Since: gtk+ 2.16
   --  Deprecated since 3.10, 1
   --  "icon_pos": Icon position
   --  "stock_id": The name of the stock item, or null

   function Text_Index_To_Layout_Index
      (The_Entry  : not null access Gtk_Entry_Record;
       Text_Index : Gint) return Gint;
   --  Converts from a position in the entry's Pango.Layout.Pango_Layout
   --  (returned by Gtk.GEntry.Get_Layout) to a position in the entry contents
   --  (returned by Gtk.GEntry.Get_Text).
   --  "text_index": byte index into the entry contents

   procedure Unset_Invisible_Char
      (The_Entry : not null access Gtk_Entry_Record);
   --  Unsets the invisible char previously set with
   --  Gtk.GEntry.Set_Invisible_Char. So that the default invisible char is
   --  used again.
   --  Since: gtk+ 2.16

   ----------------------
   -- GtkAda additions --
   ----------------------

   subtype Gtk_GEntry is Gtk_Entry;

   procedure Insert_Text
     (Editable : access Gtk_Entry_Record;
      New_Text : UTF8_String;
      Position : in out Gint);
   --  Convenience subprogram, identical to Insert_Text above without
   --  the requirement to supply the New_Text_Length argument.

   ---------------------------------------------
   -- Inherited subprograms (from interfaces) --
   ---------------------------------------------
   --  Methods inherited from the Buildable interface are not duplicated here
   --  since they are meant to be used by tools, mostly. If you need to call
   --  them, use an explicit cast through the "-" operator below.

   procedure Editing_Done (Cell_Editable : not null access Gtk_Entry_Record);

   procedure Remove_Widget
      (Cell_Editable : not null access Gtk_Entry_Record);

   procedure Start_Editing
      (Cell_Editable : not null access Gtk_Entry_Record;
       Event         : Gdk.Event.Gdk_Event);

   procedure Copy_Clipboard (Editable : not null access Gtk_Entry_Record);

   procedure Cut_Clipboard (Editable : not null access Gtk_Entry_Record);

   procedure Delete_Selection (Editable : not null access Gtk_Entry_Record);

   procedure Delete_Text
      (Editable  : not null access Gtk_Entry_Record;
       Start_Pos : Gint;
       End_Pos   : Gint := -1);

   function Get_Chars
      (Editable  : not null access Gtk_Entry_Record;
       Start_Pos : Gint;
       End_Pos   : Gint := -1) return UTF8_String;

   function Get_Editable
      (Editable : not null access Gtk_Entry_Record) return Boolean;

   procedure Set_Editable
      (Editable    : not null access Gtk_Entry_Record;
       Is_Editable : Boolean);

   function Get_Position
      (Editable : not null access Gtk_Entry_Record) return Gint;

   procedure Set_Position
      (Editable : not null access Gtk_Entry_Record;
       Position : Gint);

   procedure Get_Selection_Bounds
      (Editable      : not null access Gtk_Entry_Record;
       Start_Pos     : out Gint;
       End_Pos       : out Gint;
       Has_Selection : out Boolean);

   procedure Insert_Text
      (Editable        : not null access Gtk_Entry_Record;
       New_Text        : UTF8_String;
       New_Text_Length : Gint;
       Position        : in out Gint);

   procedure Paste_Clipboard (Editable : not null access Gtk_Entry_Record);

   procedure Select_Region
      (Editable  : not null access Gtk_Entry_Record;
       Start_Pos : Gint;
       End_Pos   : Gint := -1);

   ----------------
   -- Properties --
   ----------------
   --  The following properties are defined for this widget. See
   --  Glib.Properties for more information on properties)

   Activates_Default_Property : constant Glib.Properties.Property_Boolean;

   Attributes_Property : constant Glib.Properties.Property_Object;
   --  Type: Pango.Attributes.Pango_Attr_List
   --  A list of Pango attributes to apply to the text of the entry.
   --
   --  This is mainly useful to change the size or weight of the text.

   Buffer_Property : constant Glib.Properties.Property_Object;
   --  Type: Gtk.Entry_Buffer.Gtk_Entry_Buffer

   Caps_Lock_Warning_Property : constant Glib.Properties.Property_Boolean;
   --  Whether password entries will show a warning when Caps Lock is on.
   --
   --  Note that the warning is shown using a secondary icon, and thus does
   --  not work if you are using the secondary icon position for some other
   --  purpose.

   Completion_Property : constant Glib.Properties.Property_Object;
   --  Type: Gtk.Entry_Completion.Gtk_Entry_Completion
   --  The auxiliary completion object to use with the entry.

   Cursor_Position_Property : constant Glib.Properties.Property_Int;

   Editable_Property : constant Glib.Properties.Property_Boolean;

   Has_Frame_Property : constant Glib.Properties.Property_Boolean;

   Im_Module_Property : constant Glib.Properties.Property_String;
   --  Which IM (input method) module should be used for this entry. See
   --  Gtk.IM_Context.Gtk_IM_Context.
   --
   --  Setting this to a non-null value overrides the system-wide IM module
   --  setting. See the GtkSettings Gtk.Settings.Gtk_Settings:gtk-im-module
   --  property.

   Inner_Border_Property : constant Glib.Properties.Property_Boxed;
   --  Type: Gtk.Style.Gtk_Border
   --  Sets the text area's border between the text and the frame.

   Input_Hints_Property : constant Gtk.Enums.Property_Gtk_Input_Hints;
   --  Additional hints (beyond Gtk.GEntry.Gtk_Entry:input-purpose) that allow
   --  input methods to fine-tune their behaviour.

   Input_Purpose_Property : constant Gtk.Enums.Property_Gtk_Input_Purpose;
   --  The purpose of this text field.
   --
   --  This property can be used by on-screen keyboards and other input
   --  methods to adjust their behaviour.
   --
   --  Note that setting the purpose to Gtk.Enums.Input_Purpose_Password or
   --  Gtk.Enums.Input_Purpose_Pin is independent from setting
   --  Gtk.GEntry.Gtk_Entry:visibility.

   Invisible_Char_Property : constant Glib.Properties.Property_Uint;
   --  The invisible character is used when masking entry contents (in
   --  \"password mode\")"). When it is not explicitly set with the
   --  Gtk.GEntry.Gtk_Entry:invisible-char property, GTK+ determines the
   --  character to use from a list of possible candidates, depending on
   --  availability in the current font.
   --
   --  This style property allows the theme to prepend a character to the list
   --  of candidates.

   Invisible_Char_Set_Property : constant Glib.Properties.Property_Boolean;
   --  Whether the invisible char has been set for the Gtk.GEntry.Gtk_Entry.

   Max_Length_Property : constant Glib.Properties.Property_Int;

   Max_Width_Chars_Property : constant Glib.Properties.Property_Int;
   --  The desired maximum width of the entry, in characters. If this property
   --  is set to -1, the width will be calculated automatically.

   Overwrite_Mode_Property : constant Glib.Properties.Property_Boolean;
   --  If text is overwritten when typing in the Gtk.GEntry.Gtk_Entry.

   Placeholder_Text_Property : constant Glib.Properties.Property_String;
   --  The text that will be displayed in the Gtk.GEntry.Gtk_Entry when it is
   --  empty and unfocused.

   Populate_All_Property : constant Glib.Properties.Property_Boolean;
   --  If :populate-all is True, the Gtk.GEntry.Gtk_Entry::populate-popup
   --  signal is also emitted for touch popups.

   Primary_Icon_Activatable_Property : constant Glib.Properties.Property_Boolean;
   --  Whether the primary icon is activatable.
   --
   --  GTK+ emits the Gtk.GEntry.Gtk_Entry::icon-press and
   --  Gtk.GEntry.Gtk_Entry::icon-release signals only on sensitive,
   --  activatable icons.
   --
   --  Sensitive, but non-activatable icons can be used for purely
   --  informational purposes.

   Primary_Icon_Gicon_Property : constant Glib.Properties.Property_Boxed;
   --  Type: Glib.G_Icon.G_Icon
   --  The Glib.G_Icon.G_Icon to use for the primary icon for the entry.

   Primary_Icon_Name_Property : constant Glib.Properties.Property_String;
   --  The icon name to use for the primary icon for the entry.

   Primary_Icon_Pixbuf_Property : constant Glib.Properties.Property_Object;
   --  Type: Gdk.Pixbuf.Gdk_Pixbuf
   --  A pixbuf to use as the primary icon for the entry.

   Primary_Icon_Sensitive_Property : constant Glib.Properties.Property_Boolean;
   --  Whether the primary icon is sensitive.
   --
   --  An insensitive icon appears grayed out. GTK+ does not emit the
   --  Gtk.GEntry.Gtk_Entry::icon-press and Gtk.GEntry.Gtk_Entry::icon-release
   --  signals and does not allow DND from insensitive icons.
   --
   --  An icon should be set insensitive if the action that would trigger when
   --  clicked is currently not available.

   Primary_Icon_Stock_Property : constant Glib.Properties.Property_String;
   --  The stock id to use for the primary icon for the entry.

   Primary_Icon_Storage_Type_Property : constant Gtk.Image.Property_Gtk_Image_Type;
   --  Type: Gtk.Image.Gtk_Image_Type
   --  The representation which is used for the primary icon of the entry.

   Primary_Icon_Tooltip_Markup_Property : constant Glib.Properties.Property_String;
   --  The contents of the tooltip on the primary icon, which is marked up
   --  with the [Pango text markup language][PangoMarkupFormat].
   --
   --  Also see Gtk.GEntry.Set_Icon_Tooltip_Markup.

   Primary_Icon_Tooltip_Text_Property : constant Glib.Properties.Property_String;
   --  The contents of the tooltip on the primary icon.
   --
   --  Also see Gtk.GEntry.Set_Icon_Tooltip_Text.

   Progress_Fraction_Property : constant Glib.Properties.Property_Double;
   --  Type: Gdouble
   --  The current fraction of the task that's been completed.

   Progress_Pulse_Step_Property : constant Glib.Properties.Property_Double;
   --  Type: Gdouble
   --  The fraction of total entry width to move the progress bouncing block
   --  for each call to Gtk.GEntry.Progress_Pulse.

   Scroll_Offset_Property : constant Glib.Properties.Property_Int;

   Secondary_Icon_Activatable_Property : constant Glib.Properties.Property_Boolean;
   --  Whether the secondary icon is activatable.
   --
   --  GTK+ emits the Gtk.GEntry.Gtk_Entry::icon-press and
   --  Gtk.GEntry.Gtk_Entry::icon-release signals only on sensitive,
   --  activatable icons.
   --
   --  Sensitive, but non-activatable icons can be used for purely
   --  informational purposes.

   Secondary_Icon_Gicon_Property : constant Glib.Properties.Property_Boxed;
   --  Type: Glib.G_Icon.G_Icon
   --  The Glib.G_Icon.G_Icon to use for the secondary icon for the entry.

   Secondary_Icon_Name_Property : constant Glib.Properties.Property_String;
   --  The icon name to use for the secondary icon for the entry.

   Secondary_Icon_Pixbuf_Property : constant Glib.Properties.Property_Object;
   --  Type: Gdk.Pixbuf.Gdk_Pixbuf
   --  An pixbuf to use as the secondary icon for the entry.

   Secondary_Icon_Sensitive_Property : constant Glib.Properties.Property_Boolean;
   --  Whether the secondary icon is sensitive.
   --
   --  An insensitive icon appears grayed out. GTK+ does not emit the
   --  Gtk.GEntry.Gtk_Entry::icon-press and Gtk.GEntry.Gtk_Entry::icon-release
   --  signals and does not allow DND from insensitive icons.
   --
   --  An icon should be set insensitive if the action that would trigger when
   --  clicked is currently not available.

   Secondary_Icon_Stock_Property : constant Glib.Properties.Property_String;
   --  The stock id to use for the secondary icon for the entry.

   Secondary_Icon_Storage_Type_Property : constant Gtk.Image.Property_Gtk_Image_Type;
   --  Type: Gtk.Image.Gtk_Image_Type
   --  The representation which is used for the secondary icon of the entry.

   Secondary_Icon_Tooltip_Markup_Property : constant Glib.Properties.Property_String;
   --  The contents of the tooltip on the secondary icon, which is marked up
   --  with the [Pango text markup language][PangoMarkupFormat].
   --
   --  Also see Gtk.GEntry.Set_Icon_Tooltip_Markup.

   Secondary_Icon_Tooltip_Text_Property : constant Glib.Properties.Property_String;
   --  The contents of the tooltip on the secondary icon.
   --
   --  Also see Gtk.GEntry.Set_Icon_Tooltip_Text.

   Selection_Bound_Property : constant Glib.Properties.Property_Int;

   Shadow_Type_Property : constant Gtk.Enums.Property_Gtk_Shadow_Type;
   --  Which kind of shadow to draw around the entry when
   --  Gtk.GEntry.Gtk_Entry:has-frame is set to True.

   Tabs_Property : constant Glib.Properties.Property_Boxed;
   --  Type: Pango.Tab_Array

   Text_Property : constant Glib.Properties.Property_String;

   Text_Length_Property : constant Glib.Properties.Property_Uint;
   --  The length of the text in the Gtk.GEntry.Gtk_Entry.

   Truncate_Multiline_Property : constant Glib.Properties.Property_Boolean;
   --  When True, pasted multi-line text is truncated to the first line.

   Visibility_Property : constant Glib.Properties.Property_Boolean;

   Width_Chars_Property : constant Glib.Properties.Property_Int;

   Xalign_Property : constant Glib.Properties.Property_Float;
   --  The horizontal alignment, from 0 (left) to 1 (right). Reversed for RTL
   --  layouts.

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

   type Cb_Gtk_Entry_Void is not null access procedure (Self : access Gtk_Entry_Record'Class);

   type Cb_GObject_Void is not null access procedure
     (Self : access Glib.Object.GObject_Record'Class);

   Signal_Activate : constant Glib.Signal_Name := "activate";
   procedure On_Activate
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_Void;
       After : Boolean := False);
   procedure On_Activate
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  The ::activate signal is emitted when the user hits the Enter key.
   --
   --  While this signal is used as a [keybinding signal][GtkBindingSignal],
   --  it is also commonly used by applications to intercept activation of
   --  entries.
   --
   --  The default bindings for this signal are all forms of the Enter key.

   Signal_Backspace : constant Glib.Signal_Name := "backspace";
   procedure On_Backspace
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_Void;
       After : Boolean := False);
   procedure On_Backspace
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  The ::backspace signal is a [keybinding signal][GtkBindingSignal] which
   --  gets emitted when the user asks for it.
   --
   --  The default bindings for this signal are Backspace and Shift-Backspace.

   Signal_Copy_Clipboard : constant Glib.Signal_Name := "copy-clipboard";
   procedure On_Copy_Clipboard
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_Void;
       After : Boolean := False);
   procedure On_Copy_Clipboard
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  The ::copy-clipboard signal is a [keybinding signal][GtkBindingSignal]
   --  which gets emitted to copy the selection to the clipboard.
   --
   --  The default bindings for this signal are Ctrl-c and Ctrl-Insert.

   Signal_Cut_Clipboard : constant Glib.Signal_Name := "cut-clipboard";
   procedure On_Cut_Clipboard
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_Void;
       After : Boolean := False);
   procedure On_Cut_Clipboard
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  The ::cut-clipboard signal is a [keybinding signal][GtkBindingSignal]
   --  which gets emitted to cut the selection to the clipboard.
   --
   --  The default bindings for this signal are Ctrl-x and Shift-Delete.

   type Cb_Gtk_Entry_Gtk_Delete_Type_Gint_Void is not null access procedure
     (Self     : access Gtk_Entry_Record'Class;
      The_Type : Gtk.Enums.Gtk_Delete_Type;
      Count    : Gint);

   type Cb_GObject_Gtk_Delete_Type_Gint_Void is not null access procedure
     (Self     : access Glib.Object.GObject_Record'Class;
      The_Type : Gtk.Enums.Gtk_Delete_Type;
      Count    : Gint);

   Signal_Delete_From_Cursor : constant Glib.Signal_Name := "delete-from-cursor";
   procedure On_Delete_From_Cursor
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_Gtk_Delete_Type_Gint_Void;
       After : Boolean := False);
   procedure On_Delete_From_Cursor
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_Gtk_Delete_Type_Gint_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  The ::delete-from-cursor signal is a [keybinding
   --  signal][GtkBindingSignal] which gets emitted when the user initiates a
   --  text deletion.
   --
   --  If the Type is Gtk.Enums.Delete_Chars, GTK+ deletes the selection if
   --  there is one, otherwise it deletes the requested number of characters.
   --
   --  The default bindings for this signal are Delete for deleting a
   --  character and Ctrl-Delete for deleting a word.
   -- 
   --  Callback parameters:
   --    --  "type": the granularity of the deletion, as a Gtk.Enums.Gtk_Delete_Type
   --    --  "count": the number of Type units to delete

   type Cb_Gtk_Entry_Gtk_Entry_Icon_Position_Gdk_Event_Button_Void is not null access procedure
     (Self     : access Gtk_Entry_Record'Class;
      Icon_Pos : Gtk_Entry_Icon_Position;
      Event    : Gdk.Event.Gdk_Event_Button);

   type Cb_GObject_Gtk_Entry_Icon_Position_Gdk_Event_Button_Void is not null access procedure
     (Self     : access Glib.Object.GObject_Record'Class;
      Icon_Pos : Gtk_Entry_Icon_Position;
      Event    : Gdk.Event.Gdk_Event_Button);

   Signal_Icon_Press : constant Glib.Signal_Name := "icon-press";
   procedure On_Icon_Press
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_Gtk_Entry_Icon_Position_Gdk_Event_Button_Void;
       After : Boolean := False);
   procedure On_Icon_Press
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_Gtk_Entry_Icon_Position_Gdk_Event_Button_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  The ::icon-press signal is emitted when an activatable icon is clicked.
   -- 
   --  Callback parameters:
   --    --  "icon_pos": The position of the clicked icon
   --    --  "event": the button press event

   Signal_Icon_Release : constant Glib.Signal_Name := "icon-release";
   procedure On_Icon_Release
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_Gtk_Entry_Icon_Position_Gdk_Event_Button_Void;
       After : Boolean := False);
   procedure On_Icon_Release
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_Gtk_Entry_Icon_Position_Gdk_Event_Button_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  The ::icon-release signal is emitted on the button release from a mouse
   --  click over an activatable icon.
   -- 
   --  Callback parameters:
   --    --  "icon_pos": The position of the clicked icon
   --    --  "event": the button release event

   type Cb_Gtk_Entry_UTF8_String_Void is not null access procedure
     (Self   : access Gtk_Entry_Record'Class;
      String : UTF8_String);

   type Cb_GObject_UTF8_String_Void is not null access procedure
     (Self   : access Glib.Object.GObject_Record'Class;
      String : UTF8_String);

   Signal_Insert_At_Cursor : constant Glib.Signal_Name := "insert-at-cursor";
   procedure On_Insert_At_Cursor
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_UTF8_String_Void;
       After : Boolean := False);
   procedure On_Insert_At_Cursor
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_UTF8_String_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  The ::insert-at-cursor signal is a [keybinding
   --  signal][GtkBindingSignal] which gets emitted when the user initiates the
   --  insertion of a fixed string at the cursor.
   --
   --  This signal has no default bindings.

   type Cb_Gtk_Entry_Gtk_Movement_Step_Gint_Boolean_Void is not null access procedure
     (Self             : access Gtk_Entry_Record'Class;
      Step             : Gtk.Enums.Gtk_Movement_Step;
      Count            : Gint;
      Extend_Selection : Boolean);

   type Cb_GObject_Gtk_Movement_Step_Gint_Boolean_Void is not null access procedure
     (Self             : access Glib.Object.GObject_Record'Class;
      Step             : Gtk.Enums.Gtk_Movement_Step;
      Count            : Gint;
      Extend_Selection : Boolean);

   Signal_Move_Cursor : constant Glib.Signal_Name := "move-cursor";
   procedure On_Move_Cursor
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_Gtk_Movement_Step_Gint_Boolean_Void;
       After : Boolean := False);
   procedure On_Move_Cursor
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_Gtk_Movement_Step_Gint_Boolean_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  The ::move-cursor signal is a [keybinding signal][GtkBindingSignal]
   --  which gets emitted when the user initiates a cursor movement. If the
   --  cursor is not visible in Entry, this signal causes the viewport to be
   --  moved instead.
   --
   --  Applications should not connect to it, but may emit it with
   --  g_signal_emit_by_name if they need to control the cursor
   --  programmatically.
   --
   --  The default bindings for this signal come in two variants, the variant
   --  with the Shift modifier extends the selection, the variant without the
   --  Shift modifer does not. There are too many key combinations to list them
   --  all here. - Arrow keys move by individual characters/lines - Ctrl-arrow
   --  key combinations move by words/paragraphs - Home/End keys move to the
   --  ends of the buffer
   -- 
   --  Callback parameters:
   --    --  "step": the granularity of the move, as a Gtk.Enums.Gtk_Movement_Step
   --    --  "count": the number of Step units to move
   --    --  "extend_selection": True if the move should extend the selection

   Signal_Paste_Clipboard : constant Glib.Signal_Name := "paste-clipboard";
   procedure On_Paste_Clipboard
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_Void;
       After : Boolean := False);
   procedure On_Paste_Clipboard
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  The ::paste-clipboard signal is a [keybinding signal][GtkBindingSignal]
   --  which gets emitted to paste the contents of the clipboard into the text
   --  view.
   --
   --  The default bindings for this signal are Ctrl-v and Shift-Insert.

   type Cb_Gtk_Entry_Gtk_Widget_Void is not null access procedure
     (Self  : access Gtk_Entry_Record'Class;
      Popup : not null access Gtk.Widget.Gtk_Widget_Record'Class);

   type Cb_GObject_Gtk_Widget_Void is not null access procedure
     (Self  : access Glib.Object.GObject_Record'Class;
      Popup : not null access Gtk.Widget.Gtk_Widget_Record'Class);

   Signal_Populate_Popup : constant Glib.Signal_Name := "populate-popup";
   procedure On_Populate_Popup
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_Gtk_Widget_Void;
       After : Boolean := False);
   procedure On_Populate_Popup
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_Gtk_Widget_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  The ::populate-popup signal gets emitted before showing the context
   --  menu of the entry.
   --
   --  If you need to add items to the context menu, connect to this signal
   --  and append your items to the Widget, which will be a Gtk.Menu.Gtk_Menu
   --  in this case.
   --
   --  If Gtk.GEntry.Gtk_Entry:populate-all is True, this signal will also be
   --  emitted to populate touch popups. In this case, Widget will be a
   --  different container, e.g. a Gtk.Toolbar.Gtk_Toolbar. The signal handler
   --  should not make assumptions about the type of Widget.

   Signal_Preedit_Changed : constant Glib.Signal_Name := "preedit-changed";
   procedure On_Preedit_Changed
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_UTF8_String_Void;
       After : Boolean := False);
   procedure On_Preedit_Changed
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_UTF8_String_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  If an input method is used, the typed text will not immediately be
   --  committed to the buffer. So if you are interested in the text, connect
   --  to this signal.

   Signal_Toggle_Overwrite : constant Glib.Signal_Name := "toggle-overwrite";
   procedure On_Toggle_Overwrite
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_Gtk_Entry_Void;
       After : Boolean := False);
   procedure On_Toggle_Overwrite
      (Self  : not null access Gtk_Entry_Record;
       Call  : Cb_GObject_Void;
       Slot  : not null access Glib.Object.GObject_Record'Class;
       After : Boolean := False);
   --  The ::toggle-overwrite signal is a [keybinding
   --  signal][GtkBindingSignal] which gets emitted to toggle the overwrite
   --  mode of the entry.
   --
   --  The default bindings for this signal is Insert.

   ----------------
   -- Interfaces --
   ----------------
   --  This class implements several interfaces. See Glib.Types
   --
   --  - "Buildable"
   --
   --  - "CellEditable"
   --
   --  - "Editable"

   package Implements_Gtk_Buildable is new Glib.Types.Implements
     (Gtk.Buildable.Gtk_Buildable, Gtk_Entry_Record, Gtk_Entry);
   function "+"
     (Widget : access Gtk_Entry_Record'Class)
   return Gtk.Buildable.Gtk_Buildable
   renames Implements_Gtk_Buildable.To_Interface;
   function "-"
     (Interf : Gtk.Buildable.Gtk_Buildable)
   return Gtk_Entry
   renames Implements_Gtk_Buildable.To_Object;

   package Implements_Gtk_Cell_Editable is new Glib.Types.Implements
     (Gtk.Cell_Editable.Gtk_Cell_Editable, Gtk_Entry_Record, Gtk_Entry);
   function "+"
     (Widget : access Gtk_Entry_Record'Class)
   return Gtk.Cell_Editable.Gtk_Cell_Editable
   renames Implements_Gtk_Cell_Editable.To_Interface;
   function "-"
     (Interf : Gtk.Cell_Editable.Gtk_Cell_Editable)
   return Gtk_Entry
   renames Implements_Gtk_Cell_Editable.To_Object;

   package Implements_Gtk_Editable is new Glib.Types.Implements
     (Gtk.Editable.Gtk_Editable, Gtk_Entry_Record, Gtk_Entry);
   function "+"
     (Widget : access Gtk_Entry_Record'Class)
   return Gtk.Editable.Gtk_Editable
   renames Implements_Gtk_Editable.To_Interface;
   function "-"
     (Interf : Gtk.Editable.Gtk_Editable)
   return Gtk_Entry
   renames Implements_Gtk_Editable.To_Object;

private
   Xalign_Property : constant Glib.Properties.Property_Float :=
     Glib.Properties.Build ("xalign");
   Width_Chars_Property : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("width-chars");
   Visibility_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("visibility");
   Truncate_Multiline_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("truncate-multiline");
   Text_Length_Property : constant Glib.Properties.Property_Uint :=
     Glib.Properties.Build ("text-length");
   Text_Property : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("text");
   Tabs_Property : constant Glib.Properties.Property_Boxed :=
     Glib.Properties.Build ("tabs");
   Shadow_Type_Property : constant Gtk.Enums.Property_Gtk_Shadow_Type :=
     Gtk.Enums.Build ("shadow-type");
   Selection_Bound_Property : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("selection-bound");
   Secondary_Icon_Tooltip_Text_Property : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("secondary-icon-tooltip-text");
   Secondary_Icon_Tooltip_Markup_Property : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("secondary-icon-tooltip-markup");
   Secondary_Icon_Storage_Type_Property : constant Gtk.Image.Property_Gtk_Image_Type :=
     Gtk.Image.Build ("secondary-icon-storage-type");
   Secondary_Icon_Stock_Property : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("secondary-icon-stock");
   Secondary_Icon_Sensitive_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("secondary-icon-sensitive");
   Secondary_Icon_Pixbuf_Property : constant Glib.Properties.Property_Object :=
     Glib.Properties.Build ("secondary-icon-pixbuf");
   Secondary_Icon_Name_Property : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("secondary-icon-name");
   Secondary_Icon_Gicon_Property : constant Glib.Properties.Property_Boxed :=
     Glib.Properties.Build ("secondary-icon-gicon");
   Secondary_Icon_Activatable_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("secondary-icon-activatable");
   Scroll_Offset_Property : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("scroll-offset");
   Progress_Pulse_Step_Property : constant Glib.Properties.Property_Double :=
     Glib.Properties.Build ("progress-pulse-step");
   Progress_Fraction_Property : constant Glib.Properties.Property_Double :=
     Glib.Properties.Build ("progress-fraction");
   Primary_Icon_Tooltip_Text_Property : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("primary-icon-tooltip-text");
   Primary_Icon_Tooltip_Markup_Property : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("primary-icon-tooltip-markup");
   Primary_Icon_Storage_Type_Property : constant Gtk.Image.Property_Gtk_Image_Type :=
     Gtk.Image.Build ("primary-icon-storage-type");
   Primary_Icon_Stock_Property : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("primary-icon-stock");
   Primary_Icon_Sensitive_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("primary-icon-sensitive");
   Primary_Icon_Pixbuf_Property : constant Glib.Properties.Property_Object :=
     Glib.Properties.Build ("primary-icon-pixbuf");
   Primary_Icon_Name_Property : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("primary-icon-name");
   Primary_Icon_Gicon_Property : constant Glib.Properties.Property_Boxed :=
     Glib.Properties.Build ("primary-icon-gicon");
   Primary_Icon_Activatable_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("primary-icon-activatable");
   Populate_All_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("populate-all");
   Placeholder_Text_Property : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("placeholder-text");
   Overwrite_Mode_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("overwrite-mode");
   Max_Width_Chars_Property : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("max-width-chars");
   Max_Length_Property : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("max-length");
   Invisible_Char_Set_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("invisible-char-set");
   Invisible_Char_Property : constant Glib.Properties.Property_Uint :=
     Glib.Properties.Build ("invisible-char");
   Input_Purpose_Property : constant Gtk.Enums.Property_Gtk_Input_Purpose :=
     Gtk.Enums.Build ("input-purpose");
   Input_Hints_Property : constant Gtk.Enums.Property_Gtk_Input_Hints :=
     Gtk.Enums.Build ("input-hints");
   Inner_Border_Property : constant Glib.Properties.Property_Boxed :=
     Glib.Properties.Build ("inner-border");
   Im_Module_Property : constant Glib.Properties.Property_String :=
     Glib.Properties.Build ("im-module");
   Has_Frame_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("has-frame");
   Editable_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("editable");
   Cursor_Position_Property : constant Glib.Properties.Property_Int :=
     Glib.Properties.Build ("cursor-position");
   Completion_Property : constant Glib.Properties.Property_Object :=
     Glib.Properties.Build ("completion");
   Caps_Lock_Warning_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("caps-lock-warning");
   Buffer_Property : constant Glib.Properties.Property_Object :=
     Glib.Properties.Build ("buffer");
   Attributes_Property : constant Glib.Properties.Property_Object :=
     Glib.Properties.Build ("attributes");
   Activates_Default_Property : constant Glib.Properties.Property_Boolean :=
     Glib.Properties.Build ("activates-default");
end Gtk.GEntry;