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:
61
libGUIDoc/widget/Rectangle.md
Normal file
61
libGUIDoc/widget/Rectangle.md
Normal file
@@ -0,0 +1,61 @@
|
||||
# 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
|
Reference in New Issue
Block a user