Class TGUITreeView

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGUITreeView = class(TGUIElement)

Description

Default tree view GUI element.
Displays a windows like tree buttons to expand/collaps the child nodes of an node and optional tree lines. Each node consits of an text, an icon text and a void pointer for user data.

Hierarchy

Overview

Methods

Public function GetImageList: TGUIImageList; inline;
Public function GetRoot: TGUITreeViewNode; inline;
Public function GetSelected: TGUITreeViewNode; inline;
Public procedure SetIconFont(Font: TGUIFont); inline;
Public procedure SetImageList(ImageList: TGUIImageList); inline;

Properties

Public property ImageLeftOfIcon: Boolean read GetImageLeftOfIcon write SetImageLeftOfIcon;
Public property LinesVisible: Boolean read GetLinesVisible write SetLinesVisible;

Description

Methods

Public function GetImageList: TGUIImageList; inline;

Returns the image list which is used for the nodes.

Public function GetRoot: TGUITreeViewNode; inline;

Returns the invisble root node from the tree.

Public function GetSelected: TGUITreeViewNode; inline;

Fetches the selected node.

Returns

The node or nil if none is selected.

Public procedure SetIconFont(Font: TGUIFont); inline;

Sets the font which should be used as icon font. This font is set to the Irrlicht engine built-in-font by default. Icons can be displayed in front of every list item. An icon is a string, displayed with the icon font. When using the build-in-font of the Irrlicht engine as icon font, the icon strings defined in the C++ GUIIcons.h can be used.

Public procedure SetImageList(ImageList: TGUIImageList); inline;

Sets the image list which should be used for the image and selected image of every node.

Parameters
ImageList
The new image list. If this value is nil, no images will be drawn.

Properties

Public property ImageLeftOfIcon: Boolean read GetImageLeftOfIcon write SetImageLeftOfIcon;

Specifies whether the image is displayed left of the icon.
Default: True.

Public property LinesVisible: Boolean read GetLinesVisible write SetLinesVisible;

Specifies whether the tree lines are visible.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22