BaseSlider Update Method Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Controls
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public override void Update()

Implements

Updateable Update 
Remarks

Tests: DeltaEngine.Scenes.Tests.Controls.ScrollbarTests
Remarks

Tests: DeltaEngine.Scenes.Tests.Controls.SliderTests
Examples

1 unit tests call DeltaEngine.Scenes.Controls.BaseSlider.Update
[Test, CloseAfterFirstFrame]
public void UpdateValues()
{
    scrollbar.MinValue = 1;
    scrollbar.MaxValue = 10;
    scrollbar.ValueWidth = 2;
    scrollbar.CenterValue = 4;
    Assert.AreEqual(1, scrollbar.MinValue);
    Assert.AreEqual(10, scrollbar.MaxValue);
    Assert.AreEqual(4, scrollbar.CenterValue);
    Assert.AreEqual(2, scrollbar.ValueWidth);
}
Examples

1 unit tests call DeltaEngine.Scenes.Controls.BaseSlider.Update
[Test, CloseAfterFirstFrame]
public void UpdateValues()
{
    slider.MinValue = 1;
    slider.Value = 2;
    slider.MaxValue = 3;
    Assert.AreEqual(1, slider.MinValue);
    Assert.AreEqual(2, slider.Value);
    Assert.AreEqual(3, slider.MaxValue);
}
See Also