1
0
mirror of https://github.com/AR2000AR/openComputers_codes.git synced 2025-09-07 22:21:14 +02:00
Files
2023-01-24 15:18:19 +01:00

60 lines
1.1 KiB
Markdown

# 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