# Text([Rectangle](Rectangle.md)) Display text. ## Constructor - x : int - y : int - width : int - height : int - backgroundColor : int - text : string ## 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) - [setWidth](Rectangle.md#setwidth) - [setHeight](Rectangle.md#setheight) - [setSize](Rectangle.mdd#setsize) - [setColor](Rectangle.md#setcolor) - [getWidth](Rectangle.md#getwidth) - [getHeight](Rectangle.md#getheight) - [getSize](Rectangle.mdd#getsize) - [getColor](Rectangle.md#getcolor) ## Public methods ### getText #### Return - text : string --- ### setText #### Arguments - text : string --- ### getForeground #### Return - color : int. RGB color --- ### getBackground #### Return - color : int. RGB color --- ### setForeground #### Arguments - color : int. RGB color --- ### setBackground #### Arguments - color : int. RGB color