README.md = README.md
EndProjectSection
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Crow", "Crow\Crow.csproj", "{C2980F9B-4798-4C05-99E2-E174810F7C7B}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Crow", "Crow\Crow.csproj", "{C2980F9B-4798-4C05-99E2-E174810F7C7B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{B2C7855A-2878-47FD-AD32-9A83DB4AB8C6}"
ProjectSection(SolutionItems) = preProject
- Samples\Directory.Build.props = Samples\Directory.Build.props
+ Samples\Directory.Build.props = Samples\Directory.Build.props
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloWorld", "Samples\HelloWorld\HelloWorld.csproj", "{F535A8AB-CD93-49AB-B1B0-FFF9AE51ED6A}"
<ItemGroup Condition="$(TargetFramework.StartsWith('netstandard'))">
<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.6.0" />
<PackageReference Include="System.Reflection.Emit.Lightweight" Version="4.6.0" />
- <PackageReference Include="glfw-sharp" Version="0.2.6-beta" />
+ <PackageReference Include="glfw-sharp" Version="0.2.7-beta" />
<PackageReference Include="FastEnum" Version="1.5.3" />
</ItemGroup>
<PropertyGroup Condition=" '$(CrowStbSharp)' == 'true'">
}*/
public static implicit operator Color (Colors c) => new Color ((UInt32)c);
+ public static implicit operator Colors (Color c) => (Colors)c.value;
public static bool operator ==(Color a, Color b) => a.Equals (b);
public static bool operator != (Color a, Color b) => !a.Equals (b);
{
return color.GetHashCode();
}
- public override bool Equals (object obj)
- => obj is Color c ? color.Equals (c) : obj is SolidColor sc && color.Equals (sc.color);
-
-// public static bool operator ==(SolidColor c, string n)
-// {
-// return c.color.Name == n ? true : false;
-// }
-// public static bool operator !=(SolidColor c, string n)
-// {
-// return c.color.Name == n ? false : true;
-// }
-// public static bool operator ==(string n, SolidColor c)
-// {
-// return c.color.Name == n ? true : false;
-// }
-// public static bool operator !=(string n, SolidColor c)
-// {
-// return c.color.Name == n ? false : true;
-// }
+ public override bool Equals (object obj)
+ => obj is Color c ? color.Equals (c) : obj is Colors cl ? color.Equals(cl) : obj is SolidColor sc && color.Equals (sc.color);
public static SolidColor operator *(SolidColor c, Double f)
{
return new SolidColor(new Color(c.color.R,c.color.G,c.color.B,c.color.A * f));
{
return new SolidColor(new Color(c1.color.R - c2.color.R,c1.color.G - c2.color.G,c1.color.B - c2.color.B,c1.color.A - c2.color.A));
}
- #endregion
+ #endregion
public override string ToString()
{
public Queue<LayoutingQueueItem> DiscardQueue;
/// <summary>Main drawing queue, holding layouted controls</summary>
public Queue<Widget> ClippingQueue = new Queue<Widget>();
- public string Clipboard;//TODO:use object instead for complex copy paste
+ //TODO:use object instead for complex copy paste
+ public string Clipboard {
+ get => Glfw3.GetClipboardString (hWin);
+ set => Glfw3.SetClipboardString (hWin, value);
+ }
/// <summary>each IML and fragments (such as inline Templates) are compiled as a Dynamic Method stored here
/// on the first instance creation of a IML item.
/// </summary>
<ScrollBar Style="HScrollBar"/>
</VerticalStack>
<VerticalStack Width="200" Height="Fit" Spacing="0">
- <Slider Name="margin" Background="DarkSlateGrey" Foreground="Black" />
+ <Slider Name="margin" Background="DarkSlateGrey" Foreground="Black" Value="0" />
<Label Background="DarkSlateGrey" Foreground="Black" Margin="{../margin.Value}" />
<TextBox Background="DarkSlateGrey" Foreground="Black" Margin="{../margin.Value}"/>
<Button Background="DarkSlateGrey" Foreground="Black" Margin="{../margin.Value}" />