iup_menu_separator.e 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 {NONE}
  20. int_separator: POINTER
  21. -- A new separator
  22. external
  23. "C inline use %"eiffel-iup.h%""
  24. alias
  25. "return IupSeparator();"
  26. end
  27. end
  28. -- The MIT License (MIT)
  29. -- Copyright (c) 2016, 2019 by German A. Arias
  30. -- Permission is hereby granted, free of charge, to any person obtaining a copy
  31. -- of this software and associated documentation files (the "Software"), to deal
  32. -- in the Software without restriction, including without limitation the rights
  33. -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  34. -- copies of the Software, and to permit persons to whom the Software is
  35. -- furnished to do so, subject to the following conditions:
  36. --
  37. -- The above copyright notice and this permission notice shall be included in
  38. -- all copies or substantial portions of the Software.
  39. --
  40. -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  41. -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  42. -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  43. -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  44. -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  45. -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  46. -- SOFTWARE.