Class LemonUI::Menus::NativeListItem
template <T T>
ClassList > LemonUI > Menus > NativeListItem
Base class for list items. More...
Inherits the following classes: LemonUI::Menus::NativeSlidableItem, NativeListItem, IEnumerable< T >
Public Properties
| Type | Name |
|---|---|
| property List< T > | Items The objects used by this item. |
| property int | SelectedIndex The index of the currently selected index. |
| property T | SelectedItem The currently selected item. |
Public Properties inherited from LemonUI::Menus::NativeSlidableItem
See LemonUI::Menus::NativeSlidableItem
| Type | Name |
|---|---|
| property bool | ArrowsAlwaysVisible Whether the arrows should always be shown regardless of the visibility of the Item. |
| property ScaledTexture | LeftArrow The arrow pointing to the Left. |
| property ScaledTexture | RightArrow The arrow pointing to the Right. |
Public Properties inherited from LemonUI::Menus::NativeItem
See LemonUI::Menus::NativeItem
| Type | Name |
|---|---|
| property string?? | AltTitle The alternative title of the item shown on the right. |
| property Font | AltTitleFont The font of alternative title item shown on the right. |
| property ColorSet | Colors The different colors that change dynamically when the item is used. |
| property string?? | Description The description of the item. |
| property bool? | Enabled If this item can be used or not. |
| property bool | IsHovered If this item is being hovered. |
| property I2Dimensional | LeftBadge The Left badge of the Item. |
| property BadgeSet | LeftBadgeSet The Left badge set of the Item. |
| property NativePanel | Panel The Panel associated to this NativeItem . |
| property I2Dimensional | RightBadge The Right badge of the Item. |
| property BadgeSet | RightBadgeSet The Right badge set of the Item. |
| property object | Tag Object that contains data about this Item. |
| property string?? | Title The title of the item. |
| property Font | TitleFont The font of title item. |
| property bool | UseCustomBackground If a custom colored background should be used. |
Public Functions
| Type | Name |
|---|---|
| void | Add (T item) Adds a T into this item. |
| void | Add (int position, T item) Adds a T in a specific location. |
| void | Clear () Removes all of the T from this item. |
| virtual override void | Draw () Draws the List on the screen. |
| IEnumerator< T > | GetEnumerator () |
| virtual override void | GoLeft () Moves to the previous item. |
| virtual override void | GoRight () Moves to the next item. |
| NativeListItem (string title, string subtitle) Creates a new list item with a title and subtitle. |
|
| NativeListItem (string title, params T[] objs) Creates a new NativeListItem . |
|
| NativeListItem (string title, string subtitle, params T[] objs) Creates a new NativeListItem . |
|
| virtual override void | Recalculate (PointF pos, SizeF size, bool selected) Recalculates the item positions and sizes with the specified values. |
| void | Remove (T item) Removes a specific T . |
| void | Remove (Func< T, bool > pred) Removes all of the items that match the pred . |
| void | RemoveAt (int position) Removes a T at a specific location. |
| virtual override void | UpdateColors () Updates the colors of the Elements from the Colors ColorSet. |
__ |
Public Functions inherited from LemonUI::Menus::NativeSlidableItem
See LemonUI::Menus::NativeSlidableItem
| Type | Name |
|---|---|
| virtual override void | Draw () Draws the left and right arrow. |
| virtual abstract void | GoLeft () = 0 Moves to the previous item. |
| virtual abstract void | GoRight () = 0 Moves to the next item. |
| NativeSlidableItem (string title, string description) Creates a new item that can be sliden. |
|
| virtual override void | Recalculate (PointF pos, SizeF size, bool selected) Recalculates the item positions and sizes with the specified values. |
| virtual override void | UpdateColors () Updates the colors of the Elements from the Colors ColorSet. |
__ |
Public Functions inherited from LemonUI::Menus::NativeItem
See LemonUI::Menus::NativeItem
| Type | Name |
|---|---|
| virtual void | Draw () Draws the item. |
| NativeItem (string title) Creates a new NativeItem . |
|
| NativeItem (string title, string description) Creates a new NativeItem . |
|
| NativeItem (string title, string description, string altTitle) Creates a new NativeItem . |
|
| virtual void | Recalculate (PointF pos, SizeF size, bool selected) Recalculates the item positions and sizes with the specified values. |
| virtual void | UpdateColors () Updates the colors of the Elements from theColors __ColorSet . |
Public Functions inherited from LemonUI::IDrawable
| Type | Name |
|---|---|
| void | Draw () Draws the item on the screen. |
Protected Attributes inherited from LemonUI::Menus::NativeSlidableItem
See LemonUI::Menus::NativeSlidableItem
| Type | Name |
|---|---|
| ScaledTexture | arrowLeft = = null The arrow pointing to the Left. |
| ScaledTexture | arrowRight = = null The arrow pointing to the Right. |
Protected Functions inherited from LemonUI::Menus::NativeItem
See LemonUI::Menus::NativeItem
| Type | Name |
|---|---|
| void | Recalculate () Recalculates the item with the last known values. |
Detailed Description
An item that allows you to scroll between a set of objects.
Public Properties Documentation
property Items
List<T> LemonUI.Menus.NativeListItem< T >.Items;
property SelectedIndex
int LemonUI.Menus.NativeListItem< T >.SelectedIndex;
property SelectedItem
T LemonUI.Menus.NativeListItem< T >.SelectedItem;
Public Functions Documentation
function Add [1/2]
Adds a T into this item.
inline void LemonUI::Menus::NativeListItem::Add (
T item
)
Parameters:
itemThe T to add.
function Add [2/2]
Adds a T in a specific location.
inline void LemonUI::Menus::NativeListItem::Add (
int position,
T item
)
Parameters:
positionThe position where the item should be added.itemThe T to add.
function Clear
inline void LemonUI::Menus::NativeListItem::Clear ()
function Draw
inline virtual override void LemonUI::Menus::NativeListItem::Draw ()
Implements LemonUI::Menus::NativeItem::Draw
function GetEnumerator [1/2]
IEnumerator< T > LemonUI::Menus::NativeListItem::GetEnumerator ()
function GoLeft
inline virtual override void LemonUI::Menus::NativeListItem::GoLeft ()
Implements LemonUI::Menus::NativeSlidableItem::GoLeft
function GoRight
inline virtual override void LemonUI::Menus::NativeListItem::GoRight ()
Implements LemonUI::Menus::NativeSlidableItem::GoRight
function NativeListItem [1/3]
Creates a new list item with a title and subtitle.
inline LemonUI::Menus::NativeListItem::NativeListItem (
string title,
string subtitle
)
Parameters:
titleThe title of the Item.subtitleThe subtitle of the Item.
function NativeListItem [2/3]
Creates a new NativeListItem .
inline LemonUI::Menus::NativeListItem::NativeListItem (
string title,
params T[] objs
)
Parameters:
titleThe title of the Item.objsThe objects that are available on the Item.
function NativeListItem [3/3]
Creates a new NativeListItem .
inline LemonUI::Menus::NativeListItem::NativeListItem (
string title,
string subtitle,
params T[] objs
)
Parameters:
titleThe title of the Item.subtitleThe subtitle of the Item.objsThe objects that are available on the Item.
function Recalculate
Recalculates the item positions and sizes with the specified values.
inline virtual override void LemonUI::Menus::NativeListItem::Recalculate (
PointF pos,
SizeF size,
bool selected
)
Parameters:
posThe position of the item.sizeThe size of the item.selectedIf this item has been selected.
Implements LemonUI::Menus::NativeItem::Recalculate
function Remove [1/2]
Removes a specific T .
inline void LemonUI::Menus::NativeListItem::Remove (
T item
)
Parameters:
itemThe T to remove.
function Remove [2/2]
Removes all of the items that match the pred .
inline void LemonUI::Menus::NativeListItem::Remove (
Func< T, bool > pred
)
Parameters:
predThe function to use as a check.
function RemoveAt
Removes a T at a specific location.
inline void LemonUI::Menus::NativeListItem::RemoveAt (
int position
)
Parameters:
positionThe position of the T .
function UpdateColors
inline virtual override void LemonUI::Menus::NativeListItem::UpdateColors ()
Implements LemonUI::Menus::NativeItem::UpdateColors
The documentation for this class was generated from the following file repos/LemonUI/LemonUI/Menus/NativeListItem.cs