| Home 目次>ApplicationKit>NSGraphicsContext | |
graphicsPort
プラットフォーム依存の低レベルグラフィックスコンテキストを返します
-(void *) graphicsPort
【返り値】 | |
| void * | なし |
【解説】
プラットフォーム依存の低レベルグラフィックスコンテキストを返します。
Mac OS Xでは、コアグラフィックスコンテクスト(CGContextRef)。
【例文】
#import "Controller.h"
@implementation Controller
- ( IBAction )pushButton:( id )sender
{
void *gPort;
NSGraphicsContext *gCon = [NSGraphicsContext graphicsContextWithWindow:[sender window]];
gPort = [gCon graphicsPort];
NSLog([NSString stringWithFormat: @"%d" ,&gPort]);
}
@end
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSGraphicsContext | 修正日2006.12.26 |