/usr/include/d/gtkd-3/gtk/StatusIcon.d is in libgtkd-3-dev 3.7.5-2build1.
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 | /*
* This file is part of gtkD.
*
* gtkD is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version, with
* some exceptions, please read the COPYING file.
*
* gtkD 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with gtkD; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
*/
// generated automatically - do not change
// find conversion definition on APILookup.txt
// implement new conversion functionalities on the wrap.utils pakage
module gtk.StatusIcon;
private import gdk.Event;
private import gdk.Screen;
private import gdkpixbuf.Pixbuf;
private import gio.IconIF;
private import glib.ConstructionException;
private import glib.Str;
private import gobject.ObjectG;
private import gobject.Signals;
private import gtk.Menu;
private import gtk.Tooltip;
private import gtk.c.functions;
public import gtk.c.types;
public import gtkc.gtktypes;
private import std.algorithm;
/**
* The “system tray” or notification area is normally used for transient icons
* that indicate some special state. For example, a system tray icon might
* appear to tell the user that they have new mail, or have an incoming instant
* message, or something along those lines. The basic idea is that creating an
* icon in the notification area is less annoying than popping up a dialog.
*
* A #GtkStatusIcon object can be used to display an icon in a “system tray”.
* The icon can have a tooltip, and the user can interact with it by
* activating it or popping up a context menu. Critical information should
* not solely be displayed in a #GtkStatusIcon, since it may not be
* visible (e.g. when the user doesn’t have a notification area on his panel).
* This can be checked with gtk_status_icon_is_embedded().
*
* On X11, the implementation follows the
* [FreeDesktop System Tray Specification](http://www.freedesktop.org/wiki/Specifications/systemtray-spec).
* Implementations of the “tray” side of this specification can
* be found e.g. in the GNOME 2 and KDE panel applications.
*
* Note that a GtkStatusIcon is not a widget, but just
* a #GObject. Making it a widget would be impractical, since the system tray
* on Win32 doesn’t allow to embed arbitrary widgets.
*
* GtkStatusIcon has been deprecated in 3.14. You should consider using
* notifications or more modern platform-specific APIs instead. GLib provides
* the #GNotification API which works well with #GtkApplication. Also see this
* [HowDoI](https://wiki.gnome.org/HowDoI/GNotification).
*/
public class StatusIcon : ObjectG
{
/** the main Gtk struct */
protected GtkStatusIcon* gtkStatusIcon;
/** Get the main Gtk struct */
public GtkStatusIcon* getStatusIconStruct(bool transferOwnership = false)
{
if (transferOwnership)
ownedRef = false;
return gtkStatusIcon;
}
/** the main Gtk struct as a void* */
protected override void* getStruct()
{
return cast(void*)gtkStatusIcon;
}
protected override void setStruct(GObject* obj)
{
gtkStatusIcon = cast(GtkStatusIcon*)obj;
super.setStruct(obj);
}
/**
* Sets our main struct and passes it to the parent class.
*/
public this (GtkStatusIcon* gtkStatusIcon, bool ownedRef = false)
{
this.gtkStatusIcon = gtkStatusIcon;
super(cast(GObject*)gtkStatusIcon, ownedRef);
}
/**
* Creates a status icon displaying a stock icon. Sample stock icon
* names are StockID.OPEN, StockID.QUIT. You can register your
* own stock icon names, see gtk_icon_factory_add_default() and
* gtk_icon_factory_add().
* Since 2.10
* Params:
* stock_id = a stock icon id
* Returns:
* a new GtkStatusIcon
* Throws: ConstructionException GTK+ fails to create the object.
*/
public this (StockID stockID)
{
auto p = gtk_status_icon_new_from_stock(Str.toStringz(stockID));
if(p is null)
{
throw new ConstructionException("null returned by gtk_status_icon_new_from_stock");
}
this(cast(GtkStatusIcon*)p);
}
/**
* Creates a status icon displaying an icon from the current icon theme.
* If the current icon theme is changed, the icon will be updated
* appropriately.
* Since 2.10
* Params:
* iconName = an icon name
* loadFromFile = treat iconName as a filename and load that image
* with gtk_status_icon_new_from_file.
* Throws: ConstructionException GTK+ fails to create the object.
*/
public this (string iconName, bool loadFromFile = false)
{
//TODO: look at a better way to do this.
GtkStatusIcon* p;
if(loadFromFile)
{
p = cast(GtkStatusIcon*)gtk_status_icon_new_from_file(Str.toStringz(iconName));
}
else
{
p = cast(GtkStatusIcon*)gtk_status_icon_new_from_icon_name(Str.toStringz(iconName));
}
if(p is null)
{
throw new ConstructionException("null returned by gtk_status_icon_new_from_");
}
this(p);
}
/**
*/
/** */
public static GType getType()
{
return gtk_status_icon_get_type();
}
/**
* Creates an empty status icon object.
*
* Deprecated: Use notifications
*
* Returns: a new #GtkStatusIcon
*
* Since: 2.10
*
* Throws: ConstructionException GTK+ fails to create the object.
*/
public this()
{
auto p = gtk_status_icon_new();
if(p is null)
{
throw new ConstructionException("null returned by new");
}
this(cast(GtkStatusIcon*) p, true);
}
/**
* Creates a status icon displaying a #GIcon. If the icon is a
* themed icon, it will be updated when the theme changes.
*
* Deprecated: Use notifications
*
* Params:
* icon = a #GIcon
*
* Returns: a new #GtkStatusIcon
*
* Since: 2.14
*
* Throws: ConstructionException GTK+ fails to create the object.
*/
public this(IconIF icon)
{
auto p = gtk_status_icon_new_from_gicon((icon is null) ? null : icon.getIconStruct());
if(p is null)
{
throw new ConstructionException("null returned by new_from_gicon");
}
this(cast(GtkStatusIcon*) p, true);
}
/**
* Creates a status icon displaying @pixbuf.
*
* The image will be scaled down to fit in the available
* space in the notification area, if necessary.
*
* Deprecated: Use notifications
*
* Params:
* pixbuf = a #GdkPixbuf
*
* Returns: a new #GtkStatusIcon
*
* Since: 2.10
*
* Throws: ConstructionException GTK+ fails to create the object.
*/
public this(Pixbuf pixbuf)
{
auto p = gtk_status_icon_new_from_pixbuf((pixbuf is null) ? null : pixbuf.getPixbufStruct());
if(p is null)
{
throw new ConstructionException("null returned by new_from_pixbuf");
}
this(cast(GtkStatusIcon*) p, true);
}
/**
* Menu positioning function to use with gtk_menu_popup()
* to position @menu aligned to the status icon @user_data.
*
* Deprecated: Use notifications
*
* Params:
* menu = the #GtkMenu
* x = return location for the x position
* y = return location for the y position
* pushIn = whether the first menu item should be offset
* (pushed in) to be aligned with the menu popup position
* (only useful for GtkOptionMenu).
* userData = the status icon to position the menu on
*
* Since: 2.10
*/
public static void positionMenu(Menu menu, ref int x, ref int y, out bool pushIn, StatusIcon userData)
{
int outpushIn;
gtk_status_icon_position_menu((menu is null) ? null : menu.getMenuStruct(), &x, &y, &outpushIn, (userData is null) ? null : userData.getStatusIconStruct());
pushIn = (outpushIn == 1);
}
/**
* Obtains information about the location of the status icon
* on screen. This information can be used to e.g. position
* popups like notification bubbles.
*
* See gtk_status_icon_position_menu() for a more convenient
* alternative for positioning menus.
*
* Note that some platforms do not allow GTK+ to provide
* this information, and even on platforms that do allow it,
* the information is not reliable unless the status icon
* is embedded in a notification area, see
* gtk_status_icon_is_embedded().
*
* Deprecated: Use notifications
*
* Params:
* screen = return location for
* the screen, or %NULL if the information is not needed
* area = return location for the area occupied by
* the status icon, or %NULL
* orientation = return location for the
* orientation of the panel in which the status icon is embedded,
* or %NULL. A panel at the top or bottom of the screen is
* horizontal, a panel at the left or right is vertical.
*
* Returns: %TRUE if the location information has
* been filled in
*
* Since: 2.10
*/
public bool getGeometry(out Screen screen, out GdkRectangle area, out GtkOrientation orientation)
{
GdkScreen* outscreen = null;
auto p = gtk_status_icon_get_geometry(gtkStatusIcon, &outscreen, &area, &orientation) != 0;
screen = ObjectG.getDObject!(Screen)(outscreen);
return p;
}
/**
* Retrieves the #GIcon being displayed by the #GtkStatusIcon.
* The storage type of the status icon must be %GTK_IMAGE_EMPTY or
* %GTK_IMAGE_GICON (see gtk_status_icon_get_storage_type()).
* The caller of this function does not own a reference to the
* returned #GIcon.
*
* If this function fails, @icon is left unchanged;
*
* Deprecated: Use notifications
*
* Returns: the displayed icon, or %NULL if the image is empty
*
* Since: 2.14
*/
public IconIF getGicon()
{
auto p = gtk_status_icon_get_gicon(gtkStatusIcon);
if(p is null)
{
return null;
}
return ObjectG.getDObject!(IconIF)(cast(GIcon*) p);
}
/**
* Returns the current value of the has-tooltip property.
* See #GtkStatusIcon:has-tooltip for more information.
*
* Deprecated: Use notifications
*
* Returns: current value of has-tooltip on @status_icon.
*
* Since: 2.16
*/
public bool getHasTooltip()
{
return gtk_status_icon_get_has_tooltip(gtkStatusIcon) != 0;
}
/**
* Gets the name of the icon being displayed by the #GtkStatusIcon.
* The storage type of the status icon must be %GTK_IMAGE_EMPTY or
* %GTK_IMAGE_ICON_NAME (see gtk_status_icon_get_storage_type()).
* The returned string is owned by the #GtkStatusIcon and should not
* be freed or modified.
*
* Deprecated: Use notifications
*
* Returns: name of the displayed icon, or %NULL if the image is empty.
*
* Since: 2.10
*/
public string getIconName()
{
return Str.toString(gtk_status_icon_get_icon_name(gtkStatusIcon));
}
/**
* Gets the #GdkPixbuf being displayed by the #GtkStatusIcon.
* The storage type of the status icon must be %GTK_IMAGE_EMPTY or
* %GTK_IMAGE_PIXBUF (see gtk_status_icon_get_storage_type()).
* The caller of this function does not own a reference to the
* returned pixbuf.
*
* Deprecated: Use notifications
*
* Returns: the displayed pixbuf,
* or %NULL if the image is empty.
*
* Since: 2.10
*/
public Pixbuf getPixbuf()
{
auto p = gtk_status_icon_get_pixbuf(gtkStatusIcon);
if(p is null)
{
return null;
}
return ObjectG.getDObject!(Pixbuf)(cast(GdkPixbuf*) p);
}
/**
* Returns the #GdkScreen associated with @status_icon.
*
* Deprecated: Use notifications
*
* Returns: a #GdkScreen.
*
* Since: 2.12
*/
public Screen getScreen()
{
auto p = gtk_status_icon_get_screen(gtkStatusIcon);
if(p is null)
{
return null;
}
return ObjectG.getDObject!(Screen)(cast(GdkScreen*) p);
}
/**
* Gets the size in pixels that is available for the image.
* Stock icons and named icons adapt their size automatically
* if the size of the notification area changes. For other
* storage types, the size-changed signal can be used to
* react to size changes.
*
* Note that the returned size is only meaningful while the
* status icon is embedded (see gtk_status_icon_is_embedded()).
*
* Deprecated: Use notifications
*
* Returns: the size that is available for the image
*
* Since: 2.10
*/
public int getSize()
{
return gtk_status_icon_get_size(gtkStatusIcon);
}
/**
* Gets the id of the stock icon being displayed by the #GtkStatusIcon.
* The storage type of the status icon must be %GTK_IMAGE_EMPTY or
* %GTK_IMAGE_STOCK (see gtk_status_icon_get_storage_type()).
* The returned string is owned by the #GtkStatusIcon and should not
* be freed or modified.
*
* Deprecated: Use gtk_status_icon_get_icon_name() instead.
*
* Returns: stock id of the displayed stock icon,
* or %NULL if the image is empty.
*
* Since: 2.10
*/
public string getStock()
{
return Str.toString(gtk_status_icon_get_stock(gtkStatusIcon));
}
/**
* Gets the type of representation being used by the #GtkStatusIcon
* to store image data. If the #GtkStatusIcon has no image data,
* the return value will be %GTK_IMAGE_EMPTY.
*
* Deprecated: Use notifications
*
* Returns: the image representation being used
*
* Since: 2.10
*/
public GtkImageType getStorageType()
{
return gtk_status_icon_get_storage_type(gtkStatusIcon);
}
/**
* Gets the title of this tray icon. See gtk_status_icon_set_title().
*
* Deprecated: Use notifications
*
* Returns: the title of the status icon
*
* Since: 2.18
*/
public string getTitle()
{
return Str.toString(gtk_status_icon_get_title(gtkStatusIcon));
}
/**
* Gets the contents of the tooltip for @status_icon.
*
* Deprecated: Use notifications
*
* Returns: the tooltip text, or %NULL. You should free the
* returned string with g_free() when done.
*
* Since: 2.16
*/
public string getTooltipMarkup()
{
auto retStr = gtk_status_icon_get_tooltip_markup(gtkStatusIcon);
scope(exit) Str.freeString(retStr);
return Str.toString(retStr);
}
/**
* Gets the contents of the tooltip for @status_icon.
*
* Deprecated: Use notifications
*
* Returns: the tooltip text, or %NULL. You should free the
* returned string with g_free() when done.
*
* Since: 2.16
*/
public string getTooltipText()
{
auto retStr = gtk_status_icon_get_tooltip_text(gtkStatusIcon);
scope(exit) Str.freeString(retStr);
return Str.toString(retStr);
}
/**
* Returns whether the status icon is visible or not.
* Note that being visible does not guarantee that
* the user can actually see the icon, see also
* gtk_status_icon_is_embedded().
*
* Deprecated: Use notifications
*
* Returns: %TRUE if the status icon is visible
*
* Since: 2.10
*/
public bool getVisible()
{
return gtk_status_icon_get_visible(gtkStatusIcon) != 0;
}
/**
* This function is only useful on the X11/freedesktop.org platform.
* It returns a window ID for the widget in the underlying
* status icon implementation. This is useful for the Galago
* notification service, which can send a window ID in the protocol
* in order for the server to position notification windows
* pointing to a status icon reliably.
*
* This function is not intended for other use cases which are
* more likely to be met by one of the non-X11 specific methods, such
* as gtk_status_icon_position_menu().
*
* Deprecated: Use notifications
*
* Returns: An 32 bit unsigned integer identifier for the
* underlying X11 Window
*
* Since: 2.14
*/
public uint getX11WindowId()
{
return gtk_status_icon_get_x11_window_id(gtkStatusIcon);
}
/**
* Returns whether the status icon is embedded in a notification
* area.
*
* Deprecated: Use notifications
*
* Returns: %TRUE if the status icon is embedded in
* a notification area.
*
* Since: 2.10
*/
public bool isEmbedded()
{
return gtk_status_icon_is_embedded(gtkStatusIcon) != 0;
}
/**
* Makes @status_icon display the file @filename.
* See gtk_status_icon_new_from_file() for details.
*
* Deprecated: Use notifications
*
* Params:
* filename = a filename
*
* Since: 2.10
*/
public void setFromFile(string filename)
{
gtk_status_icon_set_from_file(gtkStatusIcon, Str.toStringz(filename));
}
/**
* Makes @status_icon display the #GIcon.
* See gtk_status_icon_new_from_gicon() for details.
*
* Deprecated: Use notifications
*
* Params:
* icon = a GIcon
*
* Since: 2.14
*/
public void setFromGicon(IconIF icon)
{
gtk_status_icon_set_from_gicon(gtkStatusIcon, (icon is null) ? null : icon.getIconStruct());
}
/**
* Makes @status_icon display the icon named @icon_name from the
* current icon theme.
* See gtk_status_icon_new_from_icon_name() for details.
*
* Deprecated: Use notifications
*
* Params:
* iconName = an icon name
*
* Since: 2.10
*/
public void setFromIconName(string iconName)
{
gtk_status_icon_set_from_icon_name(gtkStatusIcon, Str.toStringz(iconName));
}
/**
* Makes @status_icon display @pixbuf.
* See gtk_status_icon_new_from_pixbuf() for details.
*
* Deprecated: Use notifications
*
* Params:
* pixbuf = a #GdkPixbuf or %NULL
*
* Since: 2.10
*/
public void setFromPixbuf(Pixbuf pixbuf)
{
gtk_status_icon_set_from_pixbuf(gtkStatusIcon, (pixbuf is null) ? null : pixbuf.getPixbufStruct());
}
/**
* Makes @status_icon display the stock icon with the id @stock_id.
* See gtk_status_icon_new_from_stock() for details.
*
* Deprecated: Use gtk_status_icon_set_from_icon_name() instead.
*
* Params:
* stockId = a stock icon id
*
* Since: 2.10
*/
public void setFromStock(string stockId)
{
gtk_status_icon_set_from_stock(gtkStatusIcon, Str.toStringz(stockId));
}
/**
* Sets the has-tooltip property on @status_icon to @has_tooltip.
* See #GtkStatusIcon:has-tooltip for more information.
*
* Deprecated: Use notifications
*
* Params:
* hasTooltip = whether or not @status_icon has a tooltip
*
* Since: 2.16
*/
public void setHasTooltip(bool hasTooltip)
{
gtk_status_icon_set_has_tooltip(gtkStatusIcon, hasTooltip);
}
/**
* Sets the name of this tray icon.
* This should be a string identifying this icon. It is may be
* used for sorting the icons in the tray and will not be shown to
* the user.
*
* Deprecated: Use notifications
*
* Params:
* name = the name
*
* Since: 2.20
*/
public void setName(string name)
{
gtk_status_icon_set_name(gtkStatusIcon, Str.toStringz(name));
}
/**
* Sets the #GdkScreen where @status_icon is displayed; if
* the icon is already mapped, it will be unmapped, and
* then remapped on the new screen.
*
* Deprecated: Use notifications
*
* Params:
* screen = a #GdkScreen
*
* Since: 2.12
*/
public void setScreen(Screen screen)
{
gtk_status_icon_set_screen(gtkStatusIcon, (screen is null) ? null : screen.getScreenStruct());
}
/**
* Sets the title of this tray icon.
* This should be a short, human-readable, localized string
* describing the tray icon. It may be used by tools like screen
* readers to render the tray icon.
*
* Deprecated: Use notifications
*
* Params:
* title = the title
*
* Since: 2.18
*/
public void setTitle(string title)
{
gtk_status_icon_set_title(gtkStatusIcon, Str.toStringz(title));
}
/**
* Sets @markup as the contents of the tooltip, which is marked up with
* the [Pango text markup language][PangoMarkupFormat].
*
* This function will take care of setting #GtkStatusIcon:has-tooltip to %TRUE
* and of the default handler for the #GtkStatusIcon::query-tooltip signal.
*
* See also the #GtkStatusIcon:tooltip-markup property and
* gtk_tooltip_set_markup().
*
* Deprecated: Use notifications
*
* Params:
* markup = the contents of the tooltip for @status_icon, or %NULL
*
* Since: 2.16
*/
public void setTooltipMarkup(string markup)
{
gtk_status_icon_set_tooltip_markup(gtkStatusIcon, Str.toStringz(markup));
}
/**
* Sets @text as the contents of the tooltip.
*
* This function will take care of setting #GtkStatusIcon:has-tooltip to
* %TRUE and of the default handler for the #GtkStatusIcon::query-tooltip
* signal.
*
* See also the #GtkStatusIcon:tooltip-text property and
* gtk_tooltip_set_text().
*
* Deprecated: Use notifications
*
* Params:
* text = the contents of the tooltip for @status_icon
*
* Since: 2.16
*/
public void setTooltipText(string text)
{
gtk_status_icon_set_tooltip_text(gtkStatusIcon, Str.toStringz(text));
}
/**
* Shows or hides a status icon.
*
* Deprecated: Use notifications
*
* Params:
* visible = %TRUE to show the status icon, %FALSE to hide it
*
* Since: 2.10
*/
public void setVisible(bool visible)
{
gtk_status_icon_set_visible(gtkStatusIcon, visible);
}
protected class OnActivateDelegateWrapper
{
void delegate(StatusIcon) dlg;
gulong handlerId;
this(void delegate(StatusIcon) dlg)
{
this.dlg = dlg;
onActivateListeners ~= this;
}
void remove(OnActivateDelegateWrapper source)
{
foreach(index, wrapper; onActivateListeners)
{
if (wrapper.handlerId == source.handlerId)
{
onActivateListeners[index] = null;
onActivateListeners = std.algorithm.remove(onActivateListeners, index);
break;
}
}
}
}
OnActivateDelegateWrapper[] onActivateListeners;
/**
* Gets emitted when the user activates the status icon.
* If and how status icons can activated is platform-dependent.
*
* Unlike most G_SIGNAL_ACTION signals, this signal is meant to
* be used by applications and should be wrapped by language bindings.
*
* Since: 2.10
*/
gulong addOnActivate(void delegate(StatusIcon) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
auto wrapper = new OnActivateDelegateWrapper(dlg);
wrapper.handlerId = Signals.connectData(
this,
"activate",
cast(GCallback)&callBackActivate,
cast(void*)wrapper,
cast(GClosureNotify)&callBackActivateDestroy,
connectFlags);
return wrapper.handlerId;
}
extern(C) static void callBackActivate(GtkStatusIcon* statusiconStruct, OnActivateDelegateWrapper wrapper)
{
wrapper.dlg(wrapper.outer);
}
extern(C) static void callBackActivateDestroy(OnActivateDelegateWrapper wrapper, GClosure* closure)
{
wrapper.remove(wrapper);
}
protected class OnButtonPressDelegateWrapper
{
bool delegate(GdkEventButton*, StatusIcon) dlg;
gulong handlerId;
this(bool delegate(GdkEventButton*, StatusIcon) dlg)
{
this.dlg = dlg;
onButtonPressListeners ~= this;
}
void remove(OnButtonPressDelegateWrapper source)
{
foreach(index, wrapper; onButtonPressListeners)
{
if (wrapper.handlerId == source.handlerId)
{
onButtonPressListeners[index] = null;
onButtonPressListeners = std.algorithm.remove(onButtonPressListeners, index);
break;
}
}
}
}
OnButtonPressDelegateWrapper[] onButtonPressListeners;
/**
* The ::button-press-event signal will be emitted when a button
* (typically from a mouse) is pressed.
*
* Whether this event is emitted is platform-dependent. Use the ::activate
* and ::popup-menu signals in preference.
*
* Params:
* event = the #GdkEventButton which triggered
* this signal
*
* Returns: %TRUE to stop other handlers from being invoked
* for the event. %FALSE to propagate the event further.
*
* Since: 2.14
*/
gulong addOnButtonPress(bool delegate(GdkEventButton*, StatusIcon) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
auto wrapper = new OnButtonPressDelegateWrapper(dlg);
wrapper.handlerId = Signals.connectData(
this,
"button-press-event",
cast(GCallback)&callBackButtonPress,
cast(void*)wrapper,
cast(GClosureNotify)&callBackButtonPressDestroy,
connectFlags);
return wrapper.handlerId;
}
extern(C) static int callBackButtonPress(GtkStatusIcon* statusiconStruct, GdkEventButton* event, OnButtonPressDelegateWrapper wrapper)
{
return wrapper.dlg(event, wrapper.outer);
}
extern(C) static void callBackButtonPressDestroy(OnButtonPressDelegateWrapper wrapper, GClosure* closure)
{
wrapper.remove(wrapper);
}
protected class OnButtonPressEventGenericDelegateWrapper
{
bool delegate(Event, StatusIcon) dlg;
gulong handlerId;
this(bool delegate(Event, StatusIcon) dlg)
{
this.dlg = dlg;
onButtonPressEventGenericListeners ~= this;
}
void remove(OnButtonPressEventGenericDelegateWrapper source)
{
foreach(index, wrapper; onButtonPressEventGenericListeners)
{
if (wrapper.handlerId == source.handlerId)
{
onButtonPressEventGenericListeners[index] = null;
onButtonPressEventGenericListeners = std.algorithm.remove(onButtonPressEventGenericListeners, index);
break;
}
}
}
}
OnButtonPressEventGenericDelegateWrapper[] onButtonPressEventGenericListeners;
/**
* The ::button-press-event signal will be emitted when a button
* (typically from a mouse) is pressed.
*
* Whether this event is emitted is platform-dependent. Use the ::activate
* and ::popup-menu signals in preference.
*
* Params:
* event = the #GdkEventButton which triggered
* this signal
*
* Returns: %TRUE to stop other handlers from being invoked
* for the event. %FALSE to propagate the event further.
*
* Since: 2.14
*/
gulong addOnButtonPress(bool delegate(Event, StatusIcon) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
auto wrapper = new OnButtonPressEventGenericDelegateWrapper(dlg);
wrapper.handlerId = Signals.connectData(
this,
"button-press-event",
cast(GCallback)&callBackButtonPressEventGeneric,
cast(void*)wrapper,
cast(GClosureNotify)&callBackButtonPressEventGenericDestroy,
connectFlags);
return wrapper.handlerId;
}
extern(C) static int callBackButtonPressEventGeneric(GtkStatusIcon* statusiconStruct, GdkEvent* event, OnButtonPressEventGenericDelegateWrapper wrapper)
{
return wrapper.dlg(ObjectG.getDObject!(Event)(event), wrapper.outer);
}
extern(C) static void callBackButtonPressEventGenericDestroy(OnButtonPressEventGenericDelegateWrapper wrapper, GClosure* closure)
{
wrapper.remove(wrapper);
}
protected class OnButtonReleaseDelegateWrapper
{
bool delegate(GdkEventButton*, StatusIcon) dlg;
gulong handlerId;
this(bool delegate(GdkEventButton*, StatusIcon) dlg)
{
this.dlg = dlg;
onButtonReleaseListeners ~= this;
}
void remove(OnButtonReleaseDelegateWrapper source)
{
foreach(index, wrapper; onButtonReleaseListeners)
{
if (wrapper.handlerId == source.handlerId)
{
onButtonReleaseListeners[index] = null;
onButtonReleaseListeners = std.algorithm.remove(onButtonReleaseListeners, index);
break;
}
}
}
}
OnButtonReleaseDelegateWrapper[] onButtonReleaseListeners;
/**
* The ::button-release-event signal will be emitted when a button
* (typically from a mouse) is released.
*
* Whether this event is emitted is platform-dependent. Use the ::activate
* and ::popup-menu signals in preference.
*
* Params:
* event = the #GdkEventButton which triggered
* this signal
*
* Returns: %TRUE to stop other handlers from being invoked
* for the event. %FALSE to propagate the event further.
*
* Since: 2.14
*/
gulong addOnButtonRelease(bool delegate(GdkEventButton*, StatusIcon) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
auto wrapper = new OnButtonReleaseDelegateWrapper(dlg);
wrapper.handlerId = Signals.connectData(
this,
"button-release-event",
cast(GCallback)&callBackButtonRelease,
cast(void*)wrapper,
cast(GClosureNotify)&callBackButtonReleaseDestroy,
connectFlags);
return wrapper.handlerId;
}
extern(C) static int callBackButtonRelease(GtkStatusIcon* statusiconStruct, GdkEventButton* event, OnButtonReleaseDelegateWrapper wrapper)
{
return wrapper.dlg(event, wrapper.outer);
}
extern(C) static void callBackButtonReleaseDestroy(OnButtonReleaseDelegateWrapper wrapper, GClosure* closure)
{
wrapper.remove(wrapper);
}
protected class OnButtonReleaseEventGenericDelegateWrapper
{
bool delegate(Event, StatusIcon) dlg;
gulong handlerId;
this(bool delegate(Event, StatusIcon) dlg)
{
this.dlg = dlg;
onButtonReleaseEventGenericListeners ~= this;
}
void remove(OnButtonReleaseEventGenericDelegateWrapper source)
{
foreach(index, wrapper; onButtonReleaseEventGenericListeners)
{
if (wrapper.handlerId == source.handlerId)
{
onButtonReleaseEventGenericListeners[index] = null;
onButtonReleaseEventGenericListeners = std.algorithm.remove(onButtonReleaseEventGenericListeners, index);
break;
}
}
}
}
OnButtonReleaseEventGenericDelegateWrapper[] onButtonReleaseEventGenericListeners;
/**
* The ::button-release-event signal will be emitted when a button
* (typically from a mouse) is released.
*
* Whether this event is emitted is platform-dependent. Use the ::activate
* and ::popup-menu signals in preference.
*
* Params:
* event = the #GdkEventButton which triggered
* this signal
*
* Returns: %TRUE to stop other handlers from being invoked
* for the event. %FALSE to propagate the event further.
*
* Since: 2.14
*/
gulong addOnButtonRelease(bool delegate(Event, StatusIcon) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
auto wrapper = new OnButtonReleaseEventGenericDelegateWrapper(dlg);
wrapper.handlerId = Signals.connectData(
this,
"button-release-event",
cast(GCallback)&callBackButtonReleaseEventGeneric,
cast(void*)wrapper,
cast(GClosureNotify)&callBackButtonReleaseEventGenericDestroy,
connectFlags);
return wrapper.handlerId;
}
extern(C) static int callBackButtonReleaseEventGeneric(GtkStatusIcon* statusiconStruct, GdkEvent* event, OnButtonReleaseEventGenericDelegateWrapper wrapper)
{
return wrapper.dlg(ObjectG.getDObject!(Event)(event), wrapper.outer);
}
extern(C) static void callBackButtonReleaseEventGenericDestroy(OnButtonReleaseEventGenericDelegateWrapper wrapper, GClosure* closure)
{
wrapper.remove(wrapper);
}
protected class OnPopupMenuDelegateWrapper
{
void delegate(uint, uint, StatusIcon) dlg;
gulong handlerId;
this(void delegate(uint, uint, StatusIcon) dlg)
{
this.dlg = dlg;
onPopupMenuListeners ~= this;
}
void remove(OnPopupMenuDelegateWrapper source)
{
foreach(index, wrapper; onPopupMenuListeners)
{
if (wrapper.handlerId == source.handlerId)
{
onPopupMenuListeners[index] = null;
onPopupMenuListeners = std.algorithm.remove(onPopupMenuListeners, index);
break;
}
}
}
}
OnPopupMenuDelegateWrapper[] onPopupMenuListeners;
/**
* Gets emitted when the user brings up the context menu
* of the status icon. Whether status icons can have context
* menus and how these are activated is platform-dependent.
*
* The @button and @activate_time parameters should be
* passed as the last to arguments to gtk_menu_popup().
*
* Unlike most G_SIGNAL_ACTION signals, this signal is meant to
* be used by applications and should be wrapped by language bindings.
*
* Params:
* button = the button that was pressed, or 0 if the
* signal is not emitted in response to a button press event
* activateTime = the timestamp of the event that
* triggered the signal emission
*
* Since: 2.10
*/
gulong addOnPopupMenu(void delegate(uint, uint, StatusIcon) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
auto wrapper = new OnPopupMenuDelegateWrapper(dlg);
wrapper.handlerId = Signals.connectData(
this,
"popup-menu",
cast(GCallback)&callBackPopupMenu,
cast(void*)wrapper,
cast(GClosureNotify)&callBackPopupMenuDestroy,
connectFlags);
return wrapper.handlerId;
}
extern(C) static void callBackPopupMenu(GtkStatusIcon* statusiconStruct, uint button, uint activateTime, OnPopupMenuDelegateWrapper wrapper)
{
wrapper.dlg(button, activateTime, wrapper.outer);
}
extern(C) static void callBackPopupMenuDestroy(OnPopupMenuDelegateWrapper wrapper, GClosure* closure)
{
wrapper.remove(wrapper);
}
protected class OnQueryTooltipDelegateWrapper
{
bool delegate(int, int, bool, Tooltip, StatusIcon) dlg;
gulong handlerId;
this(bool delegate(int, int, bool, Tooltip, StatusIcon) dlg)
{
this.dlg = dlg;
onQueryTooltipListeners ~= this;
}
void remove(OnQueryTooltipDelegateWrapper source)
{
foreach(index, wrapper; onQueryTooltipListeners)
{
if (wrapper.handlerId == source.handlerId)
{
onQueryTooltipListeners[index] = null;
onQueryTooltipListeners = std.algorithm.remove(onQueryTooltipListeners, index);
break;
}
}
}
}
OnQueryTooltipDelegateWrapper[] onQueryTooltipListeners;
/**
* Emitted when the hover timeout has expired with the
* cursor hovering above @status_icon; or emitted when @status_icon got
* focus in keyboard mode.
*
* Using the given coordinates, the signal handler should determine
* whether a tooltip should be shown for @status_icon. If this is
* the case %TRUE should be returned, %FALSE otherwise. Note that if
* @keyboard_mode is %TRUE, the values of @x and @y are undefined and
* should not be used.
*
* The signal handler is free to manipulate @tooltip with the therefore
* destined function calls.
*
* Whether this signal is emitted is platform-dependent.
* For plain text tooltips, use #GtkStatusIcon:tooltip-text in preference.
*
* Params:
* x = the x coordinate of the cursor position where the request has been
* emitted, relative to @status_icon
* y = the y coordinate of the cursor position where the request has been
* emitted, relative to @status_icon
* keyboardMode = %TRUE if the tooltip was trigged using the keyboard
* tooltip = a #GtkTooltip
*
* Returns: %TRUE if @tooltip should be shown right now, %FALSE otherwise.
*
* Since: 2.16
*/
gulong addOnQueryTooltip(bool delegate(int, int, bool, Tooltip, StatusIcon) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
auto wrapper = new OnQueryTooltipDelegateWrapper(dlg);
wrapper.handlerId = Signals.connectData(
this,
"query-tooltip",
cast(GCallback)&callBackQueryTooltip,
cast(void*)wrapper,
cast(GClosureNotify)&callBackQueryTooltipDestroy,
connectFlags);
return wrapper.handlerId;
}
extern(C) static int callBackQueryTooltip(GtkStatusIcon* statusiconStruct, int x, int y, bool keyboardMode, GtkTooltip* tooltip, OnQueryTooltipDelegateWrapper wrapper)
{
return wrapper.dlg(x, y, keyboardMode, ObjectG.getDObject!(Tooltip)(tooltip), wrapper.outer);
}
extern(C) static void callBackQueryTooltipDestroy(OnQueryTooltipDelegateWrapper wrapper, GClosure* closure)
{
wrapper.remove(wrapper);
}
protected class OnScrollDelegateWrapper
{
bool delegate(GdkEventScroll*, StatusIcon) dlg;
gulong handlerId;
this(bool delegate(GdkEventScroll*, StatusIcon) dlg)
{
this.dlg = dlg;
onScrollListeners ~= this;
}
void remove(OnScrollDelegateWrapper source)
{
foreach(index, wrapper; onScrollListeners)
{
if (wrapper.handlerId == source.handlerId)
{
onScrollListeners[index] = null;
onScrollListeners = std.algorithm.remove(onScrollListeners, index);
break;
}
}
}
}
OnScrollDelegateWrapper[] onScrollListeners;
/**
* The ::scroll-event signal is emitted when a button in the 4 to 7
* range is pressed. Wheel mice are usually configured to generate
* button press events for buttons 4 and 5 when the wheel is turned.
*
* Whether this event is emitted is platform-dependent.
*
* Params:
* event = the #GdkEventScroll which triggered
* this signal
*
* Returns: %TRUE to stop other handlers from being invoked for the event.
* %FALSE to propagate the event further.
*
* Since: 2.16
*/
gulong addOnScroll(bool delegate(GdkEventScroll*, StatusIcon) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
auto wrapper = new OnScrollDelegateWrapper(dlg);
wrapper.handlerId = Signals.connectData(
this,
"scroll-event",
cast(GCallback)&callBackScroll,
cast(void*)wrapper,
cast(GClosureNotify)&callBackScrollDestroy,
connectFlags);
return wrapper.handlerId;
}
extern(C) static int callBackScroll(GtkStatusIcon* statusiconStruct, GdkEventScroll* event, OnScrollDelegateWrapper wrapper)
{
return wrapper.dlg(event, wrapper.outer);
}
extern(C) static void callBackScrollDestroy(OnScrollDelegateWrapper wrapper, GClosure* closure)
{
wrapper.remove(wrapper);
}
protected class OnScrollEventGenericDelegateWrapper
{
bool delegate(Event, StatusIcon) dlg;
gulong handlerId;
this(bool delegate(Event, StatusIcon) dlg)
{
this.dlg = dlg;
onScrollEventGenericListeners ~= this;
}
void remove(OnScrollEventGenericDelegateWrapper source)
{
foreach(index, wrapper; onScrollEventGenericListeners)
{
if (wrapper.handlerId == source.handlerId)
{
onScrollEventGenericListeners[index] = null;
onScrollEventGenericListeners = std.algorithm.remove(onScrollEventGenericListeners, index);
break;
}
}
}
}
OnScrollEventGenericDelegateWrapper[] onScrollEventGenericListeners;
/**
* The ::scroll-event signal is emitted when a button in the 4 to 7
* range is pressed. Wheel mice are usually configured to generate
* button press events for buttons 4 and 5 when the wheel is turned.
*
* Whether this event is emitted is platform-dependent.
*
* Params:
* event = the #GdkEventScroll which triggered
* this signal
*
* Returns: %TRUE to stop other handlers from being invoked for the event.
* %FALSE to propagate the event further.
*
* Since: 2.16
*/
gulong addOnScroll(bool delegate(Event, StatusIcon) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
auto wrapper = new OnScrollEventGenericDelegateWrapper(dlg);
wrapper.handlerId = Signals.connectData(
this,
"scroll-event",
cast(GCallback)&callBackScrollEventGeneric,
cast(void*)wrapper,
cast(GClosureNotify)&callBackScrollEventGenericDestroy,
connectFlags);
return wrapper.handlerId;
}
extern(C) static int callBackScrollEventGeneric(GtkStatusIcon* statusiconStruct, GdkEvent* event, OnScrollEventGenericDelegateWrapper wrapper)
{
return wrapper.dlg(ObjectG.getDObject!(Event)(event), wrapper.outer);
}
extern(C) static void callBackScrollEventGenericDestroy(OnScrollEventGenericDelegateWrapper wrapper, GClosure* closure)
{
wrapper.remove(wrapper);
}
protected class OnSizeChangedDelegateWrapper
{
bool delegate(int, StatusIcon) dlg;
gulong handlerId;
this(bool delegate(int, StatusIcon) dlg)
{
this.dlg = dlg;
onSizeChangedListeners ~= this;
}
void remove(OnSizeChangedDelegateWrapper source)
{
foreach(index, wrapper; onSizeChangedListeners)
{
if (wrapper.handlerId == source.handlerId)
{
onSizeChangedListeners[index] = null;
onSizeChangedListeners = std.algorithm.remove(onSizeChangedListeners, index);
break;
}
}
}
}
OnSizeChangedDelegateWrapper[] onSizeChangedListeners;
/**
* Gets emitted when the size available for the image
* changes, e.g. because the notification area got resized.
*
* Params:
* size = the new size
*
* Returns: %TRUE if the icon was updated for the new
* size. Otherwise, GTK+ will scale the icon as necessary.
*
* Since: 2.10
*/
gulong addOnSizeChanged(bool delegate(int, StatusIcon) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
auto wrapper = new OnSizeChangedDelegateWrapper(dlg);
wrapper.handlerId = Signals.connectData(
this,
"size-changed",
cast(GCallback)&callBackSizeChanged,
cast(void*)wrapper,
cast(GClosureNotify)&callBackSizeChangedDestroy,
connectFlags);
return wrapper.handlerId;
}
extern(C) static int callBackSizeChanged(GtkStatusIcon* statusiconStruct, int size, OnSizeChangedDelegateWrapper wrapper)
{
return wrapper.dlg(size, wrapper.outer);
}
extern(C) static void callBackSizeChangedDestroy(OnSizeChangedDelegateWrapper wrapper, GClosure* closure)
{
wrapper.remove(wrapper);
}
}
|