Class NativeSliderItem
A slider item for changing integer values.
Implements
Inherited Members
Namespace: LemonUI.Menus
Assembly: LemonUI.SHVDN3.dll
Syntax
public class NativeSliderItem : NativeSlidableItem, IDrawable
Constructors
View SourceNativeSliderItem(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. |
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. |
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. |
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 Sourcebackground
The background of the slider.
Declaration
protected ScaledRectangle background
Field Value
| Type | Description |
|---|---|
| ScaledRectangle |
slider
THe front of the slider.
Declaration
protected ScaledRectangle slider
Field Value
| Type | Description |
|---|---|
| ScaledRectangle |
Properties
View SourceMaximum
The maximum value of the slider.
Declaration
public int Maximum { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Multiplier
The multiplier for increasing and decreasing the value.
Declaration
public int Multiplier { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SliderColor
The color of the Slider.
Declaration
public Color SliderColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Value
The current value of the slider.
Declaration
public int Value { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
View SourceDraw()
Draws the slider.
Declaration
public override void Draw()
Overrides
View SourceGoLeft()
Reduces the value of the slider.
Declaration
public override void GoLeft()
Overrides
View SourceGoRight()
Increases the value of the slider.
Declaration
public override void GoRight()
Overrides
View SourceRecalculate(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 SourceUpdatePosition()
Updates the position of the bar based on the value.
Declaration
protected void UpdatePosition()
Events
View SourceValueChanged
Event triggered when the value of the menu changes.
Declaration
public event EventHandler ValueChanged
Event Type
| Type | Description |
|---|---|
| EventHandler |