macOS/iOS API解説

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

目次

CGFunction

INDEX>CoreGraphics

関数の説明

グラデーションなどに使うユーザー定義関数
CGFunctionRefオペークタイプは定義とコールバック関数の使用の基本となる環境を提供します。

https://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_shadings/dq_shadings.html%23//apple_ref/doc/uid/TP30001066-CH207-TPXREF101

由来 CFType
フレームワーク ApplicationServices/ApplicationServices.h
使用可能 iOS2.0以降
定義 CGFunction.h

解説

概要

タスク

CGFunctionオブジェクトの作成

CGFunctionCreate

CGFunctionオブジェクトの保持と開放

CGFunctionRelease
CGFunctionRetain

CFType IDの取得

CGFunctionGetTypeID