C# Class Axiom.Samples.SelectMenu

Basic selection menu widget.
Inheritance: Widget
Show file Open project: WolfgangSt/axiom Class Usage Examples

Protected Properties

Property Type Description
IsCursorOver bool
displayIndex int
dragOffset Real
expandedBox BorderPanel
highlightIndex int
isDragging bool
isExpanded bool
isFitToContents bool
itemElements List
items List
itemsShown int
maxItemsShown int
scrollHandle Panel
scrollTrack BorderPanel
sectionIndex int
smallBox BorderPanel
smallTextArea TextArea
textArea TextArea

Public Methods

Method Description
AddItem ( String item ) : void

ClearItems ( ) : void

OnCursorMoved ( Vector2 cursorPos ) : void

OnCursorPressed ( Vector2 cursorPos ) : void

OnCursorReleased ( Vector2 cursorPos ) : void

OnLostFocus ( ) : void

OnSelectedIndexChanged ( object sender, EventArgs e ) : void

Raises the Selected Index Changed event.

RemoveItem ( String item ) : void

RemoveItem ( int index ) : void

SelectItem ( String item ) : void

SelectItem ( String item, bool notifyListener ) : void

SelectItem ( int index ) : void

SelectItem ( int index, bool notifyListener ) : void

SelectMenu ( String name, String caption, Real width, Real boxWidth, int maxItemsShown ) : System

Do not instantiate any widgets directly. Use SdkTrayManager.

Protected Methods

Method Description
Retract ( ) : void

Internal method - cleans up an expanded menu.

Method Details

AddItem() public method

public AddItem ( String item ) : void
item String
return void

ClearItems() public method

public ClearItems ( ) : void
return void

OnCursorMoved() public method

public OnCursorMoved ( Vector2 cursorPos ) : void
cursorPos Vector2
return void

OnCursorPressed() public method

public OnCursorPressed ( Vector2 cursorPos ) : void
cursorPos Vector2
return void

OnCursorReleased() public method

public OnCursorReleased ( Vector2 cursorPos ) : void
cursorPos Vector2
return void

OnLostFocus() public method

public OnLostFocus ( ) : void
return void

OnSelectedIndexChanged() public method

Raises the Selected Index Changed event.
public OnSelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

RemoveItem() public method

public RemoveItem ( String item ) : void
item String
return void

RemoveItem() public method

public RemoveItem ( int index ) : void
index int
return void

Retract() protected method

Internal method - cleans up an expanded menu.
protected Retract ( ) : void
return void

SelectItem() public method

public SelectItem ( String item ) : void
item String
return void

SelectItem() public method

public SelectItem ( String item, bool notifyListener ) : void
item String
notifyListener bool
return void

SelectItem() public method

public SelectItem ( int index ) : void
index int
return void

SelectItem() public method

public SelectItem ( int index, bool notifyListener ) : void
index int
notifyListener bool
return void

SelectMenu() public method

Do not instantiate any widgets directly. Use SdkTrayManager.
public SelectMenu ( String name, String caption, Real width, Real boxWidth, int maxItemsShown ) : System
name String
caption String
width Real
boxWidth Real
maxItemsShown int
return System

Property Details

IsCursorOver protected property

protected bool IsCursorOver
return bool

displayIndex protected property

protected int displayIndex
return int

dragOffset protected property

protected Real dragOffset
return Real

expandedBox protected property

protected BorderPanel expandedBox
return BorderPanel

highlightIndex protected property

protected int highlightIndex
return int

isDragging protected property

protected bool isDragging
return bool

isExpanded protected property

protected bool isExpanded
return bool

isFitToContents protected property

protected bool isFitToContents
return bool

itemElements protected property

protected List itemElements
return List

items protected property

protected List items
return List

itemsShown protected property

protected int itemsShown
return int

maxItemsShown protected property

protected int maxItemsShown
return int

scrollHandle protected property

protected Panel scrollHandle
return Panel

scrollTrack protected property

protected BorderPanel scrollTrack
return BorderPanel

sectionIndex protected property

protected int sectionIndex
return int

smallBox protected property

protected BorderPanel smallBox
return BorderPanel

smallTextArea protected property

protected TextArea smallTextArea
return TextArea

textArea protected property

protected TextArea textArea
return TextArea