Constraint
in package
Table of Contents
Constants
- ASPECTRATIO = 1
- Bit value of aspect ratio constraint
- UPSIZE = 2
- Bit value of upsize constraint
Properties
Methods
- __construct() : mixed
- Create a new constraint based on size
- aspectRatio() : void
- Fixes aspect ratio in current constraint
- fix() : void
- Fix the given argument in current constraint
- getSize() : Size
- Returns current size of constraint
- isFixed() : bool
- Checks if given argument is fixed in current constraint
- upsize() : void
- Fixes possibility to size up in current constraint
Constants
ASPECTRATIO
Bit value of aspect ratio constraint
public
mixed
ASPECTRATIO
= 1
UPSIZE
Bit value of upsize constraint
public
mixed
UPSIZE
= 2
Properties
$fixed
Integer value of fixed parameters
private
int
$fixed
= 0
$size
Constraint size
private
Size
$size
Methods
__construct()
Create a new constraint based on size
public
__construct(Size $size) : mixed
Parameters
- $size : Size
aspectRatio()
Fixes aspect ratio in current constraint
public
aspectRatio() : void
fix()
Fix the given argument in current constraint
public
fix(int $type) : void
Parameters
- $type : int
getSize()
Returns current size of constraint
public
getSize() : Size
Return values
SizeisFixed()
Checks if given argument is fixed in current constraint
public
isFixed(int $type) : bool
Parameters
- $type : int
Return values
boolupsize()
Fixes possibility to size up in current constraint
public
upsize() : void