|
static | parse ($c) |
|
static | evaluate ($coord, $dim, $sec_dim=null) |
|
static | fix ($value, $dim, $sec_dim=null) |
|
|
static | $coord_align = array('left', 'center', 'right', 'top', 'middle', 'bottom') |
|
static | $coord_numeric = array('[0-9]+', '[0-9]+\.[0-9]+', '[0-9]+%', '[0-9]+\.[0-9]+%') |
|
◆ evaluate()
static evaluate |
( |
|
$coord, |
|
|
|
$dim, |
|
|
|
$sec_dim = null |
|
) |
| |
|
static |
Evaluates the $coord relatively to $dim
- Parameters
-
string | $coord | A numeric value or percent string |
int | $dim | Dimension |
int | $sec_dim | Secondary dimension (for align) |
- Returns
- int Calculated value
◆ fix()
static fix |
( |
|
$value, |
|
|
|
$dim, |
|
|
|
$sec_dim = null |
|
) |
| |
|
static |
Calculates and fixes a smart coordinate into a numeric value
- Parameters
-
mixed | $value | Smart coordinate, relative to $dim |
int | $dim | Coordinate to which $value is relative |
int | $sec_dim | Secondary dimension (for align) |
- Returns
- int Calculated value
◆ parse()
Parses a numeric or string representation of a corrdinate into a structure
- Parameters
-
string | $coord | Smart coordinate |
- Returns
- array Parsed smart coordinate
◆ $coord_align
$coord_align = array('left', 'center', 'right', 'top', 'middle', 'bottom') |
|
staticprotected |
◆ $coord_numeric
$coord_numeric = array('[0-9]+', '[0-9]+\.[0-9]+', '[0-9]+%', '[0-9]+\.[0-9]+%') |
|
staticprotected |
The documentation for this class was generated from the following file:
- C:/xoops2511b2/htdocs/class/libraries/vendor/smottt/wideimage/lib/WideImage/Coordinate.php