111 |
return colorrgb; |
return colorrgb; |
112 |
} |
} |
113 |
|
|
114 |
|
[TODO] |
115 |
// Create an IToolkitGraphics object from a HDC. |
// Create an IToolkitGraphics object from a HDC. |
|
//TODO |
|
116 |
public IToolkitGraphics CreateFromHdc(IntPtr hdc, IntPtr hdevice) |
public IToolkitGraphics CreateFromHdc(IntPtr hdc, IntPtr hdevice) |
117 |
{ |
{ |
118 |
// This is tricky - maybe we have to keep track of which hdc's we create? |
// This is tricky - maybe we have to keep track of which hdc's we create? |
119 |
return null; |
return null; |
120 |
} |
} |
121 |
|
|
122 |
|
[TODO] |
123 |
// Create an IToolkitGraphics object from a HWND. |
// Create an IToolkitGraphics object from a HWND. |
|
//TODO |
|
124 |
public IToolkitGraphics CreateFromHwnd(IntPtr hwnd) |
public IToolkitGraphics CreateFromHwnd(IntPtr hwnd) |
125 |
{ |
{ |
126 |
return null; |
return null; |
151 |
return new DrawingXorBrush(this, innerBrush); |
return new DrawingXorBrush(this, innerBrush); |
152 |
} |
} |
153 |
|
|
154 |
|
[TODO] |
155 |
// Create a linear gradient brush. |
// Create a linear gradient brush. |
|
//TODO |
|
156 |
public IToolkitBrush CreateLinearGradientBrush |
public IToolkitBrush CreateLinearGradientBrush |
157 |
(RectangleF rect, System.Drawing.Color color1, |
(RectangleF rect, System.Drawing.Color color1, |
158 |
System.Drawing.Color color2, |
System.Drawing.Color color2, |
161 |
return null; |
return null; |
162 |
} |
} |
163 |
|
|
164 |
//TODO |
[TODO] |
165 |
public IToolkitBrush CreateLinearGradientBrush |
public IToolkitBrush CreateLinearGradientBrush |
166 |
(RectangleF rect, System.Drawing.Color color1, |
(RectangleF rect, System.Drawing.Color color1, |
167 |
System.Drawing.Color color2, float angle, |
System.Drawing.Color color2, float angle, |
201 |
(new FontFamily(GenericFontFamilies.SansSerif), 9.0f); |
(new FontFamily(GenericFontFamilies.SansSerif), 9.0f); |
202 |
} |
} |
203 |
|
|
204 |
|
[TODO] |
205 |
// Get the handle for the halftone palette. IntPtr.Zero if not supported. |
// Get the handle for the halftone palette. IntPtr.Zero if not supported. |
|
//TODO |
|
206 |
public IntPtr GetHalftonePalette() |
public IntPtr GetHalftonePalette() |
207 |
{ |
{ |
208 |
return IntPtr.Zero; |
return IntPtr.Zero; |
217 |
return window; |
return window; |
218 |
} |
} |
219 |
|
|
220 |
|
[TODO] |
221 |
// Create a top-level dialog shell. |
// Create a top-level dialog shell. |
|
//TODO |
|
222 |
public IToolkitWindow CreateTopLevelDialog |
public IToolkitWindow CreateTopLevelDialog |
223 |
(int width, int height, bool modal, bool resizable, |
(int width, int height, bool modal, bool resizable, |
224 |
IToolkitWindow dialogParent, IToolkitEventSink sink) |
IToolkitWindow dialogParent, IToolkitEventSink sink) |
285 |
return window; |
return window; |
286 |
} |
} |
287 |
|
|
288 |
|
[TODO] |
289 |
// Create an MDI client area. |
// Create an MDI client area. |
290 |
public IToolkitMdiClient CreateMdiClient |
public IToolkitMdiClient CreateMdiClient |
291 |
(IToolkitWindow parent, int x, int y, int width, int height, |
(IToolkitWindow parent, int x, int y, int width, int height, |
292 |
IToolkitEventSink sink) |
IToolkitEventSink sink) |
293 |
{ |
{ |
|
// TODO |
|
294 |
return null; |
return null; |
295 |
} |
} |
296 |
|
|
297 |
|
[TODO] |
298 |
// Get a list of all font families on this system, or all font |
// Get a list of all font families on this system, or all font |
299 |
// families that are compatible with a particular IToolkitGraphics. |
// families that are compatible with a particular IToolkitGraphics. |
|
//TODO |
|
300 |
public FontFamily[] GetFontFamilies(IToolkitGraphics graphics) |
public FontFamily[] GetFontFamilies(IToolkitGraphics graphics) |
301 |
{ |
{ |
302 |
// We only support three font families. Extend later. |
// We only support three font families. Extend later. |
350 |
} |
} |
351 |
} |
} |
352 |
|
|
353 |
|
[TODO] |
354 |
// Get the IToolkitFont that corresponds to a hdc's current font. |
// Get the IToolkitFont that corresponds to a hdc's current font. |
355 |
// Returns null if there is no way to obtain the information. |
// Returns null if there is no way to obtain the information. |
|
//TODO |
|
356 |
public IToolkitFont GetFontFromHdc(IntPtr hdc) |
public IToolkitFont GetFontFromHdc(IntPtr hdc) |
357 |
{ |
{ |
358 |
return null; |
return null; |
359 |
} |
} |
360 |
|
|
361 |
|
[TODO] |
362 |
// Get the IToolkitFont that corresponds to a native font object. |
// Get the IToolkitFont that corresponds to a native font object. |
363 |
// Returns null if there is no way to obtain the information. |
// Returns null if there is no way to obtain the information. |
|
//TODO |
|
364 |
public IToolkitFont GetFontFromHfont(IntPtr hfont) |
public IToolkitFont GetFontFromHfont(IntPtr hfont) |
365 |
{ |
{ |
366 |
return null; |
return null; |
367 |
} |
} |
368 |
|
|
369 |
|
[TODO] |
370 |
// Get the IToolkitFont that corresponds to LOGFONT information. |
// Get the IToolkitFont that corresponds to LOGFONT information. |
371 |
// Returns null if there is no way to obtain the information. |
// Returns null if there is no way to obtain the information. |
|
//TODO |
|
372 |
public IToolkitFont GetFontFromLogFont(Object lf, IntPtr hdc) |
public IToolkitFont GetFontFromLogFont(Object lf, IntPtr hdc) |
373 |
{ |
{ |
374 |
return null; |
return null; |
746 |
} |
} |
747 |
} |
} |
748 |
|
|
749 |
|
[TODO] |
750 |
// Get the clipboard handler for this toolkit, or null if no clipboard. |
// Get the clipboard handler for this toolkit, or null if no clipboard. |
751 |
public IToolkitClipboard GetClipboard() |
public IToolkitClipboard GetClipboard() |
752 |
{ |
{ |
|
// TODO |
|
753 |
return null; |
return null; |
754 |
} |
} |
755 |
|
|