Mercurial > projects > dwt-mac
comparison dwt/widgets/TableColumn.d @ 90:c7f7f4d7091a
All widgets are ported
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 30 Dec 2008 18:54:31 +0100 |
parents | 97f1b638de63 |
children | 63a09873578e |
comparison
equal
deleted
inserted
replaced
89:8e3c85e1733d | 90:c7f7f4d7091a |
---|---|
40 | 40 |
41 import dwt.internal.objc.cocoa.Cocoa; | 41 import dwt.internal.objc.cocoa.Cocoa; |
42 import objc = dwt.internal.objc.runtime; | 42 import objc = dwt.internal.objc.runtime; |
43 import dwt.widgets.Item; | 43 import dwt.widgets.Item; |
44 import dwt.widgets.Table; | 44 import dwt.widgets.Table; |
45 import dwt.widgets.TableItem; | |
45 import dwt.widgets.TypedListener; | 46 import dwt.widgets.TypedListener; |
46 | 47 |
47 /** | 48 /** |
48 * Instances of this class represent a column in a table widget. | 49 * Instances of this class represent a column in a table widget. |
49 * <p><dl> | 50 * <p><dl> |
587 style &= ~(DWT.LEFT | DWT.RIGHT | DWT.CENTER); | 588 style &= ~(DWT.LEFT | DWT.RIGHT | DWT.CENTER); |
588 style |= alignment & (DWT.LEFT | DWT.RIGHT | DWT.CENTER); | 589 style |= alignment & (DWT.LEFT | DWT.RIGHT | DWT.CENTER); |
589 NSTableView tableView = (cast(NSTableView) parent.view); | 590 NSTableView tableView = (cast(NSTableView) parent.view); |
590 NSTableHeaderView headerView = tableView.headerView (); | 591 NSTableHeaderView headerView = tableView.headerView (); |
591 if (headerView is null) return; | 592 if (headerView is null) return; |
592 NSInteger = tableView.columnWithIdentifier (nsColumn); | 593 index = cast(int)/*64*/tableView.columnWithIdentifier (nsColumn); |
593 NSRect rect = headerView.headerRectOfColumn (index); | 594 NSRect rect = headerView.headerRectOfColumn (index); |
594 headerView.setNeedsDisplayInRect (rect); | 595 headerView.setNeedsDisplayInRect (rect); |
595 rect = tableView.rectOfColumn (index); | 596 rect = tableView.rectOfColumn (index); |
596 parent.view.setNeedsDisplayInRect (rect); | 597 parent.view.setNeedsDisplayInRect (rect); |
597 } | 598 } |