Skip to content

Element

Crutiatix edited this page Apr 29, 2017 · 13 revisions

creating: ticuare.element({}) or ticuare.newElement({})

  • Attributes:

    • 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
  • Methods:

Modifications:

  • v0.7.0
    • renamed setContent to Content
    • removed * setContentDimensions*
    • merged setScroll and getScroll to scroll
    • merged setActive and getActive to active
    • merged setVisible and getVisible to visible
    • merged setHorizontalRange and getHorizontalRange to horizontalRange
    • merged setVerticalRange and getVerticalRange to verticalRange
    • renamed setDragBounds to dragBounds
    • merged setIndex and getIndex to index
  • v0.6.0
    • removed center
    • added align
    • renamed show to view
Clone this wiki locally