mirror of
https://github.com/keharriso/love-nuklear.git
synced 2025-09-11 00:27:48 -04:00
Add *GetScroll and *SetScroll functions
parent
631c5372ec
commit
93ae41347b
1 changed files with 20 additions and 0 deletions
|
@ -132,6 +132,12 @@ Return the bounds of the current window's content region.
|
||||||
#### focused = ui:windowHasFocus()
|
#### focused = ui:windowHasFocus()
|
||||||
Return `true` if the current window is focused, and `false` otherwise.
|
Return `true` if the current window is focused, and `false` otherwise.
|
||||||
|
|
||||||
|
#### sx, sy = ui:windowGetScroll()
|
||||||
|
Get the scroll position (`sx`, `sy`) of the current window.
|
||||||
|
|
||||||
|
#### ui:windowSetScroll(sx, sy)
|
||||||
|
Set the scroll position (`sx`, `sy`) of the current window.
|
||||||
|
|
||||||
#### collapsed = ui:windowIsCollapsed(name)
|
#### collapsed = ui:windowIsCollapsed(name)
|
||||||
Return `true` if the given window is collapsed, and `false` otherwise.
|
Return `true` if the given window is collapsed, and `false` otherwise.
|
||||||
|
|
||||||
|
@ -153,6 +159,8 @@ Return `true` if any window is hovered by the mouse, and `false` otherwise.
|
||||||
#### active = ui:itemIsAnyActive()
|
#### active = ui:itemIsAnyActive()
|
||||||
Return `true` if any item is active, and `false` otherwise.
|
Return `true` if any item is active, and `false` otherwise.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### ui:windowSetBounds(name, x, y, width, height)
|
#### ui:windowSetBounds(name, x, y, width, height)
|
||||||
Set the bounds of the given window.
|
Set the bounds of the given window.
|
||||||
|
|
||||||
|
@ -346,6 +354,12 @@ body(ui)
|
||||||
ui:groupEnd()
|
ui:groupEnd()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### sx, sy = ui:groupGetScroll(id)
|
||||||
|
Get the scroll position (`sx`, `sy`) of the group with the given `id`.
|
||||||
|
|
||||||
|
#### ui:groupSetScroll(id, sx, sy)
|
||||||
|
Set the scroll position (`sx`, `sy`) of the group with the given `id`.
|
||||||
|
|
||||||
### Trees
|
### Trees
|
||||||
|
|
||||||
#### open = ui:treePush('node'/'tab', title)
|
#### open = ui:treePush('node'/'tab', title)
|
||||||
|
@ -416,6 +430,12 @@ if ui:popupBegin(...) then
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### sx, sy = ui:popupGetScroll()
|
||||||
|
Get the scroll position (`sx`, `sy`) of the current popup.
|
||||||
|
|
||||||
|
#### ui:popupSetScroll(sx, sy)
|
||||||
|
Set the scroll position (`sx`, `sy`) of the current popup.
|
||||||
|
|
||||||
### Context Menus
|
### Context Menus
|
||||||
|
|
||||||
#### open = ui:contextualBegin(width, height, triggerX, triggerY, triggerWidth, triggerHeight, [flags](#flags)...)
|
#### open = ui:contextualBegin(width, height, triggerX, triggerY, triggerWidth, triggerHeight, [flags](#flags)...)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue