Implemented support for element alignment

Also specifying the reference point location (the
location of the element that's put at posx and
posy) for each element.
This commit is contained in:
Shamim Rezaie 2015-07-30 14:51:50 +10:00 committed by Mark Nelson
parent 7634568df1
commit 039e8bca37
7 changed files with 115 additions and 10 deletions

View file

@ -50,6 +50,21 @@ define('CUSTOMCERT_PER_PAGE', 20);
*/
define('CUSTOMCERT_MAX_PER_PAGE', 300);
/**
* @var int the top-left of element
*/
define('CUSTOMCERT_REF_POINT_TOPLEFT', 0);
/**
* @var int the top-center of element
*/
define('CUSTOMCERT_REF_POINT_TOPCENTER', 1);
/**
* @var int the top-left of element
*/
define('CUSTOMCERT_REF_POINT_TOPRIGHT', 2);
/**
* Handles setting the protection field for the customcert
*