Platforms to show: All Mac Windows Linux Cross-Platform
CTFrameMBS class
Super class: CFObjectMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreText | MBS MacCG Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The frame object is the output resulting from the text-framing process performed by a framesetter object.
You can draw the entire text frame directly into the current graphic context. The frame object contains an array of line objects that can be retrieved for individual rendering or to get glyph information.
Subclass of the CFObjectMBS class.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 6 properties
- property FrameAttributes as Dictionary
- property Path as CGPathMBS
- property StringRangeLength as Integer
- property StringRangeLocation as Integer
- property VisibleStringRangeLength as Integer
- property VisibleStringRangeLocation as Integer
- 4 methods
- method Constructor Private
- method Draw(context as CGContextMBS)
- method LineOrigins(location as Integer, length as Integer) as CGPointMBS()
- method Lines as CTLineMBS()
- 6 shared methods
- shared method Available as boolean
- shared method kCTFrameClippingPathsAttributeName as string
- shared method kCTFramePathClippingPathAttributeName as string
- shared method kCTFramePathFillRuleAttributeName as string
- shared method kCTFramePathWidthAttributeName as string
- shared method kCTFrameProgressionAttributeName as string
- 5 constants
Fill rules
Constant | Value | Description |
---|---|---|
kCTFramePathFillEvenOdd | 0 |
Text is filled in the area that would be painted if the path were given to CGContextMBS.EOFillPath. Available in OS X v10.7 and later. |
kCTFramePathFillWindingNumber | 1 |
Text is fill in the area that would be painted if the path were given to CGContextMBS.FillPath. Available in OS X v10.7 and later. |
Frame Progression Types
Constant | Value | Description |
---|---|---|
kCTFrameProgressionLeftToRight | 2 | Lines are stacked left to right for vertical text. more |
kCTFrameProgressionRightToLeft | 1 | Lines are stacked right to left for vertical text. more |
kCTFrameProgressionTopToBottom | 0 | Lines are stacked top to bottom for horizontal text. more |
Super class CFObjectMBS
- 5 properties
- property Handle as Integer
- property Hash as Integer
- property Lasterror as Integer
- property Type as Integer
- property TypeDescription as String
- 9 methods
- method close
- method DeepCopy as CFObjectMBS
- method EncodedData as MemoryBlock
- method Equal(o as CFObjectMBS) as boolean
- method ReleaseObject
- method RetainCount as Integer
- method RetainObject
- method XML as CFBinaryDataMBS
- method XMLdata as String
- shared method NewCFObject(handle as Integer) as CFObjectMBS
This class has no sub classes.
Some methods using this class:
- CTFramesetterMBS.CreateFrame(location as Integer, length as Integer, path as CGPathMBS, frameAttributes as dictionary = nil) as CTFrameMBS
Some examples using this class:
- /MacCG/Attributed String print
- /MacCG/CoreText/CoreText Dynamic Text Height
- /MacCG/CoreText/CoreText Test
Blog Entries
The items on this page are in the following plugins: MBS MacCF Plugin, MBS MacCG Plugin.