37 |
private bool hasCapture; |
private bool hasCapture; |
38 |
private static Xsharp.Cursor[] cursors; |
private static Xsharp.Cursor[] cursors; |
39 |
|
|
40 |
|
|
41 |
// Constructor. |
// Constructor. |
42 |
public DrawingWindow(IToolkit toolkit, Widget parent, |
public DrawingWindow(IToolkit toolkit, Widget parent, |
43 |
int x, int y, int width, int height, IToolkitEventSink sink) |
int x, int y, int width, int height, IToolkitEventSink sink) |
48 |
this.AutoMapChildren = false; |
this.AutoMapChildren = false; |
49 |
} |
} |
50 |
|
|
51 |
|
|
52 |
// Get the toolkit that owns this window. |
// Get the toolkit that owns this window. |
53 |
public IToolkit Toolkit |
public IToolkit Toolkit |
54 |
{ |
{ |
189 |
// Move this window to above one of its siblings. |
// Move this window to above one of its siblings. |
190 |
void IToolkitWindow.MoveToAbove(IToolkitWindow sibling) |
void IToolkitWindow.MoveToAbove(IToolkitWindow sibling) |
191 |
{ |
{ |
192 |
// TODO |
// Move this window below the sibling widget. |
193 |
|
MoveToAbove(sibling as Widget); |
194 |
} |
} |
195 |
|
|
196 |
// Move this window to below one of its siblings. |
// Move this window to below one of its siblings. |
197 |
void IToolkitWindow.MoveToBelow(IToolkitWindow sibling) |
void IToolkitWindow.MoveToBelow(IToolkitWindow sibling) |
198 |
{ |
{ |
199 |
// TODO |
// Move this window below the sibling widget. |
200 |
|
MoveToBelow(sibling as Widget); |
201 |
} |
} |
202 |
|
|
203 |
// Get the HWND for this window. IntPtr.Zero if not supported. |
// Get the HWND for this window. IntPtr.Zero if not supported. |
236 |
ModifyCursor(this, cursorType, frame); |
ModifyCursor(this, cursorType, frame); |
237 |
} |
} |
238 |
|
|
239 |
|
|
240 |
// Map an Xsharp key description into a "ToolkitKeys" value. |
// Map an Xsharp key description into a "ToolkitKeys" value. |
241 |
private static ToolkitKeys MapKey(KeyName key) |
private static ToolkitKeys MapKey(KeyName key) |
242 |
{ |
{ |
606 |
} |
} |
607 |
} |
} |
608 |
} |
} |
609 |
|
|
610 |
// Convert an Xsharp.Region to System.Drawing.Region |
// Convert an Xsharp.Region to System.Drawing.Region |
611 |
internal static System.Drawing.Region RegionToDrawingRegion |
internal static System.Drawing.Region RegionToDrawingRegion |
612 |
(Xsharp.Region region) |
(Xsharp.Region region) |
736 |
} |
} |
737 |
} |
} |
738 |
|
|
739 |
void IToolkitWindow.SendBeginInvoke(IntPtr i_gch) |
void IToolkitWindow.SendBeginInvoke(IntPtr i_gch) |
740 |
{ |
{ |
741 |
base.SendBeginInvoke(i_gch); |
base.SendBeginInvoke(i_gch); |
742 |
} |
} |