Changeset 6
- Timestamp:
- 11/09/06 03:33:27 (2 years ago)
- Files:
-
- trunk/luigi/adaptor/base.d (modified) (1 diff)
- trunk/luigi/adaptor/glfw.d (modified) (1 diff)
- trunk/luigi/arranger.d (modified) (8 diffs)
- trunk/luigi/base.d (modified) (1 diff)
- trunk/luigi/example1.d (modified) (1 diff)
- trunk/luigi/font.d (modified) (1 diff)
- trunk/luigi/gldraw.d (modified) (1 diff)
- trunk/luigi/gui.d (modified) (1 diff)
- trunk/luigi/opengl.d (modified) (1 diff)
- trunk/luigi/theme.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/luigi/adaptor/base.d
r5 r6 1 //--------------------------------------------------------------------- 2 /* 3 Copyright: 4 5 luigi/adaptor/base.d -- input adaptor basics for the 'Luigi' user 6 interface library. 7 8 Copyright (C) 2006 William V. Baxter III 9 10 This software is provided 'as-is', without any express or implied 11 warranty. In no event will the authors be held liable for any 12 damages arising from the use of this software. 13 14 Permission is granted to anyone to use this software for any 15 purpose, including commercial applications, and to alter it and 16 redistribute it freely, subject to the following restrictions: 17 18 1. The origin of this software must not be misrepresented; you must 19 not claim that you wrote the original software. If you use this 20 software in a product, an acknowledgment in the product 21 documentation would be appreciated but is not required. 22 2. Altered source versions must be plainly marked as such, and must 23 not be misrepresented as being the original software. 24 3. This notice may not be removed or altered from any source distribution. 25 26 William Baxter wbaxter@gmail.com 27 */ 1 28 module luigi.adaptor.base; 2 29 trunk/luigi/adaptor/glfw.d
r5 r6 1 //--------------------------------------------------------------------- 2 /* 3 Copyright: 4 5 luigi/adaptor/glfw.d 6 -- GLFW input adaptor for the 'Luigi' user interface library. 7 8 Copyright (C) 2006 William V. Baxter III 9 10 This software is provided 'as-is', without any express or implied 11 warranty. In no event will the authors be held liable for any 12 damages arising from the use of this software. 13 14 Permission is granted to anyone to use this software for any 15 purpose, including commercial applications, and to alter it and 16 redistribute it freely, subject to the following restrictions: 17 18 1. The origin of this software must not be misrepresented; you must 19 not claim that you wrote the original software. If you use this 20 software in a product, an acknowledgment in the product 21 documentation would be appreciated but is not required. 22 2. Altered source versions must be plainly marked as such, and must 23 not be misrepresented as being the original software. 24 3. This notice may not be removed or altered from any source distribution. 25 26 William Baxter wbaxter@gmail.com 27 */ 1 28 module luigi.adaptor.glfw; 2 29 trunk/luigi/arranger.d
r5 r6 1 //--------------------------------------------------------------------- 2 /** 3 In Luigi, Arrangers are responsible for deciding how widgets are 4 arranged in a container. The Arranger interface actually does not 5 depend on the GUI portion of the library it all. It only requires 6 items to support the Arrangeable interface. The Arrangeable 7 interface just provides information about an item's preferred, 8 minimum and maximum sizes. 9 10 Note in many toolkits "arranging" is referred to as "layout". 11 Layout is a good word, but the problem is that its hard to come up 12 with good names for the things that can be laid-out and the thing 13 that does the laying-out. You end up with words like "Layoutable", 14 "Layouter", "Layoutee", "Layouting", or "LayoutManager", which are 15 all either dubious as English words, or just too long. Adding to 16 the mess is the fact that "layout" is both a verb and a noun, so 17 just "layout" alone is ambiguious. Is layout() a method that does 18 the layout or one that returns an arrangement of items, or perhaps 19 one that returns the object responsible for laying things out? 20 21 In contrast, starting from the verb "arrange" we can use the very 22 reasonable English words "arrange", "arranging", "arranged", 23 "arrangement", "arranger", and "arrangeable". 24 25 */ 26 //--------------------------------------------------------------------- 27 /* 28 Copyright: 29 30 luigi/arranger.d -- arrangers for 'luigi' user interface library. 31 32 Copyright (C) 2006 William V. Baxter III 33 34 This software is provided 'as-is', without any express or implied 35 warranty. In no event will the authors be held liable for any 36 damages arising from the use of this software. 37 38 Permission is granted to anyone to use this software for any 39 purpose, including commercial applications, and to alter it and 40 redistribute it freely, subject to the following restrictions: 41 42 1. The origin of this software must not be misrepresented; you must 43 not claim that you wrote the original software. If you use this 44 software in a product, an acknowledgment in the product 45 documentation would be appreciated but is not required. 46 47 2. Altered source versions must be plainly marked as such, and must 48 not be misrepresented as being the original software. 49 3. This notice may not be removed or altered from any source distribution. 50 51 William Baxter wbaxter@gmail.com 52 */ 1 53 module luigi.arranger; 2 54 … … 7 59 8 60 //-------------------------------------------------------------------------- 9 /** An abstract interface for a classthat can be arranged */61 /** An abstract interface for an Object that can be arranged */ 10 62 interface Arrangeable 11 63 { … … 46 98 47 99 //-------------------------------------------------------------------------- 48 /** An abstract interface for a class that arranges the children of a panel*/100 /** An abstract interface for an Object that arranges things */ 49 101 interface Arranger 50 102 { … … 66 118 } 67 119 120 //-------------------------------------------------------------------------- 121 /** An abstract base class that implements some common parts of the Arranger 122 * interface, and leaves others for subclasses to specify. 123 */ 68 124 class BaseArranger : Arranger 69 125 { … … 106 162 } 107 163 164 //---------------------------------------------------------------------------- 108 165 class FlowArranger : BaseArranger 109 166 { … … 282 339 } 283 340 341 //---------------------------------------------------------------------------- 342 /** 343 * FlowRow is a private implementation detail of the FlowArranger class 344 */ 284 345 private class FlowRow 285 346 { … … 369 430 370 431 432 //---------------------------------------------------------------------------- 433 /** 434 * The GridArranger arranges items into a grid with a fixed number of 435 * columns or rows. 436 */ 371 437 class GridArranger : BaseArranger 372 438 { … … 523 589 524 590 //---------------------------------------------------------------------------- 525 526 591 /** 592 * The BorderArranger can arrange up to five items, which can be 593 * either on the north, south, east, or west borders of the parent 594 * container, or in the remaining center portion.. The position is specified by 595 * the Region enumerated type. 596 */ 527 597 public class BorderArranger : BaseArranger 528 598 { trunk/luigi/base.d
r5 r6 1 //--------------------------------------------------------------------- 2 /* 3 Copyright: 4 5 luigi/base.d -- basic definitions for the 'luigi' user interface library. 6 7 Copyright (C) 2006 William V. Baxter III 8 9 This software is provided 'as-is', without any express or implied 10 warranty. In no event will the authors be held liable for any 11 damages arising from the use of this software. 12 13 Permission is granted to anyone to use this software for any 14 purpose, including commercial applications, and to alter it and 15 redistribute it freely, subject to the following restrictions: 16 17 1. The origin of this software must not be misrepresented; you must 18 not claim that you wrote the original software. If you use this 19 software in a product, an acknowledgment in the product 20 documentation would be appreciated but is not required. 21 22 2. Altered source versions must be plainly marked as such, and must 23 not be misrepresented as being the original software. 24 3. This notice may not be removed or altered from any source distribution. 25 26 William Baxter wbaxter@gmail.com 27 */ 1 28 module luigi.base; 2 29 trunk/luigi/example1.d
r5 r6 1 //--------------------------------------------------------------------- 2 /* 3 Copyright: 4 5 luigi/example1.d -- An example program using the Luigi user 6 interface library. 7 8 Copyright (C) 2006 William V. Baxter III 9 10 This software is provided 'as-is', without any express or implied 11 warranty. In no event will the authors be held liable for any 12 damages arising from the use of this software. 13 14 Permission is granted to anyone to use this software for any 15 purpose, including commercial applications, and to alter it and 16 redistribute it freely, subject to the following restrictions: 17 18 1. The origin of this software must not be misrepresented; you must 19 not claim that you wrote the original software. If you use this 20 software in a product, an acknowledgment in the product 21 documentation would be appreciated but is not required. 22 2. Altered source versions must be plainly marked as such, and must 23 not be misrepresented as being the original software. 24 3. This notice may not be removed or altered from any source distribution. 25 26 William Baxter wbaxter@gmail.com 27 */ 1 28 import luigui = luigi.gui; 2 29 trunk/luigi/font.d
r5 r6 1 // The following copyright applies to portions of this code below. 1 //--------------------------------------------------------------------- 2 /* 3 Copyright: 4 5 luigi/font.d -- font support for 'luigi' user interface library. 6 7 Copyright (C) 2006 William V. Baxter III 8 9 This software is provided 'as-is', without any express or implied 10 warranty. In no event will the authors be held liable for any 11 damages arising from the use of this software. 12 13 Permission is granted to anyone to use this software for any 14 purpose, including commercial applications, and to alter it and 15 redistribute it freely, subject to the following restrictions: 16 17 1. The origin of this software must not be misrepresented; you must 18 not claim that you wrote the original software. If you use this 19 software in a product, an acknowledgment in the product 20 documentation would be appreciated but is not required. 21 2. Altered source versions must be plainly marked as such, and must 22 not be misrepresented as being the original software. 23 3. This notice may not be removed or altered from any source distribution. 24 25 William Baxter wbaxter@gmail.com 26 */ 27 28 // The following copyright applies to some portions of this code below. 2 29 /* 3 30 * Portions copyright (C) 2004, the OpenGLUT project contributors. trunk/luigi/gldraw.d
r5 r6 1 //--------------------------------------------------------------------- 2 /* 3 Copyright: 4 5 luigi/gldraw.d -- OpenGL drawing utilities 'luigi' user interface library. 6 7 Copyright (C) 2006 William V. Baxter III 8 9 This software is provided 'as-is', without any express or implied 10 warranty. In no event will the authors be held liable for any 11 damages arising from the use of this software. 12 13 Permission is granted to anyone to use this software for any 14 purpose, including commercial applications, and to alter it and 15 redistribute it freely, subject to the following restrictions: 16 17 1. The origin of this software must not be misrepresented; you must 18 not claim that you wrote the original software. If you use this 19 software in a product, an acknowledgment in the product 20 documentation would be appreciated but is not required. 21 22 2. Altered source versions must be plainly marked as such, and must 23 not be misrepresented as being the original software. 24 3. This notice may not be removed or altered from any source distribution. 25 26 William Baxter wbaxter@gmail.com 27 */ 1 28 module luigi.gldraw; 2 29 trunk/luigi/gui.d
r5 r6 1 //--------------------------------------------------------------------- 2 /** 3 Luigi is an OpenGL based GUI library. 4 */ 5 //--------------------------------------------------------------------- 6 /* 7 Copyright: 8 9 luigi/gui.d -- main import file for 'luigi' user interface library. 10 version 0.1, November 9, 2006 11 12 Copyright (C) 2006 William V. Baxter III 13 14 This software is provided 'as-is', without any express or implied 15 warranty. In no event will the authors be held liable for any 16 damages arising from the use of this software. 17 18 Permission is granted to anyone to use this software for any 19 purpose, including commercial applications, and to alter it and 20 redistribute it freely, subject to the following restrictions: 21 22 1. The origin of this software must not be misrepresented; you must 23 not claim that you wrote the original software. If you use this 24 software in a product, an acknowledgment in the product 25 documentation would be appreciated but is not required. 26 27 2. Altered source versions must be plainly marked as such, and must 28 not be misrepresented as being the original software. 29 3. This notice may not be removed or altered from any source distribution. 30 31 William Baxter wbaxter@gmail.com 32 */ 33 1 34 module luigi.gui; 2 35 trunk/luigi/opengl.d
r5 r6 1 //--------------------------------------------------------------------- 2 /* 3 Copyright: 4 5 luigi/opengl.d -- opegl imports for 'luigi' user interface library. 6 7 Copyright (C) 2006 William V. Baxter III 8 9 This software is provided 'as-is', without any express or implied 10 warranty. In no event will the authors be held liable for any 11 damages arising from the use of this software. 12 13 Permission is granted to anyone to use this software for any 14 purpose, including commercial applications, and to alter it and 15 redistribute it freely, subject to the following restrictions: 16 17 1. The origin of this software must not be misrepresented; you must 18 not claim that you wrote the original software. If you use this 19 software in a product, an acknowledgment in the product 20 documentation would be appreciated but is not required. 21 22 2. Altered source versions must be plainly marked as such, and must 23 not be misrepresented as being the original software. 24 3. This notice may not be removed or altered from any source distribution. 25 26 William Baxter wbaxter@gmail.com 27 */ 28 1 29 // This is just to centralize how we import gl declarations in one place 2 30 trunk/luigi/theme.d
r5 r6 1 //--------------------------------------------------------------------- 2 /* 3 Copyright: 4 5 luigi/theme.d -- theme support for 'luigi' user interface library. 6 7 Copyright (C) 2006 William V. Baxter III 8 9 This software is provided 'as-is', without any express or implied 10 warranty. In no event will the authors be held liable for any 11 damages arising from the use of this software. 12 13 Permission is granted to anyone to use this software for any 14 purpose, including commercial applications, and to alter it and 15 redistribute it freely, subject to the following restrictions: 16 17 1. The origin of this software must not be misrepresented; you must 18 not claim that you wrote the original software. If you use this 19 software in a product, an acknowledgment in the product 20 documentation would be appreciated but is not required. 21 22 2. Altered source versions must be plainly marked as such, and must 23 not be misrepresented as being the original software. 24 3. This notice may not be removed or altered from any source distribution. 25 26 William Baxter wbaxter@gmail.com 27 */ 1 28 module luigi.theme; 2 29
