Remove WinForms dependency from BizHawk.Client.Common (used in ApiHawk)
This commit is contained in:
parent
3afcf416e8
commit
4d4496af0d
|
@ -1,7 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Drawing.Imaging;
|
using System.Drawing.Imaging;
|
||||||
using System.Windows.Forms;
|
|
||||||
|
|
||||||
namespace BizHawk.Client.Common
|
namespace BizHawk.Client.Common
|
||||||
{
|
{
|
||||||
|
@ -20,7 +19,7 @@ namespace BizHawk.Client.Common
|
||||||
void SetPadding(int all);
|
void SetPadding(int all);
|
||||||
void SetPadding(int x, int y);
|
void SetPadding(int x, int y);
|
||||||
void SetPadding(int l, int t, int r, int b);
|
void SetPadding(int l, int t, int r, int b);
|
||||||
Padding GetPadding();
|
(int Left, int Top, int Right, int Bottom) GetPadding();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
void AddMessage(string message);
|
void AddMessage(string message);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</Reference>
|
</Reference>
|
||||||
<!--<Reference Include="System.Drawing" />-->
|
<!--<Reference Include="System.Drawing" />-->
|
||||||
<Reference Include="System.IO.Compression" />
|
<Reference Include="System.IO.Compression" />
|
||||||
<Reference Include="System.Windows.Forms" />
|
<!--<Reference Include="System.Windows.Forms" />-->
|
||||||
<!--<Reference Include="System.Xml" />-->
|
<!--<Reference Include="System.Xml" />-->
|
||||||
<!--<Reference Include="System.Xml.Linq" />-->
|
<!--<Reference Include="System.Xml.Linq" />-->
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
|
@ -102,7 +102,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public void SetPadding(int l, int t, int r, int b) => _padding = new Padding(l, t, r, b);
|
public void SetPadding(int l, int t, int r, int b) => _padding = new Padding(l, t, r, b);
|
||||||
|
|
||||||
public Padding GetPadding() => _padding;
|
public (int Left, int Top, int Right, int Bottom) GetPadding() => (_padding.Left, _padding.Top, _padding.Right, _padding.Bottom);
|
||||||
|
|
||||||
public void AddMessage(string message) => GlobalWin.OSD.AddMessage(message);
|
public void AddMessage(string message) => GlobalWin.OSD.AddMessage(message);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue