woocommerce-pos
/
vendor_prefixed
/
dompdf
/
php-svg-lib
/
src
/
Svg
/
Surface
/
SurfaceInterface.php
SurfaceInterface.php in WCPOS – Point of Sale (POS) plugin for WooCommerce 1.10.7, at vendor_prefixed/dompdf/php-svg-lib/src/Svg/Surface/SurfaceInterface.php
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @package php-svg-lib |
| 5 | * @link http://github.com/dompdf/php-svg-lib |
| 6 | * @license GNU LGPLv3+ http://www.gnu.org/copyleft/lesser.html |
| 7 | */ |
| 8 | namespace WCPOS\Vendor\Svg\Surface; |
| 9 | |
| 10 | use WCPOS\Vendor\Svg\Style; |
| 11 | /** |
| 12 | * Interface Surface, like CanvasRenderingContext2D |
| 13 | * |
| 14 | * @package Svg |
| 15 | */ |
| 16 | interface SurfaceInterface |
| 17 | { |
| 18 | public function save(); |
| 19 | public function restore(); |
| 20 | // transformations (default transform is the identity matrix) |
| 21 | public function scale($x, $y); |
| 22 | public function rotate($angle); |
| 23 | public function translate($x, $y); |
| 24 | public function transform($a, $b, $c, $d, $e, $f); |
| 25 | // path ends |
| 26 | public function beginPath(); |
| 27 | public function closePath(); |
| 28 | public function fill(); |
| 29 | public function stroke(bool $close = \false); |
| 30 | public function endPath(); |
| 31 | public function fillStroke(bool $close = \false); |
| 32 | public function clip(); |
| 33 | // text (see also the CanvasDrawingStyles interface) |
| 34 | public function fillText($text, $x, $y, $maxWidth = null); |
| 35 | public function strokeText($text, $x, $y, $maxWidth = null); |
| 36 | public function measureText($text); |
| 37 | // drawing images |
| 38 | public function drawImage($image, $sx, $sy, $sw = null, $sh = null, $dx = null, $dy = null, $dw = null, $dh = null); |
| 39 | // paths |
| 40 | public function lineTo($x, $y); |
| 41 | public function moveTo($x, $y); |
| 42 | public function quadraticCurveTo($cpx, $cpy, $x, $y); |
| 43 | public function bezierCurveTo($cp1x, $cp1y, $cp2x, $cp2y, $x, $y); |
| 44 | public function arcTo($x1, $y1, $x2, $y2, $radius); |
| 45 | public function circle($x, $y, $radius); |
| 46 | public function arc($x, $y, $radius, $startAngle, $endAngle, $anticlockwise = \false); |
| 47 | public function ellipse($x, $y, $radiusX, $radiusY, $rotation, $startAngle, $endAngle, $anticlockwise); |
| 48 | // Rectangle |
| 49 | public function rect($x, $y, $w, $h, $rx = 0, $ry = 0); |
| 50 | public function fillRect($x, $y, $w, $h); |
| 51 | public function strokeRect($x, $y, $w, $h); |
| 52 | public function setStyle(Style $style); |
| 53 | /** |
| 54 | * @return Style |
| 55 | */ |
| 56 | public function getStyle(); |
| 57 | public function setFont($family, $style, $weight); |
| 58 | } |
| 59 |