VRDash/VRDash/Overlay/Config/BrowserOverlayConfig.cs

55 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VRDash.Overlay.Config.OverlayLocation;
namespace VRDash.Overlay.Config
{
public class BrowserOverlayConfig : IOverlayConfig
{
public string Name { get; set; }
public string Key { get; set; }
public float OverlayWidth { get; set; } = 2.5f;
public IOverlayLocation Location { get; set; }
public string Content { get; set; }
public BrowserOverlayContentType ContentType { get; set; }
public event EventHandler SizeUpdated;
private int m_Width = 600;
public int Width
{
get { return m_Width; }
set
{
m_Width = value;
SizeUpdated?.Invoke(this, null);
}
}
private int m_Height = 600;
public int Height
{
get { return m_Height; }
set
{
m_Height = value;
SizeUpdated?.Invoke(this, null);
}
}
public void Initialize(IOverlay overlay)
{
//Nothing needs to be done here
}
public enum BrowserOverlayContentType
{
Url=0,
Html=1
}
}
}