/src/wrappers/gtk/library/gtk_tearoff_menu_item.e

http://github.com/tybor/Liberty · Specman e · 61 lines · 35 code · 14 blank · 12 comment · 2 complexity · 76967bccf58b71916499f48877a5ba75 MD5 · raw file

  1. indexing
  2. description: "GtkTearoffMenuItem -- A menu item used to tear off and reattach its menu."
  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. class GTK_TEAROFF_MENU_ITEM
  19. -- A GtkTearoffMenuItem is a special GtkMenuItem which is used to
  20. -- tear off and reattach its menu. When its menu is shown
  21. -- normally, the GtkTearoffMenuItem is drawn as a dotted line
  22. -- indicating that the menu can be torn off. Activating it causes
  23. -- its menu to be torn off and displayed in its own window as a
  24. -- tearoff menu.
  25. -- When its menu is shown as a tearoff menu, the GtkTearoffMenuItem
  26. -- is drawn as a dotted line which has a left pointing arrow
  27. -- graphic indicating that the tearoff menu can be
  28. -- reattached. Activating it will erase the tearoff menu window.
  29. inherit GTK_MENU_ITEM redefine make, struct_size end
  30. -- TODO: GtkTearoffMenuItem implements AtkImplementorIface.
  31. creation make, from_external_pointer
  32. feature {} -- Creation
  33. make is
  34. -- Creates a new GtkTearoffMenuItem.
  35. do
  36. from_external_pointer (gtk_tearoff_menu_item_new)
  37. end
  38. feature -- size
  39. struct_size: INTEGER is
  40. external "C inline use <gtk/gtk.h>"
  41. alias "sizeof(GtkTearoffMenuItem)"
  42. end
  43. feature {} -- External features
  44. gtk_tearoff_menu_item_new: POINTER is -- GtkWidget*
  45. external "C use <gtk/gtk.h>"
  46. end
  47. end