Show / Hide Table of Contents

Class NativeListItem<T>

An item that allows you to scroll between a set of objects.

Inheritance
object
NativeItem
NativeSlidableItem
NativeListItem
NativeListItem<T>
Implements
IDrawable
IEnumerable<T>
IEnumerable
Inherited Members
NativeListItem.text
NativeSlidableItem.arrowLeft
NativeSlidableItem.arrowRight
NativeSlidableItem.LeftArrow
NativeSlidableItem.RightArrow
NativeSlidableItem.ArrowsAlwaysVisible
NativeItem.title
NativeItem.lastPosition
NativeItem.lastSize
NativeItem.lastSelected
NativeItem.badgeLeft
NativeItem.badgeRight
NativeItem.altTitle
NativeItem.OnSelected(object, SelectedEventArgs)
NativeItem.OnActivated(object)
NativeItem.Recalculate()
NativeItem.Enabled
NativeItem.Tag
NativeItem.Title
NativeItem.AltTitle
NativeItem.TitleFont
NativeItem.AltTitleFont
NativeItem.Description
NativeItem.LeftBadge
NativeItem.LeftBadgeSet
NativeItem.RightBadge
NativeItem.RightBadgeSet
NativeItem.Colors
NativeItem.Panel
NativeItem.UseCustomBackground
NativeItem.IsHovered
NativeItem.Selected
NativeItem.Activated
NativeItem.EnabledChanged
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: LemonUI.Menus
Assembly: LemonUI.SHVDN3.dll
Syntax
public class NativeListItem<T> : NativeListItem, IDrawable, IEnumerable<T>, IEnumerable
Type Parameters
Name Description
T

Constructors

View Source

NativeListItem(string, string, params T[])

Creates a new NativeListItem.

Declaration
public NativeListItem(string title, string subtitle, params T[] objs)
Parameters
Type Name Description
string title

The title of the Item.

string subtitle

The subtitle of the Item.

T[] objs

The objects that are available on the Item.

View Source

NativeListItem(string, params T[])

Creates a new NativeListItem.

Declaration
public NativeListItem(string title, params T[] objs)
Parameters
Type Name Description
string title

The title of the Item.

T[] objs

The objects that are available on the Item.

Properties

View Source

Items

The objects used by this item.

Declaration
public List<T> Items { get; set; }
Property Value
Type Description
List<T>
View Source

SelectedIndex

The index of the currently selected index.

Declaration
public int SelectedIndex { get; set; }
Property Value
Type Description
int
View Source

SelectedItem

The currently selected item.

Declaration
public T SelectedItem { get; set; }
Property Value
Type Description
T

Methods

View Source

Add(int, T)

Adds a T in a specific location.

Declaration
public void Add(int position, T item)
Parameters
Type Name Description
int position

The position where the item should be added.

T item

The T to add.

View Source

Add(T)

Adds a T into this item.

Declaration
public void Add(T item)
Parameters
Type Name Description
T item

The T to add.

View Source

Clear()

Removes all of the T from this item.

Declaration
public void Clear()
View Source

Draw()

Draws the List on the screen.

Declaration
public override void Draw()
Overrides
NativeSlidableItem.Draw()
View Source

GetEnumerator()

Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
IEnumerator<T>
View Source

GoLeft()

Moves to the previous item.

Declaration
public override void GoLeft()
Overrides
NativeSlidableItem.GoLeft()
View Source

GoRight()

Moves to the next item.

Declaration
public override void GoRight()
Overrides
NativeSlidableItem.GoRight()
View Source

Recalculate(PointF, SizeF, bool)

Recalculates the item positions and sizes with the specified values.

Declaration
public override void Recalculate(PointF pos, SizeF size, bool selected)
Parameters
Type Name Description
PointF pos

The position of the item.

SizeF size

The size of the item.

bool selected

If this item has been selected.

Overrides
NativeSlidableItem.Recalculate(PointF, SizeF, bool)
View Source

Remove(Func<T, bool>)

Removes all of the items that match the pred.

Declaration
public void Remove(Func<T, bool> pred)
Parameters
Type Name Description
Func<T, bool> pred

The function to use as a check.

View Source

Remove(T)

Removes a specific T.

Declaration
public void Remove(T item)
Parameters
Type Name Description
T item

The T to remove.

View Source

RemoveAt(int)

Removes a T at a specific location.

Declaration
public void RemoveAt(int position)
Parameters
Type Name Description
int position

The position of the T.

View Source

UpdateColors()

Updates the colors of the LemonUI.Elements from the Colors ColorSet.

Declaration
public override void UpdateColors()
Overrides
NativeSlidableItem.UpdateColors()

Events

View Source

ItemChanged

Event triggered when the selected item is changed.

Declaration
public event ItemChangedEventHandler<T> ItemChanged
Event Type
Type Description
ItemChangedEventHandler<T>

Implements

IDrawable
IEnumerable<T>
IEnumerable
  • View Source
In this article
Back to top Generated by DocFX