/src/wrappers/gtk/library/gtk_check_button.e

http://github.com/tybor/Liberty · Specman e · 82 lines · 45 code · 20 blank · 17 comment · 2 complexity · 24dcef4c56f2972936ef638615db05ea MD5 · raw file

  1. indexing
  2. description: "."
  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. class GTK_CHECK_BUTTON
  21. inherit
  22. GTK_TOGGLE_BUTTON redefine make,with_label,with_mnemonic,struct_size end
  23. insert
  24. GTK_CHECK_BUTTON_EXTERNALS
  25. creation make,with_label,with_mnemonic, from_external_pointer
  26. feature {} -- Creation
  27. make is
  28. -- Creates a new GtkCheckButton.
  29. do
  30. from_external_pointer (gtk_check_button_new)
  31. end
  32. with_label (a_label: STRING) is
  33. -- Creates a new GtkCheckButton with a GtkLabel to the right of it.
  34. do
  35. from_external_pointer (gtk_check_button_new_with_label (a_label.to_external))
  36. end
  37. with_mnemonic (a_label: STRING) is
  38. -- Creates a new GtkCheckButton containing a label. The label
  39. -- will be created using GTK_LABEL.with_mnemonic(), so
  40. -- underscores in label indicate the mnemonic for the check
  41. -- button.
  42. do
  43. from_external_pointer (gtk_check_button_new_with_mnemonic (a_label.to_external))
  44. end
  45. feature
  46. struct_size: INTEGER is
  47. external "C inline use <gtk/gtk.h>"
  48. alias "sizeof(GtkCheckButton)"
  49. end
  50. feature -- Style Properties TODO
  51. -- The "indicator-size" style property
  52. -- "indicator-size" gint : Read
  53. -- Size of check or radio indicator.
  54. -- Allowed values: >= 0
  55. -- Default value: 13
  56. -- The "indicator-spacing" style property
  57. -- "indicator-spacing" gint : Read
  58. -- Spacing around check or radio indicator.
  59. -- Allowed values: >= 0
  60. -- Default value: 2
  61. -- See Also
  62. end