Erlang logo
User's Guide
Reference Manual
Release Notes
PDF
Top

wxErlang
Reference Manual
Version 0.98.5


Expand All
Contract All

Table of Contents

wxTreeCtrl

MODULE

wxTreeCtrl

MODULE SUMMARY

See external documentation: wxTreeCtrl.

DESCRIPTION

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.

DATA TYPES

wxTreeCtrl()

An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc or distributed for use on other nodes.

EXPORTS

new() -> wxTreeCtrl()

new(Parent::wxWindow() (see module wxWindow)) -> wxTreeCtrl()

Equivalent to new(Parent, []).

new(Parent::wxWindow() (see module wxWindow), Options::[Option]) -> wxTreeCtrl()

Types:

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

addRoot(This::wxTreeCtrl(), Text::string()) -> integer()

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

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

Types:

Option = {image, integer()} | {selectedImage, integer()} | {data, term()}

appendItem(This::wxTreeCtrl(), Parent::integer(), Text::string()) -> integer()

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

Types:

Option = {image, integer()} | {selectedImage, integer()} | {data, term()}

assignImageList(This::wxTreeCtrl(), ImageList::wxImageList() (see module wxImageList)) -> ok

assignStateImageList(This::wxTreeCtrl(), ImageList::wxImageList() (see module wxImageList)) -> ok

collapse(This::wxTreeCtrl(), Item::integer()) -> ok

collapseAndReset(This::wxTreeCtrl(), Item::integer()) -> ok

create(This::wxTreeCtrl(), Parent::wxWindow() (see module wxWindow)) -> bool()

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

create(This::wxTreeCtrl(), Parent::wxWindow() (see module wxWindow), Options::[Option]) -> bool()

Types:

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

delete(This::wxTreeCtrl(), Item::integer()) -> ok

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

deleteChildren(This::wxTreeCtrl(), Item::integer()) -> ok

ensureVisible(This::wxTreeCtrl(), Item::integer()) -> ok

expand(This::wxTreeCtrl(), Item::integer()) -> ok

getBoundingRect(This::wxTreeCtrl(), Item::integer(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}) -> bool()

getBoundingRect(This::wxTreeCtrl(), Item::integer(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}, Options::[Option]) -> bool()

Types:

Option = {textOnly, bool()}

getChildrenCount(This::wxTreeCtrl(), Item::integer()) -> integer()

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

Types:

Option = {recursively, bool()}

getCount(This::wxTreeCtrl()) -> integer()

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

getFirstChild(This::wxTreeCtrl(), Item::integer()) -> {integer(), Cookie::integer()}

getNextChild(This::wxTreeCtrl(), Item::integer(), Cookie::integer()) -> {integer(), Cookie::integer()}

getFirstVisibleItem(This::wxTreeCtrl()) -> integer()

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

getIndent(This::wxTreeCtrl()) -> integer()

getItemBackgroundColour(This::wxTreeCtrl(), Item::integer()) -> colour() (see module wx)

getItemData(This::wxTreeCtrl(), Item::integer()) -> term()

getItemFont(This::wxTreeCtrl(), Item::integer()) -> wxFont() (see module wxFont)

getItemImage(This::wxTreeCtrl(), Item::integer()) -> integer()

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

Types:

Option = {which, WxTreeItemIcon}
WxTreeItemIcon = integer()

See external documentation.
WxTreeItemIcon is one of ?wxTreeItemIcon_Normal | ?wxTreeItemIcon_Selected | ?wxTreeItemIcon_Expanded | ?wxTreeItemIcon_SelectedExpanded | ?wxTreeItemIcon_Max

getItemText(This::wxTreeCtrl(), Item::integer()) -> string()

getItemTextColour(This::wxTreeCtrl(), Item::integer()) -> colour() (see module wx)

getLastChild(This::wxTreeCtrl(), Item::integer()) -> integer()

getNextSibling(This::wxTreeCtrl(), Item::integer()) -> integer()

getNextVisible(This::wxTreeCtrl(), Item::integer()) -> integer()

getItemParent(This::wxTreeCtrl(), Item::integer()) -> integer()

getPrevSibling(This::wxTreeCtrl(), Item::integer()) -> integer()

getPrevVisible(This::wxTreeCtrl(), Item::integer()) -> integer()

getRootItem(This::wxTreeCtrl()) -> integer()

getSelection(This::wxTreeCtrl()) -> integer()

getSelections(This::wxTreeCtrl()) -> {integer(), Val::[integer()]}

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

hitTest(This::wxTreeCtrl(), Point::{X::integer(), Y::integer()}) -> integer()

insertItem(This::wxTreeCtrl(), Parent::integer(), Pos::integer(), Text::string()) -> integer()

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

Types:

Option = {image, integer()} | {selImage, integer()} | {data, term()}

isBold(This::wxTreeCtrl(), Item::integer()) -> bool()

isExpanded(This::wxTreeCtrl(), Item::integer()) -> bool()

isSelected(This::wxTreeCtrl(), Item::integer()) -> bool()

isVisible(This::wxTreeCtrl(), Item::integer()) -> bool()

itemHasChildren(This::wxTreeCtrl(), Item::integer()) -> bool()

prependItem(This::wxTreeCtrl(), Parent::integer(), Text::string()) -> integer()

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

Types:

Option = {image, integer()} | {selectedImage, integer()} | {data, term()}

scrollTo(This::wxTreeCtrl(), Item::integer()) -> ok

selectItem(This::wxTreeCtrl(), Item::integer()) -> ok

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

Types:

Option = {select, bool()}

setIndent(This::wxTreeCtrl(), Indent::integer()) -> ok

setImageList(This::wxTreeCtrl(), ImageList::wxImageList() (see module wxImageList)) -> ok

setItemBackgroundColour(This::wxTreeCtrl(), Item::integer(), Col::colour() (see module wx)) -> ok

setItemBold(This::wxTreeCtrl(), Item::integer()) -> ok

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

Types:

Option = {bold, bool()}

setItemData(This::wxTreeCtrl(), Item::integer(), Data::term()) -> ok

setItemDropHighlight(This::wxTreeCtrl(), Item::integer()) -> ok

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

Types:

Option = {highlight, bool()}

setItemFont(This::wxTreeCtrl(), Item::integer(), Font::wxFont() (see module wxFont)) -> ok

setItemHasChildren(This::wxTreeCtrl(), Item::integer()) -> ok

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

Types:

Option = {has, bool()}

setItemImage(This::wxTreeCtrl(), Item::integer(), Image::integer()) -> ok

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

Types:

Option = {which, WxTreeItemIcon}
WxTreeItemIcon = integer()

See external documentation.
WxTreeItemIcon is one of ?wxTreeItemIcon_Normal | ?wxTreeItemIcon_Selected | ?wxTreeItemIcon_Expanded | ?wxTreeItemIcon_SelectedExpanded | ?wxTreeItemIcon_Max

setItemText(This::wxTreeCtrl(), Item::integer(), Text::string()) -> ok

setItemTextColour(This::wxTreeCtrl(), Item::integer(), Col::colour() (see module wx)) -> ok

setStateImageList(This::wxTreeCtrl(), ImageList::wxImageList() (see module wxImageList)) -> ok

setWindowStyle(This::wxTreeCtrl(), Styles::integer()) -> ok

sortChildren(This::wxTreeCtrl(), Item::integer()) -> ok

toggle(This::wxTreeCtrl(), Item::integer()) -> ok

toggleItemSelection(This::wxTreeCtrl(), Item::integer()) -> ok

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

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

unselectItem(This::wxTreeCtrl(), Item::integer()) -> ok

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

Destroys this object, do not use object again