C# Класс FlatRedBall.Gui.ListBoxBase

Наследование: NS004.c000068, i000071
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CtrlClickOn bool
Lined bool
ShiftClickOn bool

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

Свойство Тип Описание
mFirstItemDistanceFromTop float
mHighlight Sprite
mHighlightBar FlatRedBall.ManagedSpriteGroups.SpriteFrame
mLeftBorder float
mScrollBar ScrollBar
mTakingInput bool
mTexts PositionedObjectList

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

Метод Описание
Activity ( Camera camera ) : void
AddItem ( string stringToAdd ) : CollapseItem
AddItem ( string stringToAdd, object referenceObject ) : CollapseItem
AddToLayer ( Layer layerToAddTo ) : void
AdjustScrollSize ( ) : void
ClearEvents ( ) : void
Contains ( CollapseItem itemToSearchFor ) : bool
FillWithAllReferencedItems ( IList listToFill ) : void
GetFirstHighlightedItem ( ) : CollapseItem
GetFirstHighlightedObject ( ) : object
GetHighlightedObject ( ) : List
GetItem ( int itemNumber ) : CollapseItem

Returns the CollapseItem at index itemNumber traversing from the top of the list down.

This method will skip over items that are children of collapsed items. The list is traversed down ignoring hierarchy, but only counting "visible" items.

GetItem ( object itemToGet ) : CollapseItem
GetItemAtCursor ( ) : CollapseItem
GetItemByName ( string itemToGet ) : CollapseItem
GetNumCollapsed ( ) : int
HighlightItem ( CollapseItem itemToHighlight ) : void
HighlightItem ( CollapseItem itemToHighlight, bool addToHighlighted ) : void
HighlightItem ( string itemToHighlight ) : void
HighlightItemAtCursor ( Window callingWindow ) : void
HighlightItemNoCall ( CollapseItem itemToHighlight, bool addToHighlighted ) : void
HighlightObject ( object objectToHighlight ) : void
HighlightObject ( object objectToHighlight, bool addToHighlighted ) : void
HighlightObjectNoCall ( object objectToHighlight, bool addToHighlighted ) : void
InsertItem ( int index, CollapseItem itemToInsert ) : CollapseItem
InsertItem ( int index, string stringToAdd ) : CollapseItem
InsertItem ( int index, string stringToAdd, object referenceObject ) : CollapseItem
IsVisibleInBox ( CollapseItem ci ) : bool
ListBoxBase ( Cursor cursor ) : System
ListBoxBase ( GuiSkin guiSkin, Cursor cursor ) : System
LoseFocus ( ) : void
OnFocusUpdate ( ) : void
OnGainFocus ( ) : void
OnPrimaryClick ( Window callingWindow ) : void
OnPrimaryPush ( Window callingWindow ) : void
ReceiveInput ( ) : void
RemoveCollapseItem ( CollapseItem item ) : void
RemoveItemAt ( int index ) : CollapseItem
RemoveItemByName ( string itemToRemove ) : CollapseItem

Removes the item from the CollapseListBox.

This method removes the item from the CollapseListBox and detaches the item's children and reattaches them to the box. The assumption here is that the item will not be reattached.

RemoveItemByObject ( object objectToRemove ) : CollapseItem
SetSkin ( GuiSkin guiSkin ) : void
Sort ( ) : void
StrongSelectAtCursor ( Window callingWindow ) : void
TestCollision ( Cursor cursor ) : void
this ( int i ) : CollapseItem

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

Метод Описание
Destroy ( bool keepEvents ) : void
GetAbsoluteScreenY ( CollapseItem collapseItem ) : float
GetNthVisibleItem ( int number ) : CollapseItem
GetVisibleIndex ( CollapseItem collapseItem ) : int
KeepHighlightInView ( CollapseItem itemToHighlight ) : void
OnHighlight ( ) : void
UpdateHighlightSpriteFrame ( ) : void
UpdateSeparators ( ) : void
UpdateTextPositions ( ) : void
UpdateTextStrings ( ) : void

Приватные методы

Метод Описание
ClickOutliningButton ( CollapseItem collapseItem, ListBoxBase collapseListBox, ListBoxIcon listBoxIcon ) : void
Destroy ( ) : void
DrawSelfAndChildren ( Camera camera ) : void
GetCIAt ( float yPos ) : CollapseItem
GetItemNumber ( CollapseItem item ) : int
GetNumberOfVerticesToDraw ( ) : int
Initialize ( ) : void
SetInsertLocationIndex ( ) : void
UpdateSeparatorProperties ( ) : void
UpdateStartAtToScrollBar ( Window callingWindow ) : void

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

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

public Activity ( Camera camera ) : void
camera Camera
Результат void

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

public AddItem ( string stringToAdd ) : CollapseItem
stringToAdd string
Результат CollapseItem

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

public AddItem ( string stringToAdd, object referenceObject ) : CollapseItem
stringToAdd string
referenceObject object
Результат CollapseItem

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

public AddToLayer ( Layer layerToAddTo ) : void
layerToAddTo Layer
Результат void

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

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

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

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

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

public Contains ( CollapseItem itemToSearchFor ) : bool
itemToSearchFor CollapseItem
Результат bool

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

protected Destroy ( bool keepEvents ) : void
keepEvents bool
Результат void

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

public FillWithAllReferencedItems ( IList listToFill ) : void
listToFill IList
Результат void

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

