public void draw(){
    	if (this.type==0){ //Rectangle button
    	      if (this.hover==1 || this.toggle==1){
    			  if (this.toggle ==1){
    				     parent.fill(this.clickedColour.getRGB());   
    	   			     parent.stroke(this.clickedBorderColour.getRGB());
    			  }else{
    				  parent.fill(this.toggleColour.getRGB());   
        			  parent.stroke(toggleBorderColour.getRGB());
    			  }    			 
    		 }else{
    			  parent.fill(this.background.getRGB()); 
    			  parent.stroke(borderColour.getRGB());
    		  }    		
    		 parent.strokeWeight(1.5f);
    		 parent.rect(this.x,this.y,this.width,this.height,6);
    		 PFont font = parent.createFont("Sans-Serif",this.fontSize);     	
    	   	 parent.textFont(font);  
    	   	 parent.textAlign(parent.CENTER);
    	   	 parent.fill(this.textColour.getRGB());
    	   	 parent.text(this.label,this.textX,this.textY);  
    	}
    	//TODO: circle radio button (if needed)
    }