aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/src/DesignInterface.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-11-13 14:48:41 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-11-13 14:48:41 +0100
commit8263c199f9ba3f6032c22fb4f6d1c67bbbdc65cb (patch)
treeeaa13435028ef4cc8f13c1b5518f3c1f064cb8e6 /CrowIDE/src/DesignInterface.cs
parentf1531e562b4ecd9d568a28c2fffe7ffed06c728a (diff)
first try with xlib
Diffstat (limited to 'CrowIDE/src/DesignInterface.cs')
-rw-r--r--CrowIDE/src/DesignInterface.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/CrowIDE/src/DesignInterface.cs b/CrowIDE/src/DesignInterface.cs
index 04666b11..ff4944e8 100644
--- a/CrowIDE/src/DesignInterface.cs
+++ b/CrowIDE/src/DesignInterface.cs
@@ -59,6 +59,27 @@ namespace Crow.Coding
public ProjectFile ProjFile;
+
+ protected override void initX ()
+ {
+ surf = CrowIDE.MainIFace.surf.CreateSimilar (Cairo.Content.ColorAlpha, 100, 100);
+ //base.initX ();
+ }
+ public override void ProcessResize (Rectangle bounds)
+ {
+ lock (UpdateMutex) {
+ clientRectangle = bounds;
+ surf.Dispose ();
+ surf = CrowIDE.MainIFace.surf.CreateSimilar (Cairo.Content.ColorAlpha, clientRectangle.Width, clientRectangle.Height);
+
+
+ foreach (GraphicObject g in GraphicTree)
+ g.RegisterForLayouting (LayoutingType.All);
+
+ RegisterClip (clientRectangle);
+ }
+
+ }
public override GraphicObject Load (string path)
{
ProjectFile pi;