-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathDrawableInterface.php
More file actions
63 lines (50 loc) · 1.32 KB
/
DrawableInterface.php
File metadata and controls
63 lines (50 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
declare(strict_types=1);
namespace Intervention\Image\Interfaces;
interface DrawableInterface
{
/**
* Position of the drawable object
*/
public function position(): PointInterface;
/**
* Set position of the drawable object
*/
public function setPosition(PointInterface $position): self;
/**
* Set the background color of the drawable object
*/
public function setBackgroundColor(mixed $color): self;
/**
* Return background color of drawable object
*/
public function backgroundColor(): mixed;
/**
* Determine if a background color was set
*/
public function hasBackgroundColor(): bool;
/**
* Set border color & size of the drawable object
*/
public function setBorder(mixed $color, int $size = 1): self;
/**
* Set border size of the drawable object
*/
public function setBorderSize(int $size): self;
/**
* Set border color of the drawable object
*/
public function setBorderColor(mixed $color): self;
/**
* Get border size
*/
public function borderSize(): int;
/**
* Get border color of drawable object
*/
public function borderColor(): mixed;
/**
* Determine if the drawable object has a border
*/
public function hasBorder(): bool;
}