ofc_tooltip.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. include_once 'ofc_bar_base.php';
  3. class tooltip
  4. {
  5. function tooltip(){}
  6. /**
  7. * @param $shadow as boolean. Enable drop shadow.
  8. */
  9. function set_shadow( $shadow )
  10. {
  11. $this->shadow = $shadow;
  12. }
  13. /**
  14. * @param $stroke as integer, border width in pixels (e.g. 5 )
  15. */
  16. function set_stroke( $stroke )
  17. {
  18. $this->stroke = $stroke;
  19. }
  20. /**
  21. * @param $colour as string, HEX colour e.g. '#0000ff'
  22. */
  23. function set_colour( $colour )
  24. {
  25. $this->colour = $colour;
  26. }
  27. /**
  28. * @param $bg as string, HEX colour e.g. '#0000ff'
  29. */
  30. function set_background_colour( $bg )
  31. {
  32. $this->background = $bg;
  33. }
  34. /**
  35. * @param $style as string. A css style.
  36. */
  37. function set_title_style( $style )
  38. {
  39. $this->title = $style;
  40. }
  41. /**
  42. * @param $style as string. A css style.
  43. */
  44. function set_body_style( $style )
  45. {
  46. $this->body = $style;
  47. }
  48. function set_proximity()
  49. {
  50. $this->mouse = 1;
  51. }
  52. function set_hover()
  53. {
  54. $this->mouse = 2;
  55. }
  56. }