HPL3/Amnesia: Rebirth/Scripting/cWidgetTreeItem

From Frictional Wiki
< HPL3‎ | Amnesia: Rebirth‎ | Scripting
Revision as of 23:08, 15 November 2020 by Abion47 (talk | contribs) (Created page with "{{ScriptingStub}} Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki! ==Fields== cWidgetTreeItem has no public fields. ==F...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Fields

cWidgetTreeItem has no public fields.

Functions

Return Type Function And Description
cWidgetTreeItem AddChild(const tWString &in asText)
cWidgetTreeItem GetChild(int alIdx)
int GetNumChildren()
cWidgetTreeItem GetParent()
cWidgetTreeItem GetRoot()
tWString GetText()
int GetUserValue()
bool HasChildren()
bool IsExpanded()
bool IsSelectable()
bool IsSelected()
void SetExpanded(bool abX)
void SetSelectable(bool abX)
void SetSelected(bool abX)
void SetText(const tWString &in asText)
void SetUserValue(int alValue)

Details

AddChild

cWidgetTreeItem@ AddChild(const tWString &in asText)


Parameters

Returns:

  • cWidgetTreeItem@

GetChild

cWidgetTreeItem@ GetChild(int alIdx)


Parameters

  • alIdx (int) —

Returns:

  • cWidgetTreeItem@

GetNumChildren

int GetNumChildren()

Returns:

  • int

GetParent

cWidgetTreeItem@ GetParent()

Returns:

  • cWidgetTreeItem@

GetRoot

cWidgetTreeItem@ GetRoot()

Returns:

  • cWidgetTreeItem@

GetText

const tWString& GetText()

Returns:

  • const tWString&

GetUserValue

int GetUserValue()

Returns:

  • int

HasChildren

bool HasChildren()

Returns:

  • bool

IsExpanded

bool IsExpanded()

Returns:

  • bool

IsSelectable

bool IsSelectable()

Returns:

  • bool

IsSelected

bool IsSelected()

Returns:

  • bool

SetExpanded

void SetExpanded(bool abX)


Parameters

  • abX (bool) —

Returns:

  • void

SetSelectable

void SetSelectable(bool abX)


Parameters

  • abX (bool) —

Returns:

  • void

SetSelected

void SetSelected(bool abX)


Parameters

  • abX (bool) —

Returns:

  • void

SetText

void SetText(const tWString &in asText)


Parameters

Returns:

  • void

SetUserValue

void SetUserValue(int alValue)


Parameters

  • alValue (int) —

Returns:

  • void

References

See all references...