# Rectangle([Widget](Widget.md)) Basic rectangle shape. ## Constructor - x : int - y : int - width : int - height : int - color : int ## Inherited public methods - [setX](Widget.md#setx) - [setY](Widget.md#sety) - [setPos](Widget.md#setpos) - [getX](Widget.md#getx) - [getY](Widget.md#gety) - [getPos](Widget.md#getpos) - [setCallback](Widget.md#setcallback) - [draw](Widget.md#draw) - [collide](Widget.md#collide) ## Public methods ### setWidth #### Arguments - width : int --- ### setHeight #### Arguments - height : int --- ### setSize #### Arguments - width : int - height : int --- ### setColor #### Arguments - color : int. RGB color --- ### getWidth #### Return - width : int --- ### getHeight #### Return - height: int --- ### getSize #### Return - width : int - height : int --- ### getColor #### Return - color : int. RGB color