macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

NSTextBlock

drawBackgroundWithFrame:inView:characterRange:layoutManager:

テキストを描画する前、カラーと他の装飾を描画するときレイアウトマネージャーによって呼ばれます -(void)drawBackgroundWithFrame:(NSRect)frameRect: inView:(NSView *)controlView: characterRange:(NSRange)charRange: layoutManager:(NSLayoutManager …

contentWidthValueType

テキストブロックの幅をストアする値タイプを返します 解説 テキストブロックの幅をストアする値タイプを返します。 値タイプはポイントでの絶対値かパーセントです。 返り値 ( NSTextBlockValueType ) なし 引数 フレームワーク ApplicationKit クラス NSTe…

contentWidth

ポイントでテキストブロックの幅を返します 解説 ポイントでテキストブロックの幅を返します。 これはvalueForDimension:NSTextBlockWidthの起動に便利なメソッドです。 返り値 ( float ) なし 引数 フレームワーク ApplicationKit クラス NSTextBlock Insta…

boundsRectForContentRect:inRect:textContainer:characterRange:

-(NSRect)boundsRectForContentRect:(NSRect)contentRect: inRect:(NSRect)rect: textContainer:(NSTextContainer *)textContainer: characterRange:(NSRange)charRange: 解説 padding,ボーダー、マージンを含んでいる領域のテキストが返される 返り値 ( NSR…

widthValueTypeForLayer:edge:

レイヤーの幅値タイプを返します -(NSTextBlockValueType)widthValueTypeForLayer:(NSTextBlockLayer)layer: edge:(NSRectEdge)edge: 解説 レイヤーの幅値タイプを返します。 返り値 ( NSTextBlockValueType ) なし 引数 ( NSTextBlockLayer )layer ( NSRect…

widthForLayer:edge:

レイヤーの幅を返します -(float)widthForLayer:(NSTextBlockLayer)layer: edge:(NSRectEdge)edge: 解説 レイヤーの幅を返します。 【NSTextBlockLayer】 NSTextBlockPadding NSTextBlockBorder NSTextBlockMargin【NSRectEdge】 NSMinXEdge NSMinYEdge NSMa…

verticalAlignment

垂直の揃えを返します 解説 垂直の揃えを返します。 【NSTextBlockVerticalAlignment】 ●NSTextBlockTopAlignment ●NSTextBlockMiddleAlignment ●NSTextBlockBottomAlignment ●NSTextBlockBaselineAlignment 返り値 ( NSTextBlockVerticalAlignment ) なし …

valueTypeForDimension:

パーセントで指定されるか、絶対値で指定されるかを返します -(NSTextBlockValueType)valueTypeForDimension:(NSTextBlockDimension)dimension: 解説 パーセントで指定されるか、絶対値で指定されるかを返します。 返り値 ( NSTextBlockValueType ) NSTextBl…

valueForDimension:

指定した方向の値を得ます -(float)valueForDimension:(NSTextBlockDimension)dimension: 解説 指定した方向の値を得ます。 初期設定では0.0が返ってきます。 NSTextBlockWidth ブロックの幅 NSTextBlockMinimumWidth NSTextBlockMaximumWidth NSTextBlockHe…

setWidth:type:forLayer:edge:

幅をセットします -(void)setWidth:(float)val: type:(NSTextBlockValueType)type: forLayer:(NSTextBlockLayer)layer: edge:(NSRectEdge)edge: 解説 調査中... 幅をセットします。 返り値 ( void ) なし 引数 ( float )val ( NSTextBlockValueType )type ( …

setWidth:type:forLayer:

テキストブロックの指定したレイヤーのすべての端の幅を同時にセットします -(void)setWidth:(float)val: type:(NSTextBlockValueType)type: forLayer:(NSTextBlockLayer)layer: 解説 テキストブロックの指定したレイヤーのすべての端の幅を同時にセットしま…

setVerticalAlignment:

** -(void)setVerticalAlignment:(NSTextBlockVerticalAlignment)alignment: 解説 テキストブロックの垂直そろえをセットします。 返り値 ( void ) なし 引数 ( NSTextBlockVerticalAlignment )alignment フレームワーク ApplicationKit クラス NSTextBlock …

setValue:type:forDimension:

テキストブロックの外形寸法のバリュータイプをセットします -(void)setValue:(float)val: type:(NSTextBlockValueType)type: forDimension:(NSTextBlockDimension)dimension: 解説 テキストブロックの外形寸法のバリュータイプをセットします。 値valはポイ…

setContentWidth:type:

** -(void)setContentWidth:(float)val: type:(NSTextBlockValueType)type: 解説 テキストブロックの幅をセットします。 この値valはポイントでの絶対値またはブロックを囲んでいるパーセントのどちらかです。 typeによって指定します。 【NSTextBlockValueT…

setBorderColor:forEdge:

** -(void)setBorderColor:(NSColor *)color: forEdge:(NSRectEdge)edge: 解説 テキストブロックの指定した端ののボーダーカラーをセットします。 この設定はボーダー幅が0以上でない限り表示効果がない。 返り値 ( void ) なし 引数 ( NSColor * )color ( N…

setBorderColor:

テキストブロックのすべてのボーダーカラーをセットします -(void)setBorderColor:(NSColor *)color: 解説 テキストブロックのすべてのボーダーカラーをセットします。 この設定はボーダー幅が0以上でない限り表示効果がない。 返り値 ( void ) なし 引数 ( …

setBackgroundColor:

テキストブロックの背景色をセットします -(void)setBackgroundColor:(NSColor *)color: 解説 テキストブロックの背景色をセットします。 返り値 ( void ) なし 引数 ( NSColor * )color フレームワーク ApplicationKit クラス NSTextBlock Instance Methods…

rectForLayoutAtPoint:inRect:textContainer:characterRange:

** -(NSRect)rectForLayoutAtPoint:(NSPoint)startingPoint: inRect:(NSRect)rect: textContainer:(NSTextContainer *)textContainer: characterRange:(NSRange)charRange: 解説 調査中... 返り値 ( NSRect ) なし 引数 ( NSPoint )startingPoint ( NSRect )…

init

** 解説 空のNSTextBlockオブジェクトを初期化して返します。 これは指定のイニシャライザです。 返り値 ( id ) オブジェクト() 引数 フレームワーク ApplicationKit クラス NSTextBlock Instance Methods 使用可能 10.4 参照 例文

borderColorForEdge:

テキストブロックの端のボーダーカラーを返します -(NSColor *)borderColorForEdge:(NSRectEdge)edge: 解説 テキストブロックの端のボーダーカラーを返します。 返り値 ( NSColor * ) なし 引数 ( NSRectEdge )edge エッジ NSMinXEdge = 0 NSMinYEdge = 1 NS…

backgroundColor

テキストブロックの背景色を返します 解説 テキストブロックの背景色を返します。 返り値 ( NSColor * ) なし 引数 フレームワーク ApplicationKit クラス NSTextBlock Instance Methods 使用可能 10.4 参照 -setBackgroundColor: 例文