--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">Linux_x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{819640AC-C8B0-4E4A-9845-B24D5402F836}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>LinuxCrow</RootNamespace>
+ <AssemblyName>LinuxCrow</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|Linux_x86' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|Linux_x86' ">
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+</Project>
\ No newline at end of file
{
public class Interface : ILayoutable
{
- public delegate void ResizeDelegatePrototype(Rectangle bounds);
- public delegate void LoaderDelegatePrototype (string path);
- public ResizeDelegatePrototype ResizeDelegate;
- public LoaderDelegatePrototype LoadInterfaceDelegate;
-
#region CTOR
static Interface(){
Interface.LoadCursors ();
}
public Interface(){
Interface.CurrentInterface = this;
-
- LoadInterfaceDelegate = new LoaderDelegatePrototype(InterfaceLoad);
- ResizeDelegate = new ResizeDelegatePrototype (ProcessResize);
}
#endregion
FocusedWidget.onMouseClick (this, new MouseButtonEventArgs (Mouse.X, Mouse.Y, MouseButton.Left, true));
}
}
+ if (!Monitor.TryEnter (UpdateMutex))
+ return;
- lock (UpdateMutex) {
- processLayouting ();
+ processLayouting ();
- clippingRegistration ();
+ clippingRegistration ();
- processDrawing ();
- }
+ processDrawing ();
+
+ Monitor.Exit (UpdateMutex);
// if (ToolTip.isVisible) {
// ToolTip.panel.processkLayouting();
foreach (GraphicObject p in RedrawList) {
try {
p.IsInRedrawList = false;
+ if (p.Parent == null)
+ continue;
p.Parent.RegisterClip (p.LastPaintedSlot);
p.Parent.RegisterClip (p.getSlot ());
} catch (Exception ex) {