Commit | Line | Data |
---|---|---|
7f254ad8 AE |
1 | <?php\r |
2 | \r | |
3 | include_once 'ofc_bar_base.php';\r | |
4 | \r | |
5 | class tooltip\r | |
6 | {\r | |
7 | function tooltip(){}\r | |
8 | \r | |
9 | /**\r | |
10 | * @param $shadow as boolean. Enable drop shadow.\r | |
11 | */\r | |
12 | function set_shadow( $shadow )\r | |
13 | {\r | |
14 | $this->shadow = $shadow;\r | |
15 | }\r | |
16 | \r | |
17 | /**\r | |
18 | * @param $stroke as integer, border width in pixels (e.g. 5 )\r | |
19 | */\r | |
20 | function set_stroke( $stroke )\r | |
21 | {\r | |
22 | $this->stroke = $stroke;\r | |
23 | }\r | |
24 | \r | |
25 | /**\r | |
26 | * @param $clash as bolean\r | |
27 | */\r | |
28 | function set_clash( $clash )\r | |
29 | {\r | |
30 | $this->clash = $clash;\r | |
31 | }\r | |
32 | \r | |
33 | /**\r | |
34 | * @param $colour as string, HEX colour e.g. '#0000ff'\r | |
35 | */\r | |
36 | function set_colour( $colour )\r | |
37 | {\r | |
38 | $this->colour = $colour;\r | |
39 | }\r | |
40 | \r | |
41 | /**\r | |
42 | * @param $bg as string, HEX colour e.g. '#0000ff'\r | |
43 | */\r | |
44 | function set_background_colour( $bg )\r | |
45 | {\r | |
46 | $this->background = $bg;\r | |
47 | }\r | |
48 | \r | |
49 | /**\r | |
50 | * @param $style as string. A css style.\r | |
51 | */\r | |
52 | function set_title_style( $style )\r | |
53 | {\r | |
54 | $this->title = $style;\r | |
55 | }\r | |
56 | \r | |
57 | /**\r | |
58 | * @param $style as string. A css style.\r | |
59 | */\r | |
60 | function set_body_style( $style )\r | |
61 | {\r | |
62 | $this->body = $style;\r | |
63 | }\r | |
64 | \r | |
65 | function set_proximity()\r | |
66 | {\r | |
67 | $this->mouse = 1;\r | |
68 | }\r | |
69 | \r | |
70 | function set_hover()\r | |
71 | {\r | |
72 | $this->mouse = 2;\r | |
73 | }\r | |
74 | }\r | |
75 | \r |