[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnetlib/System.Drawing/Toolkit IToolkitTopLevelWin
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnetlib/System.Drawing/Toolkit IToolkitTopLevelWindow.cs, NONE, 1.1 IToolkit.cs, 1.19, 1.20 IToolkitWindow.cs, 1.10, 1.11 NullToolkit.cs, 1.10, 1.11 |
Date: |
Mon, 01 Dec 2003 00:23:29 +0000 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit
In directory subversions:/tmp/cvs-serv6883/System.Drawing/Toolkit
Modified Files:
IToolkit.cs IToolkitWindow.cs NullToolkit.cs
Added Files:
IToolkitTopLevelWindow.cs
Log Message:
Add the "IToolkitTopLevelWindow" interface to encapsulate top-level
window operations; implement some more top-level window operations in "Form".
Index: NullToolkit.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit/NullToolkit.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** NullToolkit.cs 30 Nov 2003 05:50:40 -0000 1.10
--- NullToolkit.cs 1 Dec 2003 00:23:27 -0000 1.11
***************
*** 145,150 ****
// Create a top-level application window.
! public virtual IToolkitWindow CreateTopLevelWindow(int width, int
height,
!
IToolkitEventSink sink)
{
return null;
--- 145,150 ----
// Create a top-level application window.
! public virtual IToolkitTopLevelWindow CreateTopLevelWindow
! (int width, int height, IToolkitEventSink sink)
{
return null;
Index: IToolkitWindow.cs
===================================================================
RCS file:
/cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit/IToolkitWindow.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** IToolkitWindow.cs 16 Nov 2003 20:28:49 -0000 1.10
--- IToolkitWindow.cs 1 Dec 2003 00:23:27 -0000 1.11
***************
*** 63,69 ****
void Lower();
- // Iconify the window (top-level windows only).
- void Iconify();
-
// Reparent this window to underneath a new parent.
void Reparent(IToolkitWindow parent, int x, int y);
--- 63,66 ----
***************
*** 72,78 ****
IToolkitGraphics GetGraphics();
- // Set the window title (top-level windows only).
- void SetTitle(String title);
-
// Set the foreground of the window to a solid color.
void SetForeground(Color color);
--- 69,72 ----
***************
*** 80,86 ****
// Set the background of the window to a solid color.
void SetBackground(Color color);
-
- // Change the set of supported window decorations and functions.
- void SetWindowFlags(ToolkitWindowFlags flags);
// Move this window to above one of its siblings.
--- 74,77 ----
--- NEW FILE: IToolkitTopLevelWindow.cs ---
/*
* IToolkitTopLevelWindow.cs - Implementation of the
* "System.Drawing.Toolkit.IToolkitTopLevelWindow" class.
*
* Copyright (C) 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
namespace System.Drawing.Toolkit
{
// This interface extends IToolkitWindow to include window manager functions.
[NonStandardExtra]
public interface IToolkitTopLevelWindow : IToolkitWindow
{
// Iconify the window.
void Iconify();
// Maximize the window.
void Maximize();
// Restore the window from its iconified or maximized state.
void Restore();
// Set the owner for modal and modeless dialog support.
void SetDialogOwner(IToolkitTopLevelWindow owner);
// Set this window's icon.
void SetIcon(Icon icon);
// Set this window's maximum size.
void SetMaximumSize(Size size);
// Set this window's minimum size.
void SetMinimumSize(Size size);
// Set the window title.
void SetTitle(String title);
// Change the set of supported window decorations and functions.
void SetWindowFlags(ToolkitWindowFlags flags);
}; // interface IToolkitWindow
}; // namespace System.Drawing.Toolkit
Index: IToolkit.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit/IToolkit.cs,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** IToolkit.cs 30 Nov 2003 05:50:40 -0000 1.19
--- IToolkit.cs 1 Dec 2003 00:23:26 -0000 1.20
***************
*** 98,103 ****
// Create a top-level application window.
! IToolkitWindow CreateTopLevelWindow(int width, int height,
!
IToolkitEventSink sink);
// Create a top-level dialog shell.
--- 98,103 ----
// Create a top-level application window.
! IToolkitTopLevelWindow CreateTopLevelWindow
! (int width, int height, IToolkitEventSink sink);
// Create a top-level dialog shell.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnetlib/System.Drawing/Toolkit IToolkitTopLevelWindow.cs, NONE, 1.1 IToolkit.cs, 1.19, 1.20 IToolkitWindow.cs, 1.10, 1.11 NullToolkit.cs, 1.10, 1.11,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] pnetlib/System.Drawing.Win32 DrawingToolkit.cs, 1.23, 1.24 DrawingTopLevelWindow.cs, 1.7, 1.8 DrawingWindow.cs, 1.22, 1.23
- Next by Date:
[Dotgnu-pnet-commits] pnetlib ChangeLog,1.1567,1.1568
- Previous by thread:
[Dotgnu-pnet-commits] pnetlib/System.Drawing.Win32 DrawingToolkit.cs, 1.23, 1.24 DrawingTopLevelWindow.cs, 1.7, 1.8 DrawingWindow.cs, 1.22, 1.23
- Next by thread:
[Dotgnu-pnet-commits] pnetlib ChangeLog,1.1567,1.1568
- Index(es):