1 | <?php |
||
8 | class Crosshair |
||
9 | { |
||
10 | use ColorTrait; |
||
11 | |||
12 | /** |
||
13 | * @var Focused |
||
14 | */ |
||
15 | protected $focused; |
||
16 | |||
17 | use OpacityTrait; |
||
18 | |||
19 | use OrientationTrait; |
||
20 | |||
21 | /** |
||
22 | * @var Selected |
||
23 | */ |
||
24 | protected $selected; |
||
25 | |||
26 | /** |
||
27 | * Value can be : |
||
28 | * 'both' : display on both focus and selection |
||
29 | * 'focus' : display on focus only |
||
30 | * 'selection' : display on selection only. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $trigger; |
||
35 | |||
36 | /** |
||
37 | * Crosshair constructor. |
||
38 | */ |
||
39 | 2 | public function __construct() |
|
44 | |||
45 | /** |
||
46 | * @return Focused |
||
47 | */ |
||
48 | 1 | public function getFocused() |
|
52 | |||
53 | /** |
||
54 | * @return Selected |
||
55 | */ |
||
56 | 1 | public function getSelected() |
|
60 | |||
61 | /** |
||
62 | * @param string $trigger |
||
63 | * |
||
64 | * @return $this |
||
65 | */ |
||
66 | 1 | public function setTrigger($trigger) |
|
72 | } |
||
73 |