ListBox Class

Definition

Line 68 of System.Screen/ListBox.cm

Inheritance

Constructors & Destructor

public nothrow ListBox(ListBoxCreateParams& createParams)

Member Functions

public void AddItem(const String<uchar>& item)
public void Clear()
public override nothrow Rect FocusRect() const
public const String<uchar>& GetItem(int index) const
public nothrow long ItemCount() const
public nothrow Event<SelectEventHandler, EmptyEventArgs>& ItemSelectedEvent()
private nothrow Rect LineRect(int i) const
public virtual void OnItemSelected()
public override void OnKeyPressed(KeyEventArgs& args)
public virtual void OnSelectedIndexChanged()
public override void OnWriteScreen(WriteScreenEventArgs& args)
public nothrow int SelectedIndex() const
public nothrow Event<ChangedEventHandler, EmptyEventArgs>& SelectedIndexChangedEvent()
public nothrow void SetSelectedIndex(int selectedIndex_)

Member Variables

private Event<SelectEventHandler, EmptyEventArgs> itemSelectedEvent
private List<String<uchar>> items
private int selectedIndex
private Event<ChangedEventHandler, EmptyEventArgs> selectedIndexChangedEvent
private ConsoleColor selectedItemBackColor
private ConsoleColor selectedItemFocusedBackColor
private ConsoleColor selectedItemFocusedForeColor
private ConsoleColor selectedItemForeColor
private int topIndex

Constructor& Destructor Details

ListBox Constructor

public nothrow ListBox(ListBoxCreateParams& createParams)

Definition
Line 70 of System.Screen/ListBox.cm


Member Function Details

AddItem Member Function

public void AddItem(const String<uchar>& item)

Definition
Line 321 of System.Screen/ListBox.cm


Clear Member Function

public void Clear()

Definition
Line 329 of System.Screen/ListBox.cm


FocusRect Member Function

public override nothrow Rect FocusRect()

Definition
Line 106 of System.Screen/ListBox.cm


GetItem Member Function

public const String<uchar>& GetItem(int index)

Definition
Line 325 of System.Screen/ListBox.cm


ItemCount Member Function

public nothrow long ItemCount()

Definition
Line 317 of System.Screen/ListBox.cm


ItemSelectedEvent Member Function

public nothrow Event<SelectEventHandler, EmptyEventArgs>& ItemSelectedEvent()

Definition
Line 366 of System.Screen/ListBox.cm


LineRect Member Function

private nothrow Rect LineRect(int i)

Definition
Line 370 of System.Screen/ListBox.cm


OnItemSelected Member Function

public virtual void OnItemSelected()

Definition
Line 358 of System.Screen/ListBox.cm


OnKeyPressed Member Function

public override void OnKeyPressed(KeyEventArgs& args)

Definition
Line 150 of System.Screen/ListBox.cm


OnSelectedIndexChanged Member Function

public virtual void OnSelectedIndexChanged()

Definition
Line 350 of System.Screen/ListBox.cm


OnWriteScreen Member Function

public override void OnWriteScreen(WriteScreenEventArgs& args)

Definition
Line 110 of System.Screen/ListBox.cm


SelectedIndex Member Function

public nothrow int SelectedIndex()

Definition
Line 333 of System.Screen/ListBox.cm


SelectedIndexChangedEvent Member Function

public nothrow Event<ChangedEventHandler, EmptyEventArgs>& SelectedIndexChangedEvent()

Definition
Line 362 of System.Screen/ListBox.cm


SetSelectedIndex Member Function

public nothrow void SetSelectedIndex(int selectedIndex_)

Definition
Line 337 of System.Screen/ListBox.cm