iup_widget_back_image_2.e 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. deferred class IUP_WIDGET_BACK_IMAGE_2
  2. -- Command to handle the additional features to back images in flat controls.
  3. inherit
  4. IUP_WIDGET_BACK_IMAGE_1
  5. insert
  6. IUP_INTERFACE
  7. feature {ANY}
  8. set_back_image_highlight (name: STRING)
  9. -- (non inheritable): background image name of the element in highlight
  10. -- state. If it is not defined then the BACKIMAGE is used.
  11. do
  12. iup_open.set_attribute(Current, "BACKIMAGEHIGHLIGHT", name)
  13. end
  14. set_back_image_press (name: STRING)
  15. -- (non inheritable): background image name of the element in pressed
  16. -- state. If it is not defined then the BACKIMAGE is used.
  17. do
  18. iup_open.set_attribute(Current, "BACKIMAGEPRESS", name)
  19. end
  20. end
  21. -- The MIT License (MIT)
  22. -- Copyright (c) 2018, 2019 by German A. Arias
  23. -- Permission is hereby granted, free of charge, to any person obtaining a copy
  24. -- of this software and associated documentation files (the "Software"), to deal
  25. -- in the Software without restriction, including without limitation the rights
  26. -- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  27. -- copies of the Software, and to permit persons to whom the Software is
  28. -- furnished to do so, subject to the following conditions:
  29. --
  30. -- The above copyright notice and this permission notice shall be included in
  31. -- all copies or substantial portions of the Software.
  32. --
  33. -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  34. -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  35. -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  36. -- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  37. -- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  38. -- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  39. -- SOFTWARE.