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