/src/wrappers/gobject/library/g_param_spec_integer.e

http://github.com/tybor/Liberty · Specman e · 41 lines · 28 code · 7 blank · 6 comment · 0 complexity · 89085fbf4b3c7780fda8473593b44081 MD5 · raw file

  1. indexing
  2. description: "Integer GParamSpec"
  3. copyright: "Copyright (c) 2005, Paolo Redaelli"
  4. license: "LGPL"
  5. date: "$Date: $"
  6. revision: "$ $"
  7. class G_PARAM_SPEC_INTEGER
  8. inherit
  9. G_PARAM_SPEC
  10. redefine
  11. struct_size
  12. end
  13. creation
  14. make, from_external_pointer
  15. feature -- Creation
  16. make (a_name,a_nick,a_blurb: STRING;
  17. a_min,a_max,a_default: INTEGER; some_flags: INTEGER) is
  18. -- Creates a new G_PARAM_SPEC_BOOLEAN.
  19. -- `a_name' is the canonical name of the property specified,
  20. -- `a_nick' is the nick name for the property specified,
  21. -- `a_blurb' is a description of the property specified.
  22. --`a_default' is the default value for the property
  23. --`some_flags' are flags for the property specified
  24. do
  25. from_external_pointer (g_param_spec_int
  26. (a_name.to_external, a_nick.to_external, a_blurb.to_external,
  27. a_min, a_max, a_default, some_flags))
  28. end
  29. feature
  30. struct_size: INTEGER is
  31. external "C use <glib-object.h>"
  32. alias "sizeof(GParamSpecInt)"
  33. end
  34. end