Add support for clipboard

Signed-off-by: Ritchie Frodomar <alkalinethunder@gmail.com>
This commit is contained in:
Ritchie Frodomar 2024-08-24 14:01:25 -04:00
parent 1d15be232e
commit 5cca93ffa3
7 changed files with 6 additions and 19 deletions

View file

@ -12,7 +12,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="1.0.0.172" />
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="1.0.0.176" />
</ItemGroup>
</Project>

View file

@ -1,14 +0,0 @@
namespace AcidicGUI;
public static class Clipboard
{
public static string GetText()
{
return SdlPlatform.GetClipboardText();
}
public static void SetText(string text)
{
SdlPlatform.SetClipboardText(text);
}
}

View file

@ -2138,7 +2138,7 @@ public class SimpleTerminal
case SelectionSnap.SnapWord:
/*
* Snap around if the word wraps around at the end or
* beginning of a line.
* begi nning of a line.
*/
prevgp = Tline(y).Glyphs[x];
prevdelim = Isdelim(prevgp.Character);

View file

@ -6,6 +6,7 @@ using AcidicGUI.TextRendering;
using AcidicGUI.Widgets;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using MonoGame.Framework.Utilities;
using SociallyDistant.Core.Modules;
using SociallyDistant.Core.OS.Devices;
using SociallyDistant.Core.OS.Network.MessageTransport;

View file

@ -23,7 +23,7 @@
<PackageReference Include="AutoPipeline" Version="0.0.2" />
<PackageReference Include="FuzzySharp" Version="2.0.2" />
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" />
<PackageReference Include="MonoGame.Content.Builder.Task" Version="1.0.0.172" />
<PackageReference Include="MonoGame.Content.Builder.Task" Version="1.0.0.176" />
</ItemGroup>
<ItemGroup>

View file

@ -16,7 +16,7 @@
<PackageReference Include="FontStashSharp.Base" Version="$(FontStashSharpBaseVersion)" />
<PackageReference Include="FontStashSharp.Rasterizers.StbTrueTypeSharp" Version="$(FontStashSharpBaseVersion)" />
<PackageReference Include="Cyotek.Drawing.BitmapFont" Version="$(CyotekDrawingBitmapFontVersion)" />
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="1.0.0.172" />
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="1.0.0.176" />
<PackageReference Include="StbImageSharp" Version="$(StbImageSharpVersion)" />
</ItemGroup>

View file

@ -47,7 +47,7 @@
<ItemGroup>
<PackageReference Include="ImGui.NET" Version="1.90.1.1" />
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="1.0.0.172" />
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="1.0.0.176" />
</ItemGroup>
<Target Name="RestoreDotnetTools" BeforeTargets="Restore">