C# Class FlatRedBall.Gui.CollapseItem

Summary description for CollapseItem.
Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Méthodes publiques

Свойство Type Description
ReferenceObject object

Protected Properties

Свойство Type Description
itemText string
v Microsoft.Xna.Framework.Graphics.VertexPositionColorTexture[]

Méthodes publiques

Méthode Description
AddIcon ( Microsoft.Xna.Framework.Graphics.Texture2D texture, string name ) : ListBoxIcon
AddIcon ( float top, float bottom, float left, float right, string name ) : ListBoxIcon

Adds an icon to the CollapseItem

Do not use $ in the name of the icon as the Collapse list boxes use this character for icons such as + and - boxes for expanding CollapseItems with children.

AddIcon ( float top, float bottom, float left, float right, string name, int index ) : ListBoxIcon
AddItem ( string itemToAdd ) : CollapseItem
AddItem ( string itemToAdd, object referenceObject ) : CollapseItem
AttachItemToThis ( CollapseItem itemToAdd ) : CollapseItem
ClearIcons ( ) : void
Collapse ( ) : void
CollapseAll ( ) : void
CollapseItem ( string text, object referenceObject ) : System
Contains ( object objectToSearchFor ) : bool

Returns whether this or any children CollapseItems contain the argument object as their ReferenceObject.

ContainsItem ( CollapseItem item ) : bool
Detach ( ) : void
Expand ( ) : void
ExpandAll ( ) : void
FillWithAllDescendantCollapseItems ( IList listToFill ) : void
FillWithAllReferencedItems ( IList listToFill ) : void
FixCollapseIcon ( ) : void
GetCount ( int &count ) : int
GetHighlighted ( int &count, int highlightedNum ) : CollapseItem
GetItem ( object itemToGet ) : CollapseItem
GetItem ( string itemToGet ) : CollapseItem
GetItemNum ( int &count, CollapseItem itemToGet ) : bool
GetItemNum ( int &count, object itemToGet ) : bool
GetItemNum ( int &count, string itemToGet ) : bool
GetNumContained ( object objectToCount, int &count ) : int
GetObject ( string objectToGet ) : object
InsertItem ( int index, string itemToAdd, object referenceObject ) : CollapseItem
IsChildOf ( CollapseItem potentialParent ) : bool
MoveLeftOne ( ) : void
RemoveAllChildren ( ) : void
RemoveObject ( object objectToRemove ) : CollapseItem
RemoveSelf ( ) : void
RemoveSelfAndChildren ( ) : void
ReorderToMatchList ( IEnumerable list ) : void
ToString ( ) : string
this ( int i ) : CollapseItem

Private Methods

Méthode Description
Draw ( Camera camera, double startY, double startX, double maxWidth, int numDeep, int &itemNum, int &numDrawn, int startAt, int numToDraw, float distanceBetweenLines ) : void
GetNthVisibleItem ( int &countedSoFar, int itemNumber ) : CollapseItem
GetNumberOfVerticesToDraw ( Camera camera, double startY, double startX, double maxWidth, int numDeep, int &itemNum, int &numDrawn, int startAt, int numToDraw ) : int
GetVisibleIndex ( int &countedSoFar, CollapseItem collapseItem ) : int
TurnOffDrawHighlighted ( ) : void

Method Details

AddIcon() public méthode

public AddIcon ( Microsoft.Xna.Framework.Graphics.Texture2D texture, string name ) : ListBoxIcon
texture Microsoft.Xna.Framework.Graphics.Texture2D
name string
Résultat ListBoxIcon

AddIcon() public méthode

Adds an icon to the CollapseItem
Do not use $ in the name of the icon as the Collapse list boxes use this character for icons such as + and - boxes for expanding CollapseItems with children.
public AddIcon ( float top, float bottom, float left, float right, string name ) : ListBoxIcon
top float
bottom float
left float
right float
name string
Résultat ListBoxIcon

AddIcon() public méthode

public AddIcon ( float top, float bottom, float left, float right, string name, int index ) : ListBoxIcon
top float
bottom float
left float
right float
name string
index int
Résultat ListBoxIcon

AddItem() public méthode

public AddItem ( string itemToAdd ) : CollapseItem
itemToAdd string
Résultat CollapseItem

