Mercurial > projects > dwt-mac
comparison dwt/widgets/TreeColumn.d @ 90:c7f7f4d7091a
All widgets are ported
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 30 Dec 2008 18:54:31 +0100 |
parents | 8e3c85e1733d |
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.Tree; | 44 import dwt.widgets.Tree; |
45 import dwt.widgets.TreeItem; | |
45 import dwt.widgets.TypedListener; | 46 import dwt.widgets.TypedListener; |
46 | 47 |
47 /** | 48 /** |
48 * Instances of this class represent a column in a tree widget. | 49 * Instances of this class represent a column in a tree widget. |
49 * <p><dl> | 50 * <p><dl> |
589 style &= ~(DWT.LEFT | DWT.RIGHT | DWT.CENTER); | 590 style &= ~(DWT.LEFT | DWT.RIGHT | DWT.CENTER); |
590 style |= alignment & (DWT.LEFT | DWT.RIGHT | DWT.CENTER); | 591 style |= alignment & (DWT.LEFT | DWT.RIGHT | DWT.CENTER); |
591 NSOutlineView outlineView = (cast(NSOutlineView) parent.view); | 592 NSOutlineView outlineView = (cast(NSOutlineView) parent.view); |
592 NSTableHeaderView headerView = outlineView.headerView (); | 593 NSTableHeaderView headerView = outlineView.headerView (); |
593 if (headerView is null) return; | 594 if (headerView is null) return; |
594 NSInteger = outlineView.columnWithIdentifier (nsColumn); | 595 index = outlineView.columnWithIdentifier (nsColumn); |
595 NSRect rect = headerView.headerRectOfColumn (index); | 596 NSRect rect = headerView.headerRectOfColumn (index); |
596 headerView.setNeedsDisplayInRect (rect); | 597 headerView.setNeedsDisplayInRect (rect); |
597 rect = outlineView.rectOfColumn (index); | 598 rect = outlineView.rectOfColumn (index); |
598 parent.view.setNeedsDisplayInRect (rect); | 599 parent.view.setNeedsDisplayInRect (rect); |
599 } | 600 } |