Code example for Region

Methods: getBounds

0
    /** 
     * {@inheritDoc}  
     */ 
    @Deprecated 
    public RectShape getBounds() {
        return new RectShape(mRegion.getBounds());
    } 
     
    /** 
     * {@inheritDoc}  
     */ 
    public void getBounds(RectShape rect) {
        rect.setRect(mRegion.getBounds());
    } 
 
    /** 
     * {@inheritDoc}  
     */ 
    public boolean intersects(float x, float y, float width, float height) {
        if (mRegion.isEmpty()) {
            return false;