Documentation

Constraint
in package

Table of Contents

Constants

ASPECTRATIO  = 1
Bit value of aspect ratio constraint
UPSIZE  = 2
Bit value of upsize constraint

Properties

$fixed  : int
Integer value of fixed parameters
$size  : Size
Constraint size

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

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

isFixed()

Checks if given argument is fixed in current constraint

public isFixed(int $type) : bool
Parameters
$type : int
Return values
bool

upsize()

Fixes possibility to size up in current constraint

public upsize() : void

        
On this page

Search results