mirror of
https://github.com/AR2000AR/openComputers_codes.git
synced 2025-09-08 14:41:14 +02:00
[libGUI-doc] documentation
This commit is contained in:
59
libGUIDoc/widget/Text.md
Normal file
59
libGUIDoc/widget/Text.md
Normal file
@@ -0,0 +1,59 @@
|
||||
# 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
|
||||
|
Reference in New Issue
Block a user