protected GetAbsoluteScreenY ( CollapseItem collapseItem ) : float
collapseItem CollapseItem
Результат float

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

public GetFirstHighlightedItem ( ) : CollapseItem
Результат CollapseItem

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

public GetFirstHighlightedObject ( ) : object
Результат object

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

public GetHighlightedObject ( ) : List
Результат List

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

Returns the CollapseItem at index itemNumber traversing from the top of the list down.
This method will skip over items that are children of collapsed items. The list is traversed down ignoring hierarchy, but only counting "visible" items.
public GetItem ( int itemNumber ) : CollapseItem
itemNumber int The index to return
Результат CollapseItem

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

public GetItem ( object itemToGet ) : CollapseItem
itemToGet object
Результат CollapseItem

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

public GetItemAtCursor ( ) : CollapseItem
Результат CollapseItem

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

public GetItemByName ( string itemToGet ) : CollapseItem
itemToGet string
Результат CollapseItem

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

protected GetNthVisibleItem ( int number ) : CollapseItem
number int
Результат CollapseItem

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

public GetNumCollapsed ( ) : int
Результат int

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

protected GetVisibleIndex ( CollapseItem collapseItem ) : int
collapseItem CollapseItem
Результат int

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

public HighlightItem ( CollapseItem itemToHighlight ) : void
itemToHighlight CollapseItem
Результат void

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

public HighlightItem ( CollapseItem itemToHighlight, bool addToHighlighted ) : void
itemToHighlight CollapseItem
addToHighlighted bool
Результат void

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

public HighlightItem ( string itemToHighlight ) : void
itemToHighlight string
Результат void

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

public HighlightItemAtCursor ( Window callingWindow ) : void
callingWindow Window
Результат void

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

public HighlightItemNoCall ( CollapseItem itemToHighlight, bool addToHighlighted ) : void
itemToHighlight CollapseItem
addToHighlighted bool
Результат void

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

public HighlightObject ( object objectToHighlight ) : void
objectToHighlight object
Результат void

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

public HighlightObject ( object objectToHighlight, bool addToHighlighted ) : void
objectToHighlight object
addToHighlighted bool
Результат void

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

public HighlightObjectNoCall ( object objectToHighlight, bool addToHighlighted ) : void
objectToHighlight object
addToHighlighted bool
Результат void

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

public InsertItem ( int index, CollapseItem itemToInsert ) : CollapseItem
index int
itemToInsert CollapseItem
Результат CollapseItem

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

public InsertItem ( int index, string stringToAdd ) : CollapseItem
index int
stringToAdd string
Результат CollapseItem

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

public InsertItem ( int index, string stringToAdd, object referenceObject ) : CollapseItem
index int
stringToAdd string
referenceObject object
Результат CollapseItem

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

public IsVisibleInBox ( CollapseItem ci ) : bool
ci CollapseItem
Результат bool

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

protected KeepHighlightInView ( CollapseItem itemToHighlight ) : void
itemToHighlight CollapseItem
Результат void

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

public ListBoxBase ( Cursor cursor ) : System
cursor Cursor
Результат System

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

public ListBoxBase ( GuiSkin guiSkin, Cursor cursor ) : System
guiSkin GuiSkin
cursor Cursor
Результат System

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

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

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

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

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

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

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

protected OnHighlight ( ) : void
Результат void

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

public OnPrimaryClick ( Window callingWindow ) : void
callingWindow Window
Результат void

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

public OnPrimaryPush ( Window callingWindow ) : void
callingWindow Window
Результат void

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

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

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

public RemoveCollapseItem ( CollapseItem item ) : void
item CollapseItem
Результат void

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

public RemoveItemAt ( int index ) : CollapseItem
index int
Результат CollapseItem

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

Removes the item from the CollapseListBox.
This method removes the item from the CollapseListBox and detaches the item's children and reattaches them to the box. The assumption here is that the item will not be reattached.
public RemoveItemByName ( string itemToRemove ) : CollapseItem
itemToRemove string
Результат CollapseItem

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

public RemoveItemByObject ( object objectToRemove ) : CollapseItem
objectToRemove object
Результат CollapseItem

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

public SetSkin ( GuiSkin guiSkin ) : void
guiSkin GuiSkin
Результат void

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

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

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

public StrongSelectAtCursor ( Window callingWindow ) : void
callingWindow Window
Результат void

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

public TestCollision ( Cursor cursor ) : void
cursor Cursor
Результат void

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

protected UpdateHighlightSpriteFrame ( ) : void
Результат void

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

protected UpdateSeparators ( ) : void
Результат void

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

protected UpdateTextPositions ( ) : void
Результат void

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

protected UpdateTextStrings ( ) : void
Результат void

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

public this ( int i ) : CollapseItem
i int
Результат CollapseItem

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

CtrlClickOn публичное свойство

public bool CtrlClickOn
Результат bool

Lined публичное свойство

public bool Lined
Результат bool

ShiftClickOn публичное свойство

public bool ShiftClickOn
Результат bool

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

protected float mFirstItemDistanceFromTop
Результат float

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

protected Sprite mHighlight
Результат Sprite

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

protected SpriteFrame,FlatRedBall.ManagedSpriteGroups mHighlightBar
Результат FlatRedBall.ManagedSpriteGroups.SpriteFrame

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

protected float mLeftBorder
Результат float

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

protected ScrollBar,FlatRedBall.Gui mScrollBar
Результат ScrollBar

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

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

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

protected PositionedObjectList mTexts
Результат PositionedObjectList