C# Class Axiom.Samples.SelectMenu

Basic selection menu widget.
Inheritance: Widget
Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Retract ( ) : void

Internal method - cleans up an expanded menu.

Method Details

AddItem() public méthode

public AddItem ( String item ) : void
item String
Résultat void

ClearItems() public méthode

public ClearItems ( ) : void
Résultat void

OnCursorMoved() public méthode

public OnCursorMoved ( Vector2 cursorPos ) : void
cursorPos Vector2
Résultat void

OnCursorPressed() public méthode

public OnCursorPressed ( Vector2 cursorPos ) : void
cursorPos Vector2
Résultat void

OnCursorReleased() public méthode

public OnCursorReleased ( Vector2 cursorPos ) : void
cursorPos Vector2
Résultat void

OnLostFocus() public méthode

public OnLostFocus ( ) : void
Résultat void

OnSelectedIndexChanged() public méthode

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

RemoveItem() public méthode

public RemoveItem ( String item ) : void
item String
Résultat void

RemoveItem() public méthode

public RemoveItem ( int index ) : void
index int
Résultat void

Retract() protected méthode

Internal method - cleans up an expanded menu.
protected Retract ( ) : void
Résultat void

SelectItem() public méthode

public SelectItem ( String item ) : void
item String
Résultat void

SelectItem() public méthode

public SelectItem ( String item, bool notifyListener ) : void
item String
notifyListener bool
Résultat void

SelectItem() public méthode

public SelectItem ( int index ) : void
index int
Résultat void

SelectItem() public méthode

public SelectItem ( int index, bool notifyListener ) : void
index int
notifyListener bool
Résultat void

SelectMenu() public méthode

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
Résultat System

Property Details

IsCursorOver protected_oe property

protected bool IsCursorOver
Résultat bool

displayIndex protected_oe property

protected int displayIndex
Résultat int

dragOffset protected_oe property

protected Real dragOffset
Résultat Real

expandedBox protected_oe property

protected BorderPanel expandedBox
Résultat BorderPanel

highlightIndex protected_oe property

protected int highlightIndex
Résultat int

isDragging protected_oe property

protected bool isDragging
Résultat bool

isExpanded protected_oe property

protected bool isExpanded
Résultat bool

isFitToContents protected_oe property

protected bool isFitToContents
Résultat bool

itemElements protected_oe property

protected List itemElements
Résultat List

items protected_oe property

protected List items
Résultat List

itemsShown protected_oe property

protected int itemsShown
Résultat int

maxItemsShown protected_oe property

protected int maxItemsShown
Résultat int

scrollHandle protected_oe property

protected Panel scrollHandle
Résultat Panel

scrollTrack protected_oe property

protected BorderPanel scrollTrack
Résultat BorderPanel

sectionIndex protected_oe property

protected int sectionIndex
Résultat int

smallBox protected_oe property

protected BorderPanel smallBox
Résultat BorderPanel

smallTextArea protected_oe property

protected TextArea smallTextArea
Résultat TextArea

textArea protected_oe property

protected TextArea textArea
Résultat TextArea