/*
Copyright (C) 2014-2019 de4dot@gmail.com
This file is part of dnSpy
dnSpy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
dnSpy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with dnSpy. If not, see .
*/
using System;
using System.Windows.Controls;
using System.Windows.Media;
namespace dnSpy.Contracts.BackgroundImage {
///
/// Default image settings
///
public sealed class DefaultImageSettings {
///
/// All images or null to use the default value. This can be filenames, folders, or pack:// URIs
///
public string[]? Images { get; set; }
///
/// Stretch value or null to use the default value
///
public Stretch? Stretch { get; set; }
///
/// Stretch direction value or null to use the default value
///
public StretchDirection? StretchDirection { get; set; }
///
/// Opacity or null to use the default value
///
public double? Opacity { get; set; }
///
/// Horizontal offset or null to use the default value
///
public double? HorizontalOffset { get; set; }
///
/// Vertical offset or null to use the default value
///
public double? VerticalOffset { get; set; }
///
/// Left margin width (%) or null to use the default value
///
public double? LeftMarginWidthPercent { get; }
///
/// Right margin width (%) or null to use the default value
///
public double? RightMarginWidthPercent { get; }
///
/// Top margin height (%) or null to use the default value
///
public double? TopMarginHeightPercent { get; }
///
/// Bottom margin height (%) or null to use the default value
///
public double? BottomMarginHeightPercent { get; }
///
/// Max height or null to use the default value
///
public double? MaxHeight { get; set; }
///
/// Max width or null to use the default value
///
public double? MaxWidth { get; set; }
///
/// Zoom (%) or null to use the default value
///
public double? Zoom { get; set; }
///
/// Image placement or null to use the default value
///
public ImagePlacement? ImagePlacement { get; set; }
///
/// True if images are picked in random order
///
public bool? IsRandom { get; set; }
///
/// true if it's enabled
///
public bool? IsEnabled { get; set; }
///
/// Time interval until next image is shown or null to use the default value
///
public TimeSpan? Interval { get; set; }
}
}