iup_menu_separator.e 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. class IUP_MENU_SEPARATOR
  2. -- Creates the separator interface element. It shows a line between two menu
  3. -- items.
  4. -- The separator is ignored when it is part of the definition of the items in a
  5. -- bar menu.
  6. inherit
  7. IUP_MENU_ELEMENT
  8. create {ANY}
  9. separator
  10. feature {ANY}
  11. -- Internal
  12. separator
  13. local
  14. a_separator: POINTER
  15. do
  16. a_separator := int_separator
  17. set_widget(a_separator)
  18. end
  19. feature {}
  20. int_separator: POINTER
  21. -- A new separator
  22. external "plug_in"
  23. alias "{
  24. location: "${sys}/plugins"
  25. module_name: "iup"
  26. feature_name: "IupSeparator()"
  27. }"
  28. end
  29. end
  30. -- The MIT License (MIT)
  31. -- Copyright (c) 2016 by German A. Arias
  32. -- Permission is hereby granted, free of charge, to any person obtaining a copy
  33. -- of this software and associated documentation files (the "Software"), to deal
  34. -- in the Software without restriction, including without limitation the rights
  35. -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  36. -- copies of the Software, and to permit persons to whom the Software is
  37. -- furnished to do so, subject to the following conditions:
  38. --
  39. -- The above copyright notice and this permission notice shall be included in
  40. -- all copies or substantial portions of the Software.
  41. --
  42. -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  43. -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  44. -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  45. -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  46. -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  47. -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  48. -- SOFTWARE.