UITree.new

Inputs:

  • parentSizer [UISizer]:
  • rootItem [string]:
  • xPosition [integer?]: [optional, default=-1]
  • yPosition [integer?]: [optional, default=-1]
  • width [integer?]: [optional, default=-1]
  • height [integer?]: [optional, default=-1]
  • borderDirection [integer?]: (BorderDirection.ALL, BorderDirection.TOP, BorderDirection.BOTTOM, BorderDirection.LEFT or BorderDirection.RIGHT) [optional, default=BorderDirection.NONE]
  • borderSize [integer?]: in pixels [optional, default=0]
  • proportion [integer?]: [optional, default=0]

Outputs:

  • uiTree [UITree]:

UITree:appendItem

Inputs:

  • text [string]:
  • parentId [object?]: [optional, default=NULL]
  • userData [object?]: [optional, default=NULL]

Outputs:

  • itemId [object]:

UITree:collapseAll

UITree:collapseItem

Inputs:

  • itemId [object]:

UITree:destroy

UITree:expandAll

UITree:expandItem

Inputs:

  • itemId [object]:

UITree:getChildItemAt

Inputs:

  • itemId [object]: The item for which the child handle should be returned.
  • childIndex [integer]: Index n of the child handle.

Outputs:

  • itemId [object]:

UITree:getEnabled

Outputs:

  • [boolean]:

UITree:getItemText

Inputs:

  • itemId [object]:

Outputs:

  • text [string]: Label of the element

UITree:getItemUserData

Inputs:

  • itemId [object]:

Outputs:

  • userData [object]:

UITree:getNumOfChildItems

Inputs:

  • itemId [object]: The item for which the number of children should be returned.

Outputs:

  • numOfChildItems [integer]:

UITree:getRootItem

Outputs:

  • itemId [object]:

UITree:getSelectedItem

Outputs:

  • itemId [object]:

UITree:isVisible

Outputs:

  • [boolean]:

UITree:removeItem

Inputs:

  • itemId [object]:

UITree:scrollToBottom

UITree:scrollToTop

UITree:setEnabled

Inputs:

  • enabled [boolean?]: [optional, default=true]

UITree:setItemBackgroundColor

Inputs:

  • itemId [object]: The id of the item for which the background color should be set
  • red [float]: red (0.0 - 1.0)
  • green [float]: green (0.0 - 1.0)
  • blue [float]: blue (0.0 - 1.0)
  • alpha [float?]: alpha (0.0 - 1.0) [optional, default=1.0]

UITree:setItemText

Inputs:

  • itemId [object]:
  • text [string]: New label of the tree item

UITree:setItemTextColor

Inputs:

  • itemId [object]: The id of the item for which the text color should be set
  • red [float]: red (0.0 - 1.0)
  • green [float]: green (0.0 - 1.0)
  • blue [float]: blue (0.0 - 1.0)
  • alpha [float?]: alpha (0.0 - 1.0) [optional, default=1.0]

UITree:setItemUserData

Inputs:

  • itemId [object]:
  • userData [object?]: userData [optional, default=NULL]

UITree:setOnItemFoldStateChangedCallback

Inputs:

  • callbackFunction [object]: function(itemId, isExpanded)
  • functionObject [object?]: functionObject [optional, default=NULL]

UITree:setOnItemSelectCallback

Inputs:

  • callbackFunction [object]: function(itemId)
  • functionObject [object?]: functionObject [optional, default=NULL]

UITree:setSelectedItem

Inputs:

  • itemId [object]:

UITree:setToolTip

Inputs:

  • tooltip [string]:

UITree:setVisible

Inputs:

  • visible [boolean?]: [optional, default=true]

Last updated 12 Apr 2025, 16:09 +0200 . history