comparison dstep/appkit/NSTableHeaderCell.d @ 16:19885b43130e

Huge update, the bridge actually works now
author Jacob Carlborg <doob@me.com>
date Sun, 03 Jan 2010 22:06:11 +0100
parents
children b9de51448c6b
comparison
equal deleted inserted replaced
15:7ff919f595d5 16:19885b43130e
1 /**
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
3 * Authors: Jacob Carlborg
4 * Version: Initial created: Sep 24, 2009
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
6 */
7 module dstep.appkit.NSTableHeaderCell;
8
9 import dstep.appkit.NSTextFieldCell;
10 import dstep.appkit.NSView;
11 import dstep.foundation.NSGeometry;
12 import dstep.foundation.NSObjCRuntime;
13 import dstep.objc.bridge.Bridge;
14 import dstep.objc.objc;
15
16 class NSTableHeaderCell : NSTextFieldCell
17 {
18 mixin (ObjcWrap);
19
20 void drawSortIndicatorWithFrame (NSRect cellFrame, NSView controlView, bool ascending, NSInteger priority)
21 {
22 return invokeObjcSelf!(void, "drawSortIndicatorWithFrame:inView:ascending:priority:", NSRect, NSView, bool, NSInteger)(cellFrame, controlView, ascending, priority);
23 }
24
25 NSRect sortIndicatorRectForBounds (NSRect theRect)
26 {
27 return invokeObjcSelf!(NSRect, "sortIndicatorRectForBounds:", NSRect)(theRect);
28 }
29 }
30