/src/wrappers/gtk/library/gtk_item.e

http://github.com/tybor/Liberty · Specman e · 79 lines · 38 code · 18 blank · 23 comment · 2 complexity · c9c916d05e95b9aa72d0a81887ba7481 MD5 · raw file

  1. indexing
  2. description: "GtkItem -- base class for GtkMenuItem, GtkListItem and GtkTreeItem."
  3. copyright: "[
  4. Copyright (C) 2006 eiffel-libraries team, GTK+ team
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public License
  7. as published by the Free Software Foundation; either version 2.1 of
  8. the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful, but
  10. WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  16. 02110-1301 USA
  17. ]"
  18. date: "$Date:$"
  19. revision: "$Revision:$"
  20. deferred class GTK_ITEM
  21. inherit
  22. GTK_BIN
  23. -- GtkItem implements AtkImplementorIface.
  24. insert
  25. GTK_ITEM_EXTERNALS
  26. feature
  27. select_signal is
  28. -- Emits the "select" signal on the given item.
  29. do
  30. gtk_item_select (handle)
  31. end
  32. deselect is
  33. -- Emits the "deselect" signal on the given item.
  34. do
  35. gtk_item_deselect (handle)
  36. end
  37. toggle is
  38. -- Emits the "toggle" signal on the given item.
  39. do
  40. gtk_item_toggle (handle)
  41. end
  42. -- TODO: Signals
  43. -- The "deselect" signal
  44. -- void user_function (handle,
  45. -- gpointer user_data) : Run first
  46. -- Emitted when the item is deselected.
  47. -- item : the object which received the signal.
  48. -- user_data : user data set when the signal handler was connected.
  49. -- The "select" signal
  50. -- void user_function (handle,
  51. -- gpointer user_data) : Run first
  52. -- Emitted when the item is selected.
  53. -- item : the object which received the signal.
  54. -- user_data : user data set when the signal handler was connected.
  55. -- The "toggle" signal
  56. -- void user_function (GtkItem *item,
  57. -- gpointer user_data) : Run first
  58. -- Emitted when the item is toggled.
  59. -- item : the object which received the signal.
  60. -- user_data : user data set when the signal handler was connected.
  61. end