Class NativeSlidableItem
Basic elements for a slidable item.
Inheritance
NativeSlidableItem
Implements
Inherited Members
Namespace: LemonUI.Menus
Assembly: LemonUI.SHVDN3.dll
Syntax
public abstract class NativeSlidableItem : NativeItem, IDrawable
Constructors
View SourceNativeSlidableItem(string, string)
Creates a new item that can be sliden.
Declaration
public NativeSlidableItem(string title, string description)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The title of the Item. |
| string | description | The description of the Item. |
Fields
View SourcearrowLeft
The arrow pointing to the Left.
Declaration
[Obsolete("arrowLeft is Obsolete, use LeftArrow instead.")]
protected ScaledTexture arrowLeft
Field Value
| Type | Description |
|---|---|
| ScaledTexture |
arrowRight
The arrow pointing to the Right.
Declaration
[Obsolete("arrowRight is Obsolete, use RightArrow instead.")]
protected ScaledTexture arrowRight
Field Value
| Type | Description |
|---|---|
| ScaledTexture |
Properties
View SourceArrowsAlwaysVisible
Whether the arrows should always be shown regardless of the visibility of the Item.
Declaration
public bool ArrowsAlwaysVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
LeftArrow
The arrow pointing to the Left.
Declaration
public ScaledTexture LeftArrow { get; }
Property Value
| Type | Description |
|---|---|
| ScaledTexture |
RightArrow
The arrow pointing to the Right.
Declaration
public ScaledTexture RightArrow { get; }
Property Value
| Type | Description |
|---|---|
| ScaledTexture |
Methods
View SourceDraw()
Draws the left and right arrow.
Declaration
public override void Draw()
Overrides
View SourceGoLeft()
Moves to the previous item.
Declaration
public abstract void GoLeft()
GoRight()
Moves to the next item.
Declaration
public abstract void GoRight()
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
View SourceUpdateColors()
Updates the colors of the LemonUI.Elements from the Colors ColorSet.
Declaration
public override void UpdateColors()