Position
class Position
Hold and computes position of objects added to canvas.
Constants
| TOP_LEFT | 
                     Top left of the canvas.  | 
            
| TOP_CENTER | 
                     Top center of the canvas.  | 
            
| TOP_RIGHT | 
                     Top right of the canvas.  | 
            
| CENTER_LEFT | 
                     Center left of the canvas.  | 
            
| CENTER | 
                     Center of the canvas.  | 
            
| CENTER_RIGHT | 
                     Center right of the canvas.  | 
            
| BOTTOM_LEFT | 
                     Center left of the canvas.  | 
            
| BOTTOM_CENTER | 
                     Bottom center of the canvas.  | 
            
| BOTTOM_RIGHT | 
                     Bottom right of the canvas.  | 
            
Methods
                    __construct(string $position = 'center', int $offsetX, int $offsetY)
        
                                            
                
            Position constructor.
                    array
                
                
                    getXY(int $canvasWidth, int $canvasHeight, int $imageWidth, int $imageHeight)
        
                                            
                
            Translate the textual position + offsets into x,y values.
                    string
                
                
                    getText()
        
                                            
                
            No description
                    int
                
                
                    getOffsetY()
        
                                            
                
            No description
                    int
                
                
                    getOffsetX()
        
                                            
                
            No description
Details
        at line         line 69
                            
    __construct(string $position = 'center', int $offsetX, int $offsetY)
        
    
    Position constructor.
        at line         line 86
                            array
    getXY(int $canvasWidth, int $canvasHeight, int $imageWidth, int $imageHeight)
        
    
    Translate the textual position + offsets into x,y values.