AddItem() public méthode

public AddItem ( string itemToAdd, object referenceObject ) : CollapseItem
itemToAdd string
referenceObject object
Résultat CollapseItem

AttachItemToThis() public méthode

public AttachItemToThis ( CollapseItem itemToAdd ) : CollapseItem
itemToAdd CollapseItem
Résultat CollapseItem

ClearIcons() public méthode

public ClearIcons ( ) : void
Résultat void

Collapse() public méthode

public Collapse ( ) : void
Résultat void

CollapseAll() public méthode

public CollapseAll ( ) : void
Résultat void

CollapseItem() public méthode

public CollapseItem ( string text, object referenceObject ) : System
text string
referenceObject object
Résultat System

Contains() public méthode

Returns whether this or any children CollapseItems contain the argument object as their ReferenceObject.
public Contains ( object objectToSearchFor ) : bool
objectToSearchFor object The object to search for.
Résultat bool

ContainsItem() public méthode

public ContainsItem ( CollapseItem item ) : bool
item CollapseItem
Résultat bool

Detach() public méthode

public Detach ( ) : void
Résultat void

Expand() public méthode

public Expand ( ) : void
Résultat void

ExpandAll() public méthode

public ExpandAll ( ) : void
Résultat void

FillWithAllDescendantCollapseItems() public méthode

public FillWithAllDescendantCollapseItems ( IList listToFill ) : void
listToFill IList
Résultat void

FillWithAllReferencedItems() public méthode

public FillWithAllReferencedItems ( IList listToFill ) : void
listToFill IList
Résultat void

FixCollapseIcon() public méthode

public FixCollapseIcon ( ) : void
Résultat void

GetCount() public méthode

public GetCount ( int &count ) : int
count int
Résultat int

GetHighlighted() public méthode

public GetHighlighted ( int &count, int highlightedNum ) : CollapseItem
count int
highlightedNum int
Résultat CollapseItem

GetItem() public méthode

public GetItem ( object itemToGet ) : CollapseItem
itemToGet object
Résultat CollapseItem

GetItem() public méthode

public GetItem ( string itemToGet ) : CollapseItem
itemToGet string
Résultat CollapseItem

GetItemNum() public méthode

public GetItemNum ( int &count, CollapseItem itemToGet ) : bool
count int
itemToGet CollapseItem
Résultat bool

GetItemNum() public méthode

public GetItemNum ( int &count, object itemToGet ) : bool
count int
itemToGet object
Résultat bool

GetItemNum() public méthode

public GetItemNum ( int &count, string itemToGet ) : bool
count int
itemToGet string
Résultat bool

GetNumContained() public méthode

public GetNumContained ( object objectToCount, int &count ) : int
objectToCount object
count int
Résultat int

GetObject() public méthode

public GetObject ( string objectToGet ) : object
objectToGet string
Résultat object

InsertItem() public méthode

public InsertItem ( int index, string itemToAdd, object referenceObject ) : CollapseItem
index int
itemToAdd string
referenceObject object
Résultat CollapseItem

IsChildOf() public méthode

public IsChildOf ( CollapseItem potentialParent ) : bool
potentialParent CollapseItem
Résultat bool

MoveLeftOne() public méthode

public MoveLeftOne ( ) : void
Résultat void

RemoveAllChildren() public méthode

public RemoveAllChildren ( ) : void
Résultat void

RemoveObject() public méthode

public RemoveObject ( object objectToRemove ) : CollapseItem
objectToRemove object
Résultat CollapseItem

RemoveSelf() public méthode

public RemoveSelf ( ) : void
Résultat void

RemoveSelfAndChildren() public méthode

public RemoveSelfAndChildren ( ) : void
Résultat void

ReorderToMatchList() public méthode

public ReorderToMatchList ( IEnumerable list ) : void
list IEnumerable
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

this() public méthode

public this ( int i ) : CollapseItem
i int
Résultat CollapseItem

Property Details

ReferenceObject public_oe property

public object ReferenceObject
Résultat object

itemText protected_oe property

protected string itemText
Résultat string

v protected_oe static_oe property

protected static VertexPositionColorTexture[],Microsoft.Xna.Framework.Graphics v
Résultat Microsoft.Xna.Framework.Graphics.VertexPositionColorTexture[]