2020-04-23 03:29:52 +02:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// <remarks>Up-to-date with Electron API 39.2</remarks>
|
2020-04-23 03:29:52 +02:00
|
|
|
|
public class AutoResizeOptions
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// If `true`, the view's width will grow and shrink together with the window.
|
|
|
|
|
|
/// `false` by default.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DefaultValue(false)]
|
|
|
|
|
|
public bool Width { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// If `true`, the view's height will grow and shrink together with the window.
|
|
|
|
|
|
/// `false` by default.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DefaultValue(false)]
|
|
|
|
|
|
public bool Height { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// If `true`, the view's x position and width will grow and shrink proportionally
|
|
|
|
|
|
/// with the window. `false` by default.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DefaultValue(false)]
|
|
|
|
|
|
public bool Horizontal { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// If `true`, the view's y position and height will grow and shrink proportionally
|
|
|
|
|
|
/// with the window. `false` by default.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DefaultValue(false)]
|
|
|
|
|
|
public bool Vertical { get; set; } = false;
|
|
|
|
|
|
}
|
2025-11-15 08:05:31 +01:00
|
|
|
|
}
|