iup_widget_front_image_2.e 2.1 KB

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