-
Notifications
You must be signed in to change notification settings - Fork 2
Element
Crutiatix edited this page Apr 13, 2017
·
13 revisions
creating:
ticuare.element({})
or ticuare.newElement({})
-
- x = [number] - x position
- y = [number] - y position
- w = [number] - width
- h = [number] - height
- align = [table] - table containing keys x and y defining align. Options: 0,1,2.
- colors = [table] - array of 3 colors defined as numbers in range 0-15
- border = [table] - table containing attributes of element's border
- shadow = [table] - table containing attributes of element's shadow
- text = [table] - table containing attributes of element's text
- icon = [table] - table containing attributes of element's icon
- offset = [table] - table containing keys x and y defining offset of element
- drag = [table] - table containing attributes defining draging of element
- content = [table] - table containing attributes defining content of element
- mouse events = [function] - functions called on specific mouse event
-
- :style() = apply specified style on element
- :group() = add element to specified group
- :anchor() = anchor element to another element
- :setContent()
- :setContentDimensions()
- :setScroll()
- :getScroll()
- :setActive()
- :getActive()
- :enable()
- :disable()
- :setVisible()
- :getVisible()
- :view()
- :hide()
- :drawSelf() = draw only this element
- :setHorizontalRange() = set normalized number (0-1) of position of element between horizontal bounds
- :getHorizontalRange() = return normalized number (0-1) of position of element between horizontal bounds
- :setVerticalRange() = set normalized number (0-1) of position of element between horizontal bounds
- :getVerticalRange() = return normalized number (0-1) of position of element between horizontal bounds
- :setDragBounds() = set boundaries of dragging. Same as attribute drag
- :setIndex()
- :getIndex()
- :toFront()
- :remove() = delete element from ticuare