Changeset 23
- Timestamp:
- 12/06/06 01:44:22 (2 years ago)
- Files:
-
- trunk/minwin/docs/minwin.css (modified) (4 diffs)
- trunk/minwin/docs/minwin.ddoc (modified) (3 diffs)
- trunk/minwin/docs/minwin/app.d (modified) (1 diff)
- trunk/minwin/docs/minwin/button.d (modified) (1 diff)
- trunk/minwin/docs/minwin/component.d (modified) (1 diff)
- trunk/minwin/docs/minwin/dialog.d (modified) (1 diff)
- trunk/minwin/docs/minwin/event.d (modified) (6 diffs)
- trunk/minwin/docs/minwin/geometry.d (modified) (1 diff)
- trunk/minwin/docs/minwin/group.d (modified) (2 diffs)
- trunk/minwin/docs/minwin/icon.d (modified) (1 diff)
- trunk/minwin/docs/minwin/image.d (modified) (1 diff)
- trunk/minwin/docs/minwin/index.d (modified) (1 diff)
- trunk/minwin/docs/minwin/layout.d (modified) (2 diffs)
- trunk/minwin/docs/minwin/menu.d (modified) (1 diff)
- trunk/minwin/docs/minwin/multidg.d (modified) (2 diffs)
- trunk/minwin/docs/minwin/paint.d (modified) (2 diffs)
- trunk/minwin/docs/minwin/peer.d (modified) (1 diff)
- trunk/minwin/docs/minwin/peerimpl.d (modified) (1 diff)
- trunk/minwin/docs/minwin/window.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/minwin/docs/minwin.css
r16 r23 12 12 padding: 0; 13 13 margin: 0; 14 text-align: left;15 vertical-align: top;16 14 } 17 15 … … 26 24 } 27 25 28 .title26 h1.title 29 27 { 30 28 padding: 0.25em; 29 margin-bottom: 0.2em; 30 } 31 h2.title 32 { 33 padding: 0.2em; 34 text-align: center; 31 35 } 32 36 … … 56 60 } 57 61 58 dl. class62 dl.members 59 63 { 60 64 background-color: WhiteSmoke; … … 69 73 border-width: 2px; 70 74 border-color: black; 75 padding: 0.1em; 71 76 } 72 77 trunk/minwin/docs/minwin.ddoc
r16 r23 10 10 MOTIF = $(GREEN Motif) 11 11 GTK = $(BLUE GTK) 12 PLATFORMS = $(WIN) $1 $(BR) 13 $(MOTIF) $2 $(BR) 14 $(GTK) $3 12 15 13 PAGE_TITLE = <h1 class="title">$(TITLE)</h1> 16 MAIN_TITLE = <h1 class="title">$0</h1> 17 PAGE_TITLE = <h2 class="title">$(TITLE)</h2> 14 18 15 19 DDOC = <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" … … 22 26 </head> 23 27 <body> 24 $( PAGE_TITLE)28 $(MAIN_TITLE MinWin API Reference) 25 29 <table> 26 30 <tr> 27 31 <td id="toc"> 28 <br /><br />29 32 $(INDEX) 30 33 </td> 31 34 <td id="content"> 35 $(PAGE_TITLE) 32 36 $(BODY) 33 37 </td> … … 60 64 $(INDEX_LINK window) $(BR) 61 65 62 CLASS_DL = <dl class="class">$0</dl>66 MEMBERS_DL = <dl class="members">$0</dl> 63 67 64 DDOC_CLASS_MEMBERS = $(CLASS_DL $0) 68 DDOC_CLASS_MEMBERS = $(MEMBERS_DL $0) 69 DDOC_STRUCT_MEMBERS = $(MEMBERS_DL $0) 70 DDOC_ENUM_MEMBERS = $(MEMBERS_DL $0) 71 DDOC_TEMPLATE_MEMBERS = $(MEMBERS_DL $0) 65 72 66 73 BORDERLAYOUT_TABLE = <table> trunk/minwin/docs/minwin/app.d
r14 r23 1 /** 2 An Application encapsulates the global state provided by 3 the OS when starting the application and it manages the event queue. 4 */ 5 1 6 module minwin.app; 2 7 trunk/minwin/docs/minwin/button.d
r22 r23 1 /** 2 Various button classes like PushButtons. 3 */ 4 1 5 module minwin.button; 2 6 trunk/minwin/docs/minwin/component.d
r22 r23 1 /** 2 A Component is the root of the widget inheritance tree. 3 */ 4 1 5 module minwin.component; 2 6 trunk/minwin/docs/minwin/dialog.d
r16 r23 1 /** 2 A general dialog class and utility helper dialogs. 3 */ 4 1 5 module minwin.dialog; 2 6 trunk/minwin/docs/minwin/event.d
r16 r23 1 /** 2 Various event classes for key, mouse, focus events, etc. 3 */ 4 1 5 module minwin.event; 2 6 3 7 import minwin.geometry; 8 9 typedef void* EventNative_; 10 typedef void* KeyEventNative_; 11 typedef void* MouseEventNative_; 12 typedef void* WindowEventNative_; 13 14 typedef uint KeyPressedEvent_; 15 typedef uint KeyDownEvent_; 16 typedef uint KeyUpEvent_; 17 typedef uint MouseMovedEvent_; 18 typedef uint MouseDownEvent_; 19 typedef uint MouseUpEvent_; 20 typedef uint MouseAlt1DownEvent_; 21 typedef uint MouseAlt1UpEvent_; 22 typedef uint MouseAlt2DownEvent_; 23 typedef uint MouseAlt2UpEvent_; 24 25 typedef uint WindowSizeEvent_; 26 typedef uint WindowSizingEvent_; 27 typedef uint WindowMoveEvent_; 28 typedef uint WindowMovingEvent_; 4 29 5 30 /// Enumeration of modifier keys. Can be or'd together. … … 18 43 } 19 44 20 /// Platform-specific generic event type (eg, MSG, XEvent, GdkEvent). 21 alias void* EventNative; 45 /// Platform-specific generic event type. 46 /// $(PLATFORMS MSG, XEvent, GdkEvent) 47 alias EventNative_ EventNative; 22 48 23 49 /// Struct wrapping the native generic event type. … … 32 58 } 33 59 34 /// Platform-specific generic key event type (eg, MSG, XKeyEvent, GdkKeyEvent). 35 alias void* KeyEventNative; 60 /// Platform-specific generic key event type. 61 /// $(PLATFORMS MSG, XKeyEvent, GdkKeyEvent) 62 alias KeyEventNative_ KeyEventNative; 36 63 37 64 /// Struct wrapping the native key event type. … … 48 75 } 49 76 /// Platform-specific id for key character press events. 50 alias uintKeyPressedEvent;77 alias KeyPressedEvent_ KeyPressedEvent; 51 78 /// Platform-specific id for key down events. 52 alias uintKeyDownEvent;79 alias KeyDownEvent_ KeyDownEvent; 53 80 /// Platform-specific id for key up events. 54 alias uintKeyUpEvent;81 alias KeyUpEvent_ KeyUpEvent; 55 82 56 /// Platform-specific generic mouse event type (eg, MSG, XMouseEvent, GdkMouseEvent). 83 /// Platform-specific generic mouse event type. 84 /// $(PLATFORMS MSG, XMouseEvent, GdkMouseEvent) 57 85 alias void* MouseEventNative; 58 86 … … 70 98 } 71 99 /// Platform-specific id for mouse moved events. 72 alias uintMouseMovedEvent;100 alias MouseMovedEvent_ MouseMovedEvent; 73 101 /// Platform-specific id for 1st mouse button down events. 74 alias uintMouseDownEvent;102 alias MouseDownEvent_ MouseDownEvent; 75 103 /// Platform-specific id for 1st mouse button up events. 76 alias uintMouseUpEvent;104 alias MouseUpEvent_ MouseUpEvent; 77 105 /// Platform-specific id for 2nd mouse button down events. 78 alias uintMouseAlt1DownEvent;106 alias MouseAlt1DownEvent_ MouseAlt1DownEvent; 79 107 /// Platform-specific id for 2nd mouse button up events. 80 alias uintMouseAlt1UpEvent;108 alias MouseAlt1UpEvent_ MouseAlt1UpEvent; 81 109 /// Platform-specific id for 3rd mouse button down events. 82 alias uintMouseAlt2DownEvent;110 alias MouseAlt2DownEvent_ MouseAlt2DownEvent; 83 111 /// Platform-specific id for 3rd mouse button up events. 84 alias uintMouseAlt2UpEvent;112 alias MouseAlt2UpEvent_ MouseAlt2UpEvent; 85 113 86 /// Platform-specific generic window event type (eg, MSG, XConfigureEvent, GdkEventConfigure). 87 alias void* WindowEventNative; 114 /// Platform-specific generic window event type. 115 /// $(PLATFORMS MSG, XConfigureEvent, GdkEventConfigure) 116 alias WindowEventNative_ WindowEventNative; 88 117 89 118 /// Struct wrapping the native window event type. … … 100 129 } 101 130 /// Platform-specific id for window size events. 102 alias uintWindowSizeEvent;131 alias WindowSizeEvent_ WindowSizeEvent; 103 132 /// Platform-specific id for window sizing events. 104 alias uintWindowSizingEvent;133 alias WindowSizingEvent_ WindowSizingEvent; 105 134 /// Platform-specific id for window move events. 106 alias uintWindowMoveEvent;135 alias WindowMoveEvent_ WindowMoveEvent; 107 136 /// Platform-specific id for window moving events. 108 alias uintWindowMovingEvent;137 alias WindowMovingEvent_ WindowMovingEvent; 109 138 110 139 /** trunk/minwin/docs/minwin/geometry.d
r14 r23 1 /** 2 Defines Point, Rect, Region and Color and associated functions. 3 These are structs with a single field called "native" that stores 4 the native type or, in the case of color on Unix system, an 5 int with the RGB triple. A Region is a class wrapping a system 6 region resource. 7 */ 8 1 9 module minwin.geometry; 2 10 3 11 import minwin.peer; 4 12 5 /// Platform-specific rectangle type (RECT, XRect, GdkRect). 6 alias void* RectNative; 7 /// Platform-specific point type (POINT, XPoint, GdkPoint). 8 alias void* PointNative; 9 /// Platform-specific color type for RGB tuples (COLORREF, uint). 13 typedef void* RectNative_; 14 typedef void* PointNative_; 15 typedef void* ColorNative_; 16 typedef void* RegionPeer_; 17 18 /// Platform-specific rectangle type 19 /// $(PLATFORMS RECT, XRect, GdkRectangle) 20 alias RectNative_ RectNative; 21 22 /// Platform-specific point type 23 /// $(PLATFORMS POINT, XPoint, GdkPoint) 24 alias PointNative_ PointNative; 25 26 /// Platform-specific color type for RGB tuples. 10 27 /// On X-based systems a uint is used to pack the red, green and blue components. 11 alias void* ColorNative; 28 /// $(PLATFORMS COLORREF, uint, uint) 29 alias ColorNative_ ColorNative; 30 12 31 /// Alias for native region type. 13 alias void* RegionPeer; 32 /// $(PLATFORMS HRGN, XRegion, GdkRegion*) 33 alias RegionPeer_ RegionPeer; 14 34 15 35 /// Struct wrapping the native integer rectangle type. trunk/minwin/docs/minwin/group.d
r22 r23 1 /** 2 A Group is a lightweight component (meaning it has 3 no peer) that contains and lays out other components. 4 5 A GroupBox is a potentially heavyweight component that 6 puts a box and label around other components. 7 */ 8 1 9 module minwin.group; 2 10 … … 15 23 16 24 /// A group of components layed out in a rectanguluar area with a border and title around the edge. 17 /// A GroupBox is a potentially heavyweight component that puts a box and label around other components.18 25 class GroupBox : WindowChild 19 26 { trunk/minwin/docs/minwin/icon.d
r14 r23 1 /** 2 Icon class 3 */ 4 1 5 module minwin.icon; 2 6 3 7 import minwin.native; 4 8 9 typedef void* IconPeer_; 10 5 11 /// $(WIN) Alias for the native type for icons. 6 alias HICON IconPeer; 12 /// $(WIN) HICON 13 alias IconPeer_ IconPeer; 7 14 8 15 /// Encapsulates an icon resource. trunk/minwin/docs/minwin/image.d
r14 r23 1 /** 2 Image class encapsulating image operations. 3 */ 4 1 5 module minwin.image; 2 6 7 import minwin.paint; 8 9 typedef void* ImagePeer_; 10 11 /** 12 Platform-specific rectangle type. 13 14 $(PLATFORMS HBITMAP, Pixmap, GdkPixmap*) 15 */ 16 alias ImagePeer_ ImagePeer; 17 18 /// Represents image 3 19 class Image 4 20 { 21 /// 22 this(ImagePeer bm); 23 /// 24 GContext getGContext(); 25 /// Read-only width in pixels. 26 int width; 27 /// Read-only height in pixels. 28 int height; 29 /// 30 ImagePeer peer; 5 31 } trunk/minwin/docs/minwin/index.d
r16 r23 1 module minwin.index; 1 Ddoc 2 3 This is the MinWin API reference. 4 5 Macros: 6 TITLE = Overview trunk/minwin/docs/minwin/layout.d
r16 r23 1 /** 2 Defines a LayoutManager interface and some layout managers. 3 */ 4 1 5 module minwin.layout; 2 6 … … 90 94 { 91 95 /// Read/write property of the locations of children to position. 92 Component[Loc .max+1] location;96 Component[Loc] location; 93 97 /// Position children according to their locations. If a child is not in the location array it is not positioned. 94 98 void layout(Component c); trunk/minwin/docs/minwin/menu.d
r14 r23 1 /** 2 Defines menu classes 3 */ 4 1 5 module minwin.menu; 2 6 3 7 import minwin.window; 4 8 5 /// Platform-specific menu type (HMENU, Widget, GtkWidget*). 6 alias void* MenuPeer; 7 /// Platform-specific menu bar type (HMENU, Widget, GtkWidget*). 8 alias void* MenuBarPeer; 9 typedef void* MenuPeer_; 10 typedef void* MenuBarPeer_; 11 12 /// Platform-specific menu type 13 /// $(PLATFORMS HMENU, Widget, GtkWidget*) 14 alias MenuPeer_ MenuPeer; 15 16 /// Platform-specific menu bar type 17 /// $(PLATFORMS HMENU, Widget, GtkWidget*) 18 alias MenuBarPeer_ MenuBarPeer; 9 19 10 20 /// Menu bar class trunk/minwin/docs/minwin/multidg.d
r16 r23 1 /** 2 A multi-delegate is similar to a C# multicast delegate. 3 It has array copy semantics so assignment will copy the 4 length and data pointer but modification could allocate 5 a distinct copy. Delegates in a multi-delegate are fired 6 in the order they were added. 7 8 A MultiBoolDelegate is a multi-delegates where each 9 delegate returns a bool and the result of executing 10 the MultiBoolDelegate is the or'ed value of all the bools. 11 12 To append to a multi-delegate use ~= 13 14 To remove a delegate from a multi-delegate use remove() 15 16 To fire all the delegates in order use opCall: multidg() 17 18 To test if the multi-delegate is empty use isEmpty() 19 */ 1 20 module minwin.multidg; 2 21 3 /** 4 Store multiple delegates with any number of arguments. 5 */ 22 /// Store multiple delegates with any number of arguments. 6 23 struct MultiDelegate(T...) 7 24 { … … 25 42 } 26 43 27 /** 28 Multi-delegate where the delegates return a bool result. 29 */ 44 /// Multi-delegate where the delegates return a bool result. 30 45 struct MultiBoolDelegate(T...) 31 46 { trunk/minwin/docs/minwin/paint.d
r14 r23 1 /** 2 Defines graphics related stuff. 3 */ 4 1 5 module minwin.paint; 2 6 7 /// 8 GContext newGContext(); 9 10 /// Enumeration of supported pen drawing styles. 11 enum PenStyle 12 { 13 /// Solid line. 14 Solid, 15 /// Dashes. 16 Dash, 17 /// Dots. 18 Dot, 19 /// Alternating dashes and dots. 20 DashDot 21 } 22 23 /// Enumeration of supported line joining styles. 24 enum LineJoin 25 { 26 /// 27 Round, 28 /// 29 Bevel, 30 /// 31 Miter 32 } 33 34 /// Enumeration of supported raster painting modes. 35 enum PaintMode { 36 /// 37 Copy, 38 /// 39 Invert, 40 /// 41 And, 42 /// 43 Or, 44 /// 45 Xor 46 } 47 48 typedef void* GContextPeer_; 49 /// Platform-specific graphics context type. 50 /// $(PLATFORMS HDC, GC, GdkGC*) 51 alias GContextPeer_ GContextPeer; 52 3 53 /// A GContext is a simple 2D drawing API similar to a Windows DC and an X11 Graphics Context. 54 /// TODO 4 55 class GContext 5 56 { … … 7 58 8 59 /// A GXContext is a more advanced painting API that is similar to GDI+ or Quartz. 60 /// TODO 9 61 class GXContext 10 62 { trunk/minwin/docs/minwin/peer.d
r14 r23 1 /** 2 Mixin templates to simplify peer management. 3 */ 4 1 5 module minwin.peer; 2 6 3 /// Alias for the native type for parenting controls (eg, HWND, Widget, GdkWidget*). 4 alias void* PeerForAdd;7 typedef void* PeerForAdd_; 8 typedef PeerForAdd_ WindowChildPeer_; 5 9 6 /// Alias for the native type for a control or window child (eg, HWND, Widget, GdkWidget*). 7 alias PeerForAdd WindowChildPeer; 10 /// Alias for the native type for parenting controls 11 /// $(PLATFORMS HWND, Widget, GdkWidget*) 12 alias PeerForAdd_ PeerForAdd; 13 14 /// Alias for the native type for a control or window child 15 /// $(PLATFORMS HWND, Widget, GdkWidget*) 16 alias WindowChildPeer_ WindowChildPeer; 8 17 9 18 /// Enumeration of possible peer ownership states for hasPeer. trunk/minwin/docs/minwin/peerimpl.d
r16 r23 1 /** 2 Mixin template to implement heavyweight peer for window children. 3 Plus PeerWrapper to insert peer children into the MinWin tree. 4 */ 5 1 6 module minwin.peerimpl; 2 7 trunk/minwin/docs/minwin/window.d
r14 r23 1 /** 2 An AbstractWindow is a top-level window. Concrete subclasses 3 are Window and Dialog. 4 */ 5 1 6 module minwin.window; 2 7 … … 9 14 import minwin.image; 10 15 16 typedef void* WindowPeer_; 17 11 18 /// Alias for the native type for a top-level window or dialog (eg, HWND, Widget, GdkWidget). 12 alias void*WindowPeer;19 alias WindowPeer_ WindowPeer; 13 20 14 21 /// Get the AbstractWindow associated with the given peer. Return null if none.
