luxe: ui/scroll.control
import "luxe: ui/scroll.control" for Datano docs found
Variables
Section titled “Variables”var units : Float2 = [32, 32]UIScroll
Section titled “UIScroll”import "luxe: ui/scroll.control" for UIScrollno docs found
UIScroll.create(.)
Section titled “UIScroll.create(.)”UIScroll.create(ui : Entity) : Controlno docs found
UIScroll.add(..)
Section titled “UIScroll.add(..)”UIScroll.add(scroll : Control, control : Control) : NoneAdd a given control to the scroll area
UIScroll.remove(..)
Section titled “UIScroll.remove(..)”UIScroll.remove(scroll : Control, control : Control) : NoneRemove a given control from the scroll area
UIScroll.count(.)
Section titled “UIScroll.count(.)”UIScroll.count(scroll : Control) : NumGet the number of controls in the scroll
UIScroll.clear(..)
Section titled “UIScroll.clear(..)”UIScroll.clear(scroll : Control, action : UIClearAction) : NoneClear the scroll, with the given action to do with the removed controls
UIScroll.get(..)
Section titled “UIScroll.get(..)”UIScroll.get(scroll : Control, index : Num) : ControlGet the control at the given index inside the scroll
UIScroll.index(..)
Section titled “UIScroll.index(..)”UIScroll.index(scroll : Control, control : Control) : NumGet the index of the given control inside the scroll
UIScroll.refresh(.)
Section titled “UIScroll.refresh(.)”UIScroll.refresh(scroll : Control) : NoneRefresh the scroll, called after changes (is this still needed?)
UIScroll.set_percent(…)
Section titled “UIScroll.set_percent(…)”UIScroll.set_percent(scroll : Control, vertical : Num, horizontal : Num) : NoneSets the amount of scroll in relative percent, 0…1
UIScroll.set_scroll(…)
Section titled “UIScroll.set_scroll(…)”UIScroll.set_scroll(scroll : Control, vertical : Num, horizontal : Num) : NoneReturns the amount of scroll in absolute units
UIScroll.set_percent_v(..)
Section titled “UIScroll.set_percent_v(..)”UIScroll.set_percent_v(scroll : Control, vertical : Num) : NoneSets the vertical amount of scroll in relative percent, 0…1
UIScroll.set_percent_h(..)
Section titled “UIScroll.set_percent_h(..)”UIScroll.set_percent_h(scroll : Control, horizontal : Num) : NoneSets the horizontal amount of scroll in relative percent, 0…1
UIScroll.set_scroll_v(..)
Section titled “UIScroll.set_scroll_v(..)”UIScroll.set_scroll_v(scroll : Control, vertical : Num) : NoneSets the vertical amount of scroll in absolute units
UIScroll.set_scroll_h(..)
Section titled “UIScroll.set_scroll_h(..)”UIScroll.set_scroll_h(scroll : Control, horizontal : Num) : NoneSets the horizontal amount of scroll in absolute units
UIScroll.get_percent_v(.)
Section titled “UIScroll.get_percent_v(.)”UIScroll.get_percent_v(scroll : Control) : NumReturns the vertical amount of scroll in relative percent, 0…1
UIScroll.get_percent_h(.)
Section titled “UIScroll.get_percent_h(.)”UIScroll.get_percent_h(scroll : Control) : NumReturns the horizontal amount of scroll in relative percent, 0…1
UIScroll.get_scroll_v(.)
Section titled “UIScroll.get_scroll_v(.)”UIScroll.get_scroll_v(scroll : Control) : NumReturns the vertical amount of scroll in absolute units
UIScroll.get_scroll_h(.)
Section titled “UIScroll.get_scroll_h(.)”UIScroll.get_scroll_h(scroll : Control) : NumReturns the horizontal amount of scroll in absolute units
UIScroll.can_scroll_v(.)
Section titled “UIScroll.can_scroll_v(.)”UIScroll.can_scroll_v(scroll : Control) : BoolReturns true if there’s any space to scroll vertically
UIScroll.can_scroll_h(.)
Section titled “UIScroll.can_scroll_h(.)”UIScroll.can_scroll_h(scroll : Control) : BoolReturns true if there’s any space to scroll horizontally