LinkButton.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="LinkButton" inherits="BaseButton" category="Core" version="3.1">
  3. <brief_description>
  4. Simple button used to represent a link to some resource.
  5. </brief_description>
  6. <description>
  7. This kind of buttons are primarily used when the interaction with the button causes a context change (like linking to a web page).
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. </methods>
  15. <members>
  16. <member name="text" type="String" setter="set_text" getter="get_text">
  17. </member>
  18. <member name="underline" type="int" setter="set_underline_mode" getter="get_underline_mode" enum="LinkButton.UnderlineMode">
  19. </member>
  20. </members>
  21. <constants>
  22. <constant name="UNDERLINE_MODE_ALWAYS" value="0" enum="UnderlineMode">
  23. The LinkButton will always show an underline at the bottom of its text
  24. </constant>
  25. <constant name="UNDERLINE_MODE_ON_HOVER" value="1" enum="UnderlineMode">
  26. The LinkButton will show an underline at the bottom of its text when the mouse cursor is over it.
  27. </constant>
  28. <constant name="UNDERLINE_MODE_NEVER" value="2" enum="UnderlineMode">
  29. The LinkButton will never show an underline at the bottom of its text.
  30. </constant>
  31. </constants>
  32. <theme_items>
  33. <theme_item name="focus" type="StyleBox">
  34. </theme_item>
  35. <theme_item name="font" type="Font">
  36. </theme_item>
  37. <theme_item name="font_color" type="Color">
  38. </theme_item>
  39. <theme_item name="font_color_hover" type="Color">
  40. </theme_item>
  41. <theme_item name="font_color_pressed" type="Color">
  42. </theme_item>
  43. <theme_item name="underline_spacing" type="int">
  44. </theme_item>
  45. </theme_items>
  46. </class>