macOS/iOS API解説

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

目次

NSGradientクラス

INDEX>AppKit> NSGradient

グラデーションクラス
継承 NSObject
準拠 NSObject (NSObject)
フレームワーク /System/Library/Frameworks/AppKit.framework
使用可能 OS X 10.5以降
定義
インポート文 @import AppKit;

概要

オブジェクトの塗りで使用する、グラデーションオブジェクトです。

f:id:jjj777:20151103170602p:plain

線形の塗りと放射状の塗りがあります。



メソッドとプロパティ

初期化

- initWithStartingColor:endingColor:
- initWithColors:
- initWithColorsAndLocations:
- initWithColors:atLocations:colorSpace:

Primitive Drawing Methods

- drawFromPoint:toPoint:options:
- drawFromCenter:radius:toCenter:radius:options:

Drawing Linear Gradients

- drawInRect:angle:
- drawInBezierPath:angle:

Drawing Radial Gradients

- drawInRect:relativeCenterPosition:
- drawInBezierPath:relativeCenterPosition:

Getting Gradient Properties

colorSpace
numberOfColorStops
- getColor:location:atIndex:
- interpolatedColorAtLocation:

Data Types

NSGradientDrawingOptions

Constants

Gradient Drawing Options



定数

参照

更新時バージョン

OS X 10.11