mirror of
https://github.com/keharriso/love-nuklear.git
synced 2025-09-11 00:27:48 -04:00
Add transform function documentation
parent
e8418b1496
commit
974901eada
1 changed files with 27 additions and 0 deletions
|
@ -61,6 +61,33 @@ End the current frame. Call this once every [love.update](https://love2d.org/wik
|
|||
|
||||
***
|
||||
|
||||
## Transform
|
||||
|
||||
All transform functions must be called after ui:frameBegin and before any non-transform functions.
|
||||
|
||||
#### ui:rotate(angle)
|
||||
Rotate the UI by `angle` (in radians).
|
||||
|
||||
See [love.graphics.rotate](https://love2d.org/wiki/love.graphics.rotate).
|
||||
|
||||
#### ui:scale(scale)
|
||||
#### ui:scale(scaleX, scaleY)
|
||||
Scale the UI by `scale` in both X and Y directions, or specify `scaleX` and `scaleY` separately.
|
||||
|
||||
See [love.graphics.scale](https://love2d.org/wiki/love.graphics.scale).
|
||||
|
||||
#### ui:shear(shearX, shearY)
|
||||
Shear the UI by `shearX` in the X direction and `shearY` in the Y direction.
|
||||
|
||||
See [love.graphics.shear](https://love2d.org/wiki/love.graphics.shear).
|
||||
|
||||
#### ui:translate(dx, dy)
|
||||
Translate the UI by `dx` in the X direction and `dy` in the Y direction.
|
||||
|
||||
See [love.graphics.translate](https://love2d.org/wiki/love.graphics.translate).
|
||||
|
||||
***
|
||||
|
||||
## Window
|
||||
|
||||
#### open = ui:windowBegin(title, x, y, width, height, [flags](#flags)...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue