trait CornersTrait

Trait CornersTrait

Methods

topLeft(int $radius)

Sets top-left corner radius

topRight(int $radius)

Sets top-right corner radius.

bottomRight(int $radius)

Sets bottom-right corner radius.

bottomLeft(int $radius)

Sets bottom-left corner radius.

setRadius(int $radius)

Sets radius for all corners.

setSymmetricRadius(int $topLeftBottomRight, int $topRightBottomLeft)

Sets radius separately for (top-left, bottom-right) and (top-right, bottom-left) corners.

setPartiallySymmetricRadius(int $topLeft, int $topRightBottomLeft, int $bottomRight)

Sets radius separately for top-left, (top-right, bottom-left) and bottom-right corners.

Details

CornersTrait topLeft(int $radius)

Sets top-left corner radius

Parameters

Name Type Description
$radius int Radius length in pixels

Return Value

CornersTrait

CornersTrait topRight(int $radius)

Sets top-right corner radius.

Parameters

Name Type Description
$radius int Radius length in pixels

Return Value

CornersTrait

CornersTrait bottomRight(int $radius)

Sets bottom-right corner radius.

Parameters

Name Type Description
$radius int Radius length in pixels

Return Value

CornersTrait

CornersTrait bottomLeft(int $radius)

Sets bottom-left corner radius.

Parameters

Name Type Description
$radius int Radius length in pixels

Return Value

CornersTrait

CornersTrait setRadius(int $radius)

Sets radius for all corners.

Parameters

Name Type Description
$radius int Radius length in pixels

Return Value

CornersTrait

CornersTrait setSymmetricRadius(int $topLeftBottomRight, int $topRightBottomLeft)

Sets radius separately for (top-left, bottom-right) and (top-right, bottom-left) corners.

Parameters

Name Type Description
$topLeftBottomRight int Radius for top-left and bottom-right corners
$topRightBottomLeft int Radius for top-right and bottom-left corners

Return Value

CornersTrait

CornersTrait setPartiallySymmetricRadius(int $topLeft, int $topRightBottomLeft, int $bottomRight)

Sets radius separately for top-left, (top-right, bottom-left) and bottom-right corners.

Parameters

Name Type Description
$topLeft int Radius for top-left corner
$topRightBottomLeft int Radius for top-right and bottom-left corners
$bottomRight int Radius for bottom-right corner

Return Value

CornersTrait