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

62 lines
847 B
Markdown

# 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