Show / Hide Table of Contents

Class NativeSliderItem

A slider item for changing integer values.

Inheritance
object
NativeItem
NativeSlidableItem
NativeSliderItem
Implements
IDrawable
Inherited Members
NativeSlidableItem.arrowLeft
NativeSlidableItem.arrowRight
NativeSlidableItem.UpdateColors()
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 NativeSliderItem : NativeSlidableItem, IDrawable

Constructors

View Source

NativeSliderItem(string)

Creates a NativeSliderItem with a maximum of 100.

Declaration
public NativeSliderItem(string title)
Parameters
Type Name Description
string title

The title of the Item.

View Source

NativeSliderItem(string, int, int)

Creates a NativeSliderItem with a specific current and maximum value.

Declaration
public NativeSliderItem(string title, int max, int value)
Parameters
Type Name Description
string title

The title of the Item.

int max

The maximum value of the Slider.

int value

The current value of the Slider.

View Source

NativeSliderItem(string, string)

Creates a NativeSliderItem with a maximum of 100.

Declaration
public NativeSliderItem(string title, string description)
Parameters
Type Name Description
string title

The title of the Item.

string description

The description of the Item.

View Source

NativeSliderItem(string, string, int, int)

Creates a NativeSliderItem with a specific maximum.

Declaration
public NativeSliderItem(string title, string description, int max, int value)
Parameters
Type Name Description
string title

The title of the Item.

string description

The description of the Item.

int max

The maximum value of the Slider.

int value

The current value of the Slider.

Fields

View Source

background

The background of the slider.

Declaration
protected ScaledRectangle background
Field Value
Type Description
ScaledRectangle
View Source

slider

THe front of the slider.

Declaration
protected ScaledRectangle slider
Field Value
Type Description
ScaledRectangle

Properties

View Source

Maximum

The maximum value of the slider.

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

Multiplier

The multiplier for increasing and decreasing the value.

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

SliderColor

The color of the Slider.

Declaration
public Color SliderColor { get; set; }
Property Value
Type Description
Color
View Source

Value

The current value of the slider.

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

Methods

View Source

Draw()

Draws the slider.

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

GoLeft()

Reduces the value of the slider.

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

GoRight()

Increases the value of the slider.

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

UpdatePosition()

Updates the position of the bar based on the value.

Declaration
protected void UpdatePosition()

Events

View Source

ValueChanged

Event triggered when the value of the menu changes.

Declaration
public event EventHandler ValueChanged
Event Type
Type Description
EventHandler

Implements

IDrawable
  • View Source
In this article
Back to top Generated by DocFX