dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing.Xsharp DrawingToolkit


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System.Drawing.Xsharp DrawingToolkit.cs,1.8,1.9 DrawingTopLevelWindow.cs,1.5,1.6 DrawingWindow.cs,1.4,1.5
Date: Sun, 22 Jun 2003 00:07:55 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp
In directory subversions:/tmp/cvs-serv5798/System.Drawing.Xsharp

Modified Files:
        DrawingToolkit.cs DrawingTopLevelWindow.cs DrawingWindow.cs 
Log Message:


Change the way that client area adjustments are performed.


Index: DrawingToolkit.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp/DrawingToolkit.cs,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** DrawingToolkit.cs   21 Jun 2003 11:22:19 -0000      1.8
--- DrawingToolkit.cs   22 Jun 2003 04:07:52 -0000      1.9
***************
*** 490,493 ****
--- 490,509 ----
                        }
  
+       // Get the adjustment values for a top-level window, to convert
+       // between window bounds and client bounds.  Each value should
+       // be >= 0 and indicate the number of pixels to subtract from the
+       // windows bounds to get the client bounds.
+       public void GetWindowAdjust(out int leftAdjust, out int topAdjust,
+                                                       out int rightAdjust, 
out int bottomAdjust,
+                                                               
ToolkitWindowFlags flags)
+                       {
+                               // X adds borders separately in the window 
manager.
+                               // They are not counted in the size of the app 
window.
+                               leftAdjust = 0;
+                               topAdjust = 0;
+                               rightAdjust = 0;
+                               bottomAdjust = 0;
+                       }
+ 
  }; // class DrawingToolkit
  

Index: DrawingTopLevelWindow.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp/DrawingTopLevelWindow.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** DrawingTopLevelWindow.cs    22 Jun 2003 03:19:45 -0000      1.5
--- DrawingTopLevelWindow.cs    22 Jun 2003 04:07:52 -0000      1.6
***************
*** 223,235 ****
                        }
  
-       // Get the adjustment values for the client area.
-       // On entry, all values are zero.
-       void IToolkitWindow.GetClientAreaAdjust
-                               (ref int leftAdjust, ref int topAdjust,
-                                ref int rightAdjust, ref int bottomAdjust)
-                       {
-                               // Nothing to do in this implementation.
-                       }
- 
        // Move this window to above one of its siblings.
        void IToolkitWindow.MoveToAbove(IToolkitWindow sibling)
--- 223,226 ----

Index: DrawingWindow.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing.Xsharp/DrawingWindow.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** DrawingWindow.cs    12 Jun 2003 05:50:29 -0000      1.4
--- DrawingWindow.cs    22 Jun 2003 04:07:52 -0000      1.5
***************
*** 169,181 ****
                        }
  
-       // Get the adjustment values for the client area.
-       // On entry, all values are zero.
-       void IToolkitWindow.GetClientAreaAdjust
-                               (ref int leftAdjust, ref int topAdjust,
-                                ref int rightAdjust, ref int bottomAdjust)
-                       {
-                               // Nothing to do in this implementation.
-                       }
- 
        // Move this window to above one of its siblings.
        void IToolkitWindow.MoveToAbove(IToolkitWindow sibling)
--- 169,172 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]