wxTreeCtrl

See external documentation: wxTreeCtrl.

See external documentation: wxTreeCtrl.

Note: The representation of treeItemId() have changed from the original class implementation to be an semi-opaque type,Equality between TreeItemId's can be tested and zero means that the TreeItem is invalid.

Types


wxTreeCtrl() = wx:wx_object()

Functions


new() -> wxTreeCtrl()

See external documentation.

new(Parent) -> wxTreeCtrl()

  • Parent = wxWindow() (see module wxWindow)

Equivalent to new(Parent, []).

new(Parent, Option::[Option]) -> wxTreeCtrl()

  • Parent = wxWindow() (see module wxWindow)
  • Option = {id, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx_object() (see module wx)}

See external documentation.

addRoot(This, Text) -> integer()

  • This = wxTreeCtrl()
  • Text = chardata() (see module unicode)

Equivalent to addRoot(This, Text, []).

addRoot(This, Text, Option::[Option]) -> integer()

  • This = wxTreeCtrl()
  • Text = chardata() (see module unicode)
  • Option = {image, integer()} | {selectedImage, integer()} | {data, term()}

See external documentation.

appendItem(This, Parent, Text) -> integer()

  • This = wxTreeCtrl()
  • Parent = integer()
  • Text = chardata() (see module unicode)

appendItem(This, Parent, Text, Option::[Option]) -> integer()

  • This = wxTreeCtrl()
  • Parent = integer()
  • Text = chardata() (see module unicode)
  • Option = {image, integer()} | {selectedImage, integer()} | {data, term()}

See external documentation.

assignImageList(This, ImageList) -> ok

  • This = wxTreeCtrl()
  • ImageList = wxImageList() (see module wxImageList)

See external documentation.

assignStateImageList(This, ImageList) -> ok

  • This = wxTreeCtrl()
  • ImageList = wxImageList() (see module wxImageList)

See external documentation.

