/src/wrappers/gtk/library/fixed_slider_lenght_property.e

http://github.com/tybor/Liberty · Specman e · 45 lines · 35 code · 8 blank · 2 comment · 2 complexity · 667674ff4bb0fda58b4fac52d18053db MD5 · raw file

  1. indexing
  2. description: "The `fixed-slider-length' style property."
  3. copyright: "[
  4. Copyright (C) 2006 Paolo Redaelli, 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. deferred class FIXED_SLIDER_LENGHT_PROPERTY
  19. inherit GTK_OBJECT -- WRAPPER
  20. feature -- TODO: The "fixed-slider-length" style property
  21. is_slider_length_fixed: BOOLEAN is
  22. -- Don't change slider size, just lock it to the minimum
  23. -- length. Default value: False
  24. do
  25. Result := boolean_property_from_pspec (fixed_slider_lenght_pspec)
  26. end
  27. feature {} -- Implementation
  28. fixed_slider_lenght_property_property_name: STRING is "fixed-slider-length"
  29. fixed_slider_lenght_pspec: G_PARAM_SPEC is
  30. require has_property (fixed_slider_lenght_property_property_name)
  31. once
  32. create Result.from_external_pointer
  33. (g_object_class_find_property
  34. (g_object_get_class(handle),
  35. fixed_slider_lenght_property_property_name.to_external))
  36. end
  37. end -- class FIXED_SLIDER_LENGHT_PROPERTY