[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-libs-commits] CVS: xsharp/samples Effects.cs,NONE,1.1 Makefile.a
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-libs-commits] CVS: xsharp/samples Effects.cs,NONE,1.1 Makefile.am,1.2,1.3 samples.build,1.2,1.3 |
Date: |
Mon, 30 Sep 2002 18:01:59 -0400 |
Update of /cvsroot/dotgnu-libs/xsharp/samples
In directory subversions:/tmp/cvs-serv20231/samples
Modified Files:
Makefile.am samples.build
Added Files:
Effects.cs
Log Message:
Canvas drawing for 3D effects.
--- NEW FILE ---
/*
* Effects.cs - Draw 3D effects for testing.
*
* This file is part of the X# library.
* Copyright (C) 2002 Southern Storm Software, Pty Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
using System;
using XWindows;
public class Effects
{
// Main entry point.
public static void Main(String[] args)
{
Application app = new Application("Effects", args);
TopLevelWindow topLevel = new TopLevelWindow("Effects", 300,
250);
topLevel.Paint += new PaintEventHandler(PaintEffects);
topLevel.Map();
app.Run();
app.Close();
}
// Paint the top-level window.
public static void PaintEffects(Widget widget, Canvas canvas)
{
canvas.DrawEffect(10, 10, 280, 230, Effect.Etched);
canvas.DrawEffect(20, 20, 40, 20, Effect.Raised);
canvas.DrawEffect(70, 20, 40, 20, Effect.Indented);
canvas.DrawEffect(120, 20, 40, 20,
Effect.Raised |
Effect.DefaultButton);
canvas.DrawEffect(170, 20, 40, 20,
Effect.Indented |
Effect.DefaultButton);
canvas.DrawEffect(20, 60, 260, 2, Effect.Horizontal);
canvas.DrawEffect(150, 70, 2, 160, Effect.Vertical);
canvas.DrawEffect(20, 80, 16, 16, Effect.RadioBlank);
canvas.DrawEffect(20, 100, 16, 16, Effect.RadioSelected);
canvas.DrawEffect(20, 120, 16, 16, Effect.RadioDisabled);
canvas.DrawEffect(20, 140, 16, 16,
Effect.RadioSelectedDisabled);
canvas.DrawEffect(60, 80, 16, 16, Effect.CheckBlank);
canvas.DrawEffect(60, 100, 16, 16, Effect.CheckSelected);
canvas.DrawEffect(60, 120, 16, 16, Effect.CheckDisabled);
canvas.DrawEffect(60, 140, 16, 16,
Effect.CheckSelectedDisabled);
canvas.DrawEffect(100, 80, 16, 16, Effect.MenuSelected);
canvas.DrawEffect(100, 80, 16, 16,
Effect.MenuSelectedHighlighted);
canvas.DrawEffect(100, 80, 16, 16, Effect.MenuSelectedDisabled);
}
} // class Effects
Index: Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-libs/xsharp/samples/Makefile.am,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** Makefile.am 28 Sep 2002 03:01:00 -0000 1.2
--- Makefile.am 30 Sep 2002 22:01:56 -0000 1.3
***************
*** 5,7 ****
-f "$(srcdir)/samples.build" all
! CLEANFILES = XHello.exe Scribble.exe
--- 5,7 ----
-f "$(srcdir)/samples.build" all
! CLEANFILES = XHello.exe Scribble.exe Effects.exe
Index: samples.build
===================================================================
RCS file: /cvsroot/dotgnu-libs/xsharp/samples/samples.build,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** samples.build 28 Sep 2002 03:01:00 -0000 1.2
--- samples.build 30 Sep 2002 22:01:56 -0000 1.3
***************
*** 37,40 ****
--- 37,57 ----
</compile>
+ <!-- Build the Effects.exe program -->
+ <compile output="Effects.exe"
+ target="exe"
+ optimize="true"
+ debug="true"
+ sanewarnings="true">
+
+ <sources>
+ <file name="Effects.cs"/>
+ </sources>
+
+ <references>
+ <file name="../Xsharp/Xsharp.dll"/>
+ </references>
+
+ </compile>
+
</target>
</project>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-libs-commits] CVS: xsharp/samples Effects.cs,NONE,1.1 Makefile.am,1.2,1.3 samples.build,1.2,1.3,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-libs-commits] CVS: xsharp ChangeLog,1.14,1.15
- Next by Date:
[Dotgnu-libs-commits] CVS: xsharp/Xsharp/XWindows BuiltinBitmaps.cs,NONE,1.1 Effect.cs,NONE,1.1 Canvas.cs,1.3,1.4 ControlEvents.cs,1.1,1.2 Display.cs,1.5,1.6 Xlib.cs.in,1.6,1.7
- Previous by thread:
[Dotgnu-libs-commits] CVS: xsharp ChangeLog,1.14,1.15
- Next by thread:
[Dotgnu-libs-commits] CVS: xsharp/Xsharp/XWindows BuiltinBitmaps.cs,NONE,1.1 Effect.cs,NONE,1.1 Canvas.cs,1.3,1.4 ControlEvents.cs,1.1,1.2 Display.cs,1.5,1.6 Xlib.cs.in,1.6,1.7
- Index(es):