collapse(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

collapseAndReset(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

create(This, Parent) -> boolean()

  • This = wxTreeCtrl()
  • Parent = wxWindow() (see module wxWindow)

Equivalent to create(This, Parent, []).

create(This, Parent, Option::[Option]) -> boolean()

  • This = wxTreeCtrl()
  • Parent = wxWindow() (see module wxWindow)
  • Option = {id, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx_object() (see module wx)}

See external documentation.

delete(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

deleteAllItems(This) -> ok

  • This = wxTreeCtrl()

See external documentation.

deleteChildren(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

editLabel(This, Item) -> wxTextCtrl() (see module wxTextCtrl)

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

ensureVisible(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

expand(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getBoundingRect(This, Item, Rect) -> boolean()

  • This = wxTreeCtrl()
  • Item = integer()
  • Rect = {X::integer(), Y::integer(), W::integer(), H::integer()}

getBoundingRect(This, Item, Rect, Option::[Option]) -> boolean()

  • This = wxTreeCtrl()
  • Item = integer()
  • Rect = {X::integer(), Y::integer(), W::integer(), H::integer()}
  • Option = {textOnly, boolean()}

See external documentation.

getChildrenCount(This, Item) -> integer()

  • This = wxTreeCtrl()
  • Item = integer()

getChildrenCount(This, Item, Option::[Option]) -> integer()

  • This = wxTreeCtrl()
  • Item = integer()
  • Option = {recursively, boolean()}

See external documentation.

getCount(This) -> integer()

  • This = wxTreeCtrl()

See external documentation.

getEditControl(This) -> wxTextCtrl() (see module wxTextCtrl)

  • This = wxTreeCtrl()

See external documentation.

getFirstChild(This, Item) -> Result

  • Result = {Res::integer(), Cookie::integer()}
  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getNextChild(This, Item, Cookie) -> Result

  • Result = {Res::integer(), Cookie::integer()}
  • This = wxTreeCtrl()
  • Item = integer()
  • Cookie = integer()

See external documentation.

getFirstVisibleItem(This) -> integer()

  • This = wxTreeCtrl()

See external documentation.

getImageList(This) -> wxImageList() (see module wxImageList)

  • This = wxTreeCtrl()

See external documentation.

getIndent(This) -> integer()

  • This = wxTreeCtrl()

See external documentation.

getItemBackgroundColour(This, Item) -> wx_colour4() (see module wx)

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getItemData(This, Item) -> term()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getItemFont(This, Item) -> wxFont() (see module wxFont)

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getItemImage(This, Item) -> integer()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getItemImage(This, Item, Option::[Option]) -> integer()

  • This = wxTreeCtrl()
  • Item = integer()
  • Option = {which, wx_enum() (see module wx)}

See external documentation.
Which = ?wxTreeItemIcon_Normal | ?wxTreeItemIcon_Selected | ?wxTreeItemIcon_Expanded | ?wxTreeItemIcon_SelectedExpanded | ?wxTreeItemIcon_Max

getItemText(This, Item) -> charlist() (see module unicode)

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getItemTextColour(This, Item) -> wx_colour4() (see module wx)

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getLastChild(This, Item) -> integer()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getNextSibling(This, Item) -> integer()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getNextVisible(This, Item) -> integer()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getItemParent(This, Item) -> integer()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getPrevSibling(This, Item) -> integer()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getPrevVisible(This, Item) -> integer()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

getRootItem(This) -> integer()

  • This = wxTreeCtrl()

See external documentation.

getSelection(This) -> integer()

  • This = wxTreeCtrl()

See external documentation.

getSelections(This) -> Result

  • Result = {Res::integer(), Val::[integer()]}
  • This = wxTreeCtrl()

See external documentation.

getStateImageList(This) -> wxImageList() (see module wxImageList)

  • This = wxTreeCtrl()

See external documentation.

hitTest(This, Point) -> integer()

  • This = wxTreeCtrl()
  • Point = {X::integer(), Y::integer()}

See external documentation.

insertItem(This, Parent, Pos, Text) -> integer()

  • This = wxTreeCtrl()
  • Parent = integer()
  • Pos = integer()
  • Text = chardata() (see module unicode)

insertItem(This, Parent, Pos, Text, Option::[Option]) -> integer()

  • This = wxTreeCtrl()
  • Parent = integer()
  • Pos = integer()
  • Text = chardata() (see module unicode)
  • Option = {image, integer()} | {selImage, integer()} | {data, term()}

See external documentation.

isBold(This, Item) -> boolean()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

isExpanded(This, Item) -> boolean()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

isSelected(This, Item) -> boolean()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

isVisible(This, Item) -> boolean()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

itemHasChildren(This, Item) -> boolean()

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

prependItem(This, Parent, Text) -> integer()

  • This = wxTreeCtrl()
  • Parent = integer()
  • Text = chardata() (see module unicode)

prependItem(This, Parent, Text, Option::[Option]) -> integer()

  • This = wxTreeCtrl()
  • Parent = integer()
  • Text = chardata() (see module unicode)
  • Option = {image, integer()} | {selectedImage, integer()} | {data, term()}

See external documentation.

scrollTo(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

selectItem(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

selectItem(This, Item, Option::[Option]) -> ok

  • This = wxTreeCtrl()
  • Item = integer()
  • Option = {select, boolean()}

See external documentation.

setIndent(This, Indent) -> ok

  • This = wxTreeCtrl()
  • Indent = integer()

See external documentation.

setImageList(This, ImageList) -> ok

  • This = wxTreeCtrl()
  • ImageList = wxImageList() (see module wxImageList)

See external documentation.

setItemBackgroundColour(This, Item, Col) -> ok

  • This = wxTreeCtrl()
  • Item = integer()
  • Col = wx_colour() (see module wx)

See external documentation.

setItemBold(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

setItemBold(This, Item, Option::[Option]) -> ok

  • This = wxTreeCtrl()
  • Item = integer()
  • Option = {bold, boolean()}

See external documentation.

setItemData(This, Item, Data) -> ok

  • This = wxTreeCtrl()
  • Item = integer()
  • Data = term()

See external documentation.

setItemDropHighlight(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

setItemDropHighlight(This, Item, Option::[Option]) -> ok

  • This = wxTreeCtrl()
  • Item = integer()
  • Option = {highlight, boolean()}

See external documentation.

setItemFont(This, Item, Font) -> ok

  • This = wxTreeCtrl()
  • Item = integer()
  • Font = wxFont() (see module wxFont)

See external documentation.

setItemHasChildren(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

setItemHasChildren(This, Item, Option::[Option]) -> ok

  • This = wxTreeCtrl()
  • Item = integer()
  • Option = {has, boolean()}

See external documentation.

setItemImage(This, Item, Image) -> ok

  • This = wxTreeCtrl()
  • Item = integer()
  • Image = integer()

See external documentation.

setItemImage(This, Item, Image, Option::[Option]) -> ok

  • This = wxTreeCtrl()
  • Item = integer()
  • Image = integer()
  • Option = {which, wx_enum() (see module wx)}

See external documentation.
Which = ?wxTreeItemIcon_Normal | ?wxTreeItemIcon_Selected | ?wxTreeItemIcon_Expanded | ?wxTreeItemIcon_SelectedExpanded | ?wxTreeItemIcon_Max

setItemText(This, Item, Text) -> ok

  • This = wxTreeCtrl()
  • Item = integer()
  • Text = chardata() (see module unicode)

See external documentation.

setItemTextColour(This, Item, Col) -> ok

  • This = wxTreeCtrl()
  • Item = integer()
  • Col = wx_colour() (see module wx)

See external documentation.

setStateImageList(This, ImageList) -> ok

  • This = wxTreeCtrl()
  • ImageList = wxImageList() (see module wxImageList)

See external documentation.

setWindowStyle(This, Styles) -> ok

  • This = wxTreeCtrl()
  • Styles = integer()

See external documentation.

sortChildren(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

toggle(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

toggleItemSelection(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

unselect(This) -> ok

  • This = wxTreeCtrl()

See external documentation.

unselectAll(This) -> ok

  • This = wxTreeCtrl()

See external documentation.

unselectItem(This, Item) -> ok

  • This = wxTreeCtrl()
  • Item = integer()

See external documentation.

destroy(This::wxTreeCtrl()) -> ok

Destroys this object, do not use object again