NSTextBlock
テキストを描画する前、カラーと他の装飾を描画するときレイアウトマネージャーによって呼ばれます -(void)drawBackgroundWithFrame:(NSRect)frameRect: inView:(NSView *)controlView: characterRange:(NSRange)charRange: layoutManager:(NSLayoutManager …
テキストブロックの幅をストアする値タイプを返します 解説 テキストブロックの幅をストアする値タイプを返します。 値タイプはポイントでの絶対値かパーセントです。 返り値 ( NSTextBlockValueType ) なし 引数 フレームワーク ApplicationKit クラス NSTe…
ポイントでテキストブロックの幅を返します 解説 ポイントでテキストブロックの幅を返します。 これはvalueForDimension:NSTextBlockWidthの起動に便利なメソッドです。 返り値 ( float ) なし 引数 フレームワーク ApplicationKit クラス NSTextBlock Insta…
-(NSRect)boundsRectForContentRect:(NSRect)contentRect: inRect:(NSRect)rect: textContainer:(NSTextContainer *)textContainer: characterRange:(NSRange)charRange: 解説 padding,ボーダー、マージンを含んでいる領域のテキストが返される 返り値 ( NSR…
レイヤーの幅値タイプを返します -(NSTextBlockValueType)widthValueTypeForLayer:(NSTextBlockLayer)layer: edge:(NSRectEdge)edge: 解説 レイヤーの幅値タイプを返します。 返り値 ( NSTextBlockValueType ) なし 引数 ( NSTextBlockLayer )layer ( NSRect…
レイヤーの幅を返します -(float)widthForLayer:(NSTextBlockLayer)layer: edge:(NSRectEdge)edge: 解説 レイヤーの幅を返します。 【NSTextBlockLayer】 NSTextBlockPadding NSTextBlockBorder NSTextBlockMargin【NSRectEdge】 NSMinXEdge NSMinYEdge NSMa…
垂直の揃えを返します 解説 垂直の揃えを返します。 【NSTextBlockVerticalAlignment】 ●NSTextBlockTopAlignment ●NSTextBlockMiddleAlignment ●NSTextBlockBottomAlignment ●NSTextBlockBaselineAlignment 返り値 ( NSTextBlockVerticalAlignment ) なし …
パーセントで指定されるか、絶対値で指定されるかを返します -(NSTextBlockValueType)valueTypeForDimension:(NSTextBlockDimension)dimension: 解説 パーセントで指定されるか、絶対値で指定されるかを返します。 返り値 ( NSTextBlockValueType ) NSTextBl…
指定した方向の値を得ます -(float)valueForDimension:(NSTextBlockDimension)dimension: 解説 指定した方向の値を得ます。 初期設定では0.0が返ってきます。 NSTextBlockWidth ブロックの幅 NSTextBlockMinimumWidth NSTextBlockMaximumWidth NSTextBlockHe…
幅をセットします -(void)setWidth:(float)val: type:(NSTextBlockValueType)type: forLayer:(NSTextBlockLayer)layer: edge:(NSRectEdge)edge: 解説 調査中... 幅をセットします。 返り値 ( void ) なし 引数 ( float )val ( NSTextBlockValueType )type ( …
テキストブロックの指定したレイヤーのすべての端の幅を同時にセットします -(void)setWidth:(float)val: type:(NSTextBlockValueType)type: forLayer:(NSTextBlockLayer)layer: 解説 テキストブロックの指定したレイヤーのすべての端の幅を同時にセットしま…
** -(void)setVerticalAlignment:(NSTextBlockVerticalAlignment)alignment: 解説 テキストブロックの垂直そろえをセットします。 返り値 ( void ) なし 引数 ( NSTextBlockVerticalAlignment )alignment フレームワーク ApplicationKit クラス NSTextBlock …
テキストブロックの外形寸法のバリュータイプをセットします -(void)setValue:(float)val: type:(NSTextBlockValueType)type: forDimension:(NSTextBlockDimension)dimension: 解説 テキストブロックの外形寸法のバリュータイプをセットします。 値valはポイ…
** -(void)setContentWidth:(float)val: type:(NSTextBlockValueType)type: 解説 テキストブロックの幅をセットします。 この値valはポイントでの絶対値またはブロックを囲んでいるパーセントのどちらかです。 typeによって指定します。 【NSTextBlockValueT…
** -(void)setBorderColor:(NSColor *)color: forEdge:(NSRectEdge)edge: 解説 テキストブロックの指定した端ののボーダーカラーをセットします。 この設定はボーダー幅が0以上でない限り表示効果がない。 返り値 ( void ) なし 引数 ( NSColor * )color ( N…
テキストブロックのすべてのボーダーカラーをセットします -(void)setBorderColor:(NSColor *)color: 解説 テキストブロックのすべてのボーダーカラーをセットします。 この設定はボーダー幅が0以上でない限り表示効果がない。 返り値 ( void ) なし 引数 ( …
テキストブロックの背景色をセットします -(void)setBackgroundColor:(NSColor *)color: 解説 テキストブロックの背景色をセットします。 返り値 ( void ) なし 引数 ( NSColor * )color フレームワーク ApplicationKit クラス NSTextBlock Instance Methods…
** -(NSRect)rectForLayoutAtPoint:(NSPoint)startingPoint: inRect:(NSRect)rect: textContainer:(NSTextContainer *)textContainer: characterRange:(NSRange)charRange: 解説 調査中... 返り値 ( NSRect ) なし 引数 ( NSPoint )startingPoint ( NSRect )…
** 解説 空のNSTextBlockオブジェクトを初期化して返します。 これは指定のイニシャライザです。 返り値 ( id ) オブジェクト() 引数 フレームワーク ApplicationKit クラス NSTextBlock Instance Methods 使用可能 10.4 参照 例文
テキストブロックの端のボーダーカラーを返します -(NSColor *)borderColorForEdge:(NSRectEdge)edge: 解説 テキストブロックの端のボーダーカラーを返します。 返り値 ( NSColor * ) なし 引数 ( NSRectEdge )edge エッジ NSMinXEdge = 0 NSMinYEdge = 1 NS…
テキストブロックの背景色を返します 解説 テキストブロックの背景色を返します。 返り値 ( NSColor * ) なし 引数 フレームワーク ApplicationKit クラス NSTextBlock Instance Methods 使用可能 10.4 参照 -setBackgroundColor: 例文