Namespace: DeltaEngine.Scenes.Controls
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Scenes.Tests.Controls.PictureTests
Tests: DeltaEngine.Scenes.Tests.Controls.LabelTests
Tests: DeltaEngine.Scenes.Tests.Controls.DropdownListTests
Tests: DeltaEngine.Scenes.Tests.Controls.ScrollbarTests
Tests: DeltaEngine.Scenes.Tests.Controls.SelectBoxTests
Tests: DeltaEngine.Scenes.Tests.Controls.RadioDialogTests
Tests: DeltaEngine.Scenes.Tests.Controls.SliderTests
Tests: DeltaEngine.Scenes.Tests.Controls.TextBoxTests
1 unit tests call DeltaEngine.Scenes.Controls.Control.IsActive
1 unit tests call DeltaEngine.Scenes.Controls.Control.IsActive
1 unit tests call DeltaEngine.Scenes.Controls.Control.IsActive
1 unit tests call DeltaEngine.Scenes.Controls.Control.IsActive
1 unit tests call DeltaEngine.Scenes.Controls.Control.IsActive
2 unit tests call DeltaEngine.Scenes.Controls.Control.IsActive
1 unit tests call DeltaEngine.Scenes.Controls.Control.IsActive
1 unit tests call DeltaEngine.Scenes.Controls.Control.IsActive
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: BooleanImplements
HierarchyObject2D IsActiveRemarks
Remarks
Remarks
Remarks
Remarks
Remarks
Remarks
Remarks
Examples
[Test] public void DrawLoadedPicture() { picture.IsActive = false; picture = new Picture(new Theme(), material, Rectangle.HalfCentered); var stream = BinaryDataExtensions.SaveToMemoryStream(picture); picture.IsActive = false; stream.CreateFromMemoryStream(); }
Examples
[Test] public void InactiveLabelDoesNotRender() { label.IsActive = false; }
Examples
[Test] public void DrawLoadedSelectBox() { SetToTenValues(); var stream = BinaryDataExtensions.SaveToMemoryStream(dropdownList); dropdownList.IsActive = false; stream.CreateFromMemoryStream(); }
Examples
[Test] public void DrawLoadedScrollbar() { scrollbar.CenterValue = 50; var stream = BinaryDataExtensions.SaveToMemoryStream(scrollbar); scrollbar.IsActive = false; stream.CreateFromMemoryStream(); }
Examples
[Test] public void DrawLoadedSelectBox() { SetToTenValues(); var stream = BinaryDataExtensions.SaveToMemoryStream(selectBox); selectBox.IsActive = false; var loadedSelectBox = (SelectBox)stream.CreateFromMemoryStream(); var text = new FontText(Font.Default, "", new Rectangle(0.4f, 0.7f, 0.2f, 0.1f)); loadedSelectBox.LineClicked += lineNo => text.Text = loadedSelectBox.Values[lineNo] + " clicked"; //ncrunch: no coverage }
Examples
[Test] public void DrawLoadedRadioDialog() { var stream = BinaryDataExtensions.SaveToMemoryStream(dialog); dialog.IsActive = false; stream.CreateFromMemoryStream(); }
[Test] public void DrawLoadedRadioDialogAttachedToMouse() { var stream = BinaryDataExtensions.SaveToMemoryStream(dialog); dialog.IsActive = false; var loadedDialog = (RadioDialog)stream.CreateFromMemoryStream(); new Command(point => loadedDialog.DrawArea = Rectangle.FromCenter(point, loadedDialog.DrawArea.Size)).Add(new MouseMovementTrigger()); }
Examples
[Test] public void DrawLoadedSlider() { slider.Value = 70; var stream = BinaryDataExtensions.SaveToMemoryStream(slider); slider.IsActive = false; stream.CreateFromMemoryStream(); }
Examples
[Test] public void DrawLoadedTextBox() { topTextBox.Text = "Original"; bottomTextBox.IsActive = false; var stream = BinaryDataExtensions.SaveToMemoryStream(topTextBox); var loadedTextBox = (TextBox)stream.CreateFromMemoryStream(); loadedTextBox.Text = "Loaded"; loadedTextBox.DrawArea = loadedTextBox.DrawArea.Move(0.0f, 0.15f); }
See Also