Changeset 28
- Timestamp:
- 12/12/06 02:21:22 (2 years ago)
- Files:
-
- trunk/minwin/app.d (modified) (1 diff)
- trunk/minwin/button.d (modified) (1 diff)
- trunk/minwin/dialog.d (modified) (3 diffs)
- trunk/minwin/docs/builddocs.bat (modified) (1 diff)
- trunk/minwin/docs/html/app.html (modified) (1 diff)
- trunk/minwin/docs/html/button.html (modified) (1 diff)
- trunk/minwin/docs/html/component.html (modified) (1 diff)
- trunk/minwin/docs/html/dialog.html (modified) (1 diff)
- trunk/minwin/docs/html/event.html (modified) (2 diffs)
- trunk/minwin/docs/html/geometry.html (modified) (1 diff)
- trunk/minwin/docs/html/group.html (modified) (1 diff)
- trunk/minwin/docs/html/icon.html (modified) (1 diff)
- trunk/minwin/docs/html/image.html (modified) (1 diff)
- trunk/minwin/docs/html/index.html (modified) (1 diff, 1 prop)
- trunk/minwin/docs/html/label.html (added)
- trunk/minwin/docs/html/layout.html (modified) (1 diff)
- trunk/minwin/docs/html/menu.html (modified) (1 diff)
- trunk/minwin/docs/html/multidg.html (modified) (1 diff)
- trunk/minwin/docs/html/paint.html (modified) (1 diff)
- trunk/minwin/docs/html/peer.html (modified) (1 diff)
- trunk/minwin/docs/html/peerimpl.html (modified) (1 diff)
- trunk/minwin/docs/html/window.html (modified) (1 diff)
- trunk/minwin/docs/minwin/event.d (modified) (1 diff)
- trunk/minwin/docs/minwin/label.d (added)
- trunk/minwin/font.d (modified) (1 diff)
- trunk/minwin/label.d (modified) (2 diffs)
- trunk/minwin/layout.d (modified) (2 diffs)
- trunk/minwin/mswindows.d (modified) (2 diffs)
- trunk/minwin/paint.d (modified) (1 diff)
- trunk/minwin/window.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/minwin/app.d
r11 r28 93 93 return toUTF8(wres[0..len]); 94 94 else { 95 return fromMBSz(cres[0..len] );95 return fromMBSz(cres[0..len].ptr); 96 96 } 97 97 } trunk/minwin/button.d
r20 r28 464 464 } 465 465 void text(char[] c) { 466 gtk_button_set_label(cast(GtkButton*)peer, g_strdup(c.ptr));466 gtk_button_set_label(cast(GtkButton*)peer,toStringz(c)); 467 467 } 468 468 } trunk/minwin/dialog.d
r22 r28 397 397 void initialFile(char[] f) { 398 398 if (native.lpstrFile is null) { 399 native.lpstrFile = new char[MAX_PATH];399 native.lpstrFile = (new char[MAX_PATH]).ptr; 400 400 native.nMaxFile = MAX_PATH; 401 401 } … … 427 427 data.native.Flags = OFN_PATHMUSTEXIST; 428 428 if (data.native.lpstrFile is null) { 429 data.native.lpstrFile = new char[MAX_PATH];429 data.native.lpstrFile = (new char[MAX_PATH]).ptr; 430 430 data.native.nMaxFile = MAX_PATH; 431 431 data.native.lpstrFile[0] = 0; … … 443 443 data.native.Flags = OFN_OVERWRITEPROMPT | OFN_PATHMUSTEXIST; 444 444 if (data.native.lpstrFile is null) { 445 data.native.lpstrFile = new char[MAX_PATH];445 data.native.lpstrFile = (new char[MAX_PATH]).ptr; 446 446 data.native.nMaxFile = MAX_PATH; 447 447 data.native.lpstrFile[0] = 0; trunk/minwin/docs/builddocs.bat
r24 r28 1 set docs=app button component dialog event geometry group icon image la yout menu multidg paint peer peerimpl window index1 set docs=app button component dialog event geometry group icon image label layout menu multidg paint peer peerimpl window index 2 2 FOR %%f in (%docs%) do dmd -c -o- -D -Ddhtml minwin.ddoc minwin/%%f.d trunk/minwin/docs/html/app.html
r24 r28 32 32 <a href="image.html" class="toc">image</a> <br /> 33 33 34 <a href="label.html" class="toc">label</a> <br /> 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> 35 37 trunk/minwin/docs/html/button.html
r24 r28 32 32 <a href="image.html" class="toc">image</a> <br /> 33 33 34 <a href="label.html" class="toc">label</a> <br /> 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> 35 37 trunk/minwin/docs/html/component.html
r24 r28 32 32 <a href="image.html" class="toc">image</a> <br /> 33 33 34 <a href="label.html" class="toc">label</a> <br /> 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> 35 37 trunk/minwin/docs/html/dialog.html
r24 r28 32 32 <a href="image.html" class="toc">image</a> <br /> 33 33 34 <a href="label.html" class="toc">label</a> <br /> 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> 35 37 trunk/minwin/docs/html/event.html
r24 r28 32 32 <a href="image.html" class="toc">image</a> <br /> 33 33 34 <a href="label.html" class="toc">label</a> <br /> 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> 35 37 … … 394 396 </big></dt> 395 397 <dd>Read-only property for the keyboard <u>modifiers</u> held down during the event. 396 <br />397 <br />398 399 400 </dd>401 <dt><big>Point <u>point</u>;402 </big></dt>403 <dd>The location of the event in source component coordinates.404 398 <br /> 405 399 <br /> trunk/minwin/docs/html/geometry.html
r24 r28 32 32 <a href="image.html" class="toc">image</a> <br /> 33 33 34 <a href="label.html" class="toc">label</a> <br /> 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> 35 37 trunk/minwin/docs/html/group.html
r24 r28 31 31 32 32 <a href="image.html" class="toc">image</a> <br /> 33 34 <a href="label.html" class="toc">label</a> <br /> 33 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> trunk/minwin/docs/html/icon.html
r24 r28 31 31 32 32 <a href="image.html" class="toc">image</a> <br /> 33 34 <a href="label.html" class="toc">label</a> <br /> 33 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> trunk/minwin/docs/html/image.html
r24 r28 31 31 32 32 <a href="image.html" class="toc">image</a> <br /> 33 34 <a href="label.html" class="toc">label</a> <br /> 33 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> trunk/minwin/docs/html/index.html
- Property svn:mime-type set to text/html
r24 r28 32 32 <a href="image.html" class="toc">image</a> <br /> 33 33 34 <a href="label.html" class="toc">label</a> <br /> 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> 35 37 trunk/minwin/docs/html/layout.html
r24 r28 32 32 <a href="image.html" class="toc">image</a> <br /> 33 33 34 <a href="label.html" class="toc">label</a> <br /> 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> 35 37 trunk/minwin/docs/html/menu.html
r24 r28 32 32 <a href="image.html" class="toc">image</a> <br /> 33 33 34 <a href="label.html" class="toc">label</a> <br /> 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> 35 37 trunk/minwin/docs/html/multidg.html
r24 r28 32 32 <a href="image.html" class="toc">image</a> <br /> 33 33 34 <a href="label.html" class="toc">label</a> <br /> 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> 35 37 trunk/minwin/docs/html/paint.html
r24 r28 32 32 <a href="image.html" class="toc">image</a> <br /> 33 33 34 <a href="label.html" class="toc">label</a> <br /> 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> 35 37 trunk/minwin/docs/html/peer.html
r24 r28 31 31 32 32 <a href="image.html" class="toc">image</a> <br /> 33 34 <a href="label.html" class="toc">label</a> <br /> 33 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> trunk/minwin/docs/html/peerimpl.html
r24 r28 31 31 32 32 <a href="image.html" class="toc">image</a> <br /> 33 34 <a href="label.html" class="toc">label</a> <br /> 33 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> trunk/minwin/docs/html/window.html
r24 r28 32 32 <a href="image.html" class="toc">image</a> <br /> 33 33 34 <a href="label.html" class="toc">label</a> <br /> 35 34 36 <a href="layout.html" class="toc">layout</a> <br /> 35 37 trunk/minwin/docs/minwin/event.d
r23 r28 125 125 /// Read-only property for the keyboard modifiers held down during the event. 126 126 int modifiers; 127 /// The location of the event in source component coordinates.128 Point point;129 127 } 130 128 /// Platform-specific id for window size events. trunk/minwin/font.d
r11 r28 59 59 bool italic() { return native.lfItalic != 0; } 60 60 char[] name() { 61 char* s = native.lfFaceName ;61 char* s = native.lfFaceName.ptr; 62 62 return s[0..strlen(s)]; 63 63 } trunk/minwin/label.d
r25 r28 144 144 char* str = gtk_label_get_text(cast(GtkLabel*)peer); 145 145 if (str is null) 146 return null;146 return ""; 147 147 else 148 148 return str[0..strlen(str)].dup; … … 150 150 151 151 void text(char[] c) { 152 gtk_label_set_text(cast(GtkLabel*)peer, g_strdup(c.ptr));152 gtk_label_set_text(cast(GtkLabel*)peer,toStringz(c)); 153 153 } 154 154 } trunk/minwin/layout.d
r18 r28 104 104 version(LOG) log.printf(" got flow child size for %x\n",ch); 105 105 if (dir == Dir.Vertical) { 106 y += flowGap; // what about first item?106 if (n != 0 && n < flowReverse) y += flowGap; // what about first item? 107 107 if (n >= flowReverse) y -= h; 108 108 int x1 = x, w1 = width; … … 129 129 if (n < flowReverse) y += h; 130 130 } else { 131 x += flowGap;131 if (n < flowReverse) x += flowGap; 132 132 if (n >= flowReverse) x -= w; 133 133 int y1 = y, h1 = height; trunk/minwin/mswindows.d
r19 r28 542 542 if (useWfuncs) { 543 543 wchar[] wstr = toUTF16(str); 544 return GetTextExtentPoint32W(dc, wstr , wstr.length, s);544 return GetTextExtentPoint32W(dc, wstr.ptr, wstr.length, s); 545 545 } else { 546 546 size_t al; … … 602 602 603 603 reslen = result.length ? result.length-1 : 0; 604 return result ;604 return result.ptr; 605 605 } 606 606 } trunk/minwin/paint.d
r11 r28 284 284 if (useWfuncs) { 285 285 wchar[] buf = toUTF16(str); 286 ok = TextOutW(peer, x, y, buf , buf.length);286 ok = TextOutW(peer, x, y, buf.ptr, buf.length); 287 287 } 288 288 else { trunk/minwin/window.d
r22 r28 217 217 char[64] res; 218 218 int len = GetWindowTextA(peer,res.ptr,res.length); 219 return fromMBSz(res[0..len] );219 return fromMBSz(res[0..len].ptr); 220 220 } 221 221 }
