Parses the input string into a clipping rectangle. The input string should be in the format 'rect( top right bottom left)' where top, right, bottom, and left specify offsets from the respective sides of the box.
top, right, bottom, and left may either have a value or 'auto'. Negative lengths are permitted. The value 'auto' means that a given edge of the clipping region will be the same as the edge of the element's generated box (i. e., 'auto' means the same as '0'.)
Namespace: FMX.RS.SVGUtils
Delphi |
function ParseClipRect( S: String; DefValue: TRSRect; var Inherits: Boolean; |
Parameters
S
Type: String
Input string to parse
DefValue
Type: TRSRect
Default Value. If the string is empty, the default value is returned
Inherits
Type: Boolean
Set to True when the input string contains 'inherit' keyword
UnitFactors
Type: TSVGUnitFactors
Type: TRSRect
If the string is blank, the function returns the default value ( DefValue). If the string contains 'inherits', the function returns the default value and sets the Inherits parameter to true.
|
Reference |