<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
- <AssemblyVersion>1.1.0</AssemblyVersion>
+ <AssemblyVersion>1.2.0</AssemblyVersion>
<PackageVersion>$(AssemblyVersion)-beta</PackageVersion>
<Title>C.R.O.W Cairo Backend</Title>
{
IContext ctx = base.PrepareUIFrame (existingContext, clipping);
- //clear(ctx);
+ clear(ctx);
for (int i = 0; i < clipping.NumRectangles; i++)
ctx.Rectangle (clipping.GetRectangle (i));
</ItemGroup>
<ItemGroup>
- <PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.0-preview.155" />
+ <!--<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="2.88.0-preview.155" />-->
+ <PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="3.118.0-preview.1.2" />
<PackageReference Include="Svg.Skia" Version="0.5.10" />
<PackageReference Include="vke" Version="0.2.4-beta" />
<!--<PackageReference Include="SkiaSharp" Version=" 2.88.0-preview.155" />-->
internal vke.Image Img => img;
- public void Flush() => skSurf.Flush ();
+ public void Flush() => skSurf.Canvas.Flush();
public void Resize(int width, int height)
{
<ItemGroup>
<PackageReference Include="vke" Version="0.2.0-beta" />
- <PackageReference Include="vkvg.net" Version="0.7.0-beta" />
+ <PackageReference Include="vkvg.net" Version="0.8.0-beta" />
<ProjectReference Include="..\..\Drawing2D\Drawing2D.csproj" />
</ItemGroup>
graphicQueue = new Queue (dev, VkQueueFlags.Graphics);
dev.Activate (enabledFeatures);
- vkvgDev = new Device (
- instance.Handle, phy.Handle, dev.VkDev.Handle, graphicQueue.qFamIndex, samples);
+ DeviceCreateInfo info = new DeviceCreateInfo {
+ samples = this.samples,
+ deferredResolve = false,
+ inst = instance.Handle,
+ phy = phy.Handle,
+ vkdev = dev.VkDev.Handle,
+ qFamIdx = graphicQueue.qFamIndex,
+ qIndex = 0
+ };
+
+ vkvgDev = new vkvg.Device (info);
surf = new Surface (vkvgDev, (int)width, (int)height);
}
cmdPool.SetName ("main CmdPool");
- vkvgDev = new Device (
- instance.Handle, phy.Handle, dev.VkDev.Handle, graphicQueue.qFamIndex, samples);
+ DeviceCreateInfo info = new DeviceCreateInfo {
+ samples = this.samples,
+ deferredResolve = false,
+ inst = instance.Handle,
+ phy = phy.Handle,
+ vkdev = dev.VkDev.Handle,
+ qFamIdx = graphicQueue.qFamIndex,
+ qIndex = 0
+ };
+ vkvgDev = new vkvg.Device (info);
vkvgDev.SetDpy (72,72);
createMainSurface ((uint)width, (uint)height);
Height = "Fit";
//Text = "TextBox";
Margin = "1";
+ BubbleEvents= "None";
}
Menu {
Margin = "0";
<?xml version="1.0"?>
<Border Name="SizeHandle" BorderWidth="1" Foreground="Black" CornerRadius="{./CornerRadius}" StickyMouse="8" StickyMouseEnabled="{./IsFloating}"
Background="{./Background}">
- <VerticalStack Spacing="0">
+ <VerticalStack Spacing="0" Name="MoveHandle">
<HorizontalStack Visible="{./IsDocked}" Height="Fit" Margin="1" Background="vgradient|0:0.3,0.5,0.8,0.9|1:0.1,0.1,0.1,0.9">
<Label Text="{./CurDir}" TextAlignment="Left" Width="Stretched"
Foreground="White" />
} else
throw new Exception ("docking error");
- IFace.AddWidget (this);
+ if (floatingGroup is null)
+ IFace.AddWidget (this);
+ else
+ floatingGroup.AddChild(this);
Left = IFace.MousePosition.X - 10;
Top = IFace.MousePosition.Y - 10;
Undock ();
return true;
}
- void dock () {
- IFace.RemoveWidget (this);
+ void unfloat () {
+ if (Parent == IFace) {
+ IFace.RemoveWidget (this);
+ } else {
+ floatingGroup = Parent as Group;
+ floatingGroup.RemoveChild(this);
+ }
undockingMousePosOrig = IFace.MousePosition;
//undockingMousePosOrig = lastMousePos;
}
void Dock (DockWindow target) {
lock (IFace.UpdateMutex) {
- dock ();
+ unfloat ();
if (target.LogicalParent is TabView tv) {
tv.AddItem (this);
}
void Dock (DockStack target){
lock (IFace.UpdateMutex) {
- dock ();
+ unfloat ();
target.Dock (this);
}
token.Append (ReadChar ());
while (nextCharIsValidCharName)
token.Append (ReadChar ());
+ } else {
+ throw new ParserException (line, column, $"Unexpected char ({ReadChar ()})", resId);
}
break;
}
<Authors>Jean-Philippe Bruyère</Authors>
<LangVersion>7.3</LangVersion>
- <CrowVersion>1.3.0</CrowVersion>
+ <CrowVersion>1.3.1</CrowVersion>
<CrowPackageVersion>$(CrowVersion)-beta</CrowPackageVersion>
<!-- If you dont have a native libstb on your system, enable the managed version of stb here
FpsLabel {
Width = "30";
- Font = "droid, 10";
+ Font = "mono, 10";
Margin = "0";
TextAlignment = "Center";
}
FpsDisp {
- Font = "droid bold, 10";
+ Font = "mono bold, 10";
Width = "60";
Margin = "0";
CornerRadius = "3";
Unchecked = "{Background=Jet}";
}
labPerf {
- Font = "droid, 8";
+ Font = "mono, 8";
Width = "50%";
}
labPerfVal{
- Font = "droid, 8";
+ Font = "mono, 8";
Width = "50%";
}
DbgLogViewer{
//DragLeave="{Background=Transparent}";
//EndDrag="{Background=Jet}";
}
-
+SimpleDockWin {
+ Template= "#ui.dockwinsimple.itmp";
+ Background = "Yellow";
+ Width="200";
+ Height="200";
+ Movable="true";
+ CacheEnabled="false";
+}
valignStyle {
Template="#ui.enumSingleSVG.itmp";
Checked="{Background=MediumSeaGreen}";