C# Класс Axiom.Samples.SelectMenu

Basic selection menu widget.
Наследование: Widget
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Retract ( ) : void

Internal method - cleans up an expanded menu.

Описание методов

AddItem() публичный метод

public AddItem ( String item ) : void
item String
Результат void

ClearItems() публичный метод

public ClearItems ( ) : void
Результат void

OnCursorMoved() публичный метод

public OnCursorMoved ( Vector2 cursorPos ) : void
cursorPos Vector2
Результат void

OnCursorPressed() публичный метод

public OnCursorPressed ( Vector2 cursorPos ) : void
cursorPos Vector2
Результат void

OnCursorReleased() публичный метод

public OnCursorReleased ( Vector2 cursorPos ) : void
cursorPos Vector2
Результат void

OnLostFocus() публичный метод

public OnLostFocus ( ) : void
Результат void

OnSelectedIndexChanged() публичный метод

Raises the Selected Index Changed event.
public OnSelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void

RemoveItem() публичный метод

public RemoveItem ( String item ) : void
item String
Результат void

RemoveItem() публичный метод

public RemoveItem ( int index ) : void
index int
Результат void

Retract() защищенный метод

Internal method - cleans up an expanded menu.
protected Retract ( ) : void
Результат void

SelectItem() публичный метод

public SelectItem ( String item ) : void
item String
Результат void

SelectItem() публичный метод

public SelectItem ( String item, bool notifyListener ) : void
item String
notifyListener bool
Результат void

SelectItem() публичный метод

public SelectItem ( int index ) : void
index int
Результат void

SelectItem() публичный метод

public SelectItem ( int index, bool notifyListener ) : void
index int
notifyListener bool
Результат void

SelectMenu() публичный метод

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
Результат System

Описание свойств

IsCursorOver защищенное свойство

protected bool IsCursorOver
Результат bool

displayIndex защищенное свойство

protected int displayIndex
Результат int

dragOffset защищенное свойство

protected Real dragOffset
Результат Real

expandedBox защищенное свойство

protected BorderPanel expandedBox
Результат BorderPanel

highlightIndex защищенное свойство

protected int highlightIndex
Результат int

isDragging защищенное свойство

protected bool isDragging
Результат bool

isExpanded защищенное свойство

protected bool isExpanded
Результат bool

isFitToContents защищенное свойство

protected bool isFitToContents
Результат bool

itemElements защищенное свойство

protected List itemElements
Результат List

items защищенное свойство

protected List items
Результат List

itemsShown защищенное свойство

protected int itemsShown
Результат int

maxItemsShown защищенное свойство

protected int maxItemsShown
Результат int

scrollHandle защищенное свойство

protected Panel scrollHandle
Результат Panel

scrollTrack защищенное свойство

protected BorderPanel scrollTrack
Результат BorderPanel

sectionIndex защищенное свойство

protected int sectionIndex
Результат int

smallBox защищенное свойство

protected BorderPanel smallBox
Результат BorderPanel

smallTextArea защищенное свойство

protected TextArea smallTextArea
Результат TextArea

textArea защищенное свойство

protected TextArea textArea
Результат TextArea