/src/wrappers/gobject/library/g_param_spec_boolean.e

http://github.com/tybor/Liberty · Specman e · 57 lines · 41 code · 9 blank · 7 comment · 3 complexity · 7860fe031a8155c405833dd6ec8ed84e MD5 · raw file

  1. indexing
  2. description: "Boolean GParamSpec Metadata for parameter specifications"
  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 G_PARAM_SPEC_BOOLEAN
  19. inherit
  20. G_PARAM_SPEC
  21. redefine
  22. struct_size
  23. end
  24. creation make, from_external_pointer
  25. feature -- Creation
  26. make (a_name,a_nick,a_blurb: STRING; a_default: BOOLEAN; some_flags: INTEGER) is
  27. -- Creates a new G_PARAM_SPEC_BOOLEAN.
  28. -- `a_name' is the canonical name of the property specified,
  29. -- `a_nick' is the nick name for the property specified,
  30. -- `a_blurb' is a description of the property specified.
  31. --`a_default' is the default value for the property
  32. --`some_flags' are flags for the property specified
  33. do
  34. from_external_pointer (g_param_spec_boolean(a_name.to_external,
  35. a_nick.to_external,
  36. a_blurb.to_external,
  37. a_default.to_integer,
  38. some_flags))
  39. -- Note: where Gobject type system took this?
  40. owner_class := g_type_class_peek(get_owner_type(handle))
  41. param_id := get_param_id (handle)
  42. end
  43. feature
  44. struct_size: INTEGER is
  45. external "C use <glib-object.h>"
  46. alias "sizeof(GParamSpecInt)"
  47. end
  48. end