Platforms to show: All Mac Windows Linux Cross-Platform
CATextLayerMBS class
Super class: CALayerMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CoreAnimation | MBS MacCG Plugin | 18.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The first line is aligned to the top of the layer.
Subclass of the CALayerMBS class.
- 8 properties
- property alignmentMode as String
- property allowsFontSubpixelQuantization as Boolean
- property font as Variant
- property fontSize as Double
- property foregroundColor as Variant
- property String as Variant
- property truncationMode as String
- property Wrapped as Boolean
- method Constructor
- 9 shared methods
- shared method kCAAlignmentCenter as String
- shared method kCAAlignmentJustified as String
- shared method kCAAlignmentLeft as String
- shared method kCAAlignmentNatural as String
- shared method kCAAlignmentRight as String
- shared method kCATruncationEnd as String
- shared method kCATruncationMiddle as String
- shared method kCATruncationNone as String
- shared method kCATruncationStart as String
Super class CALayerMBS
- 41 properties
- property affineTransform as CGAffineTransformMBS
- property anchorPoint as CGRectMBS
- property anchorPointZ as Double
- property AutoresizingMask as Integer
- property backgroundColor as Variant
- property borderColor as Variant
- property borderWidth as Double
- property bounds as CGRectMBS
- property className as string
- property classPath as string
- property contents as Variant
- property contentsCenter as CGRectMBS
- property contentsRect as CGRectMBS
- property contentsScale as Double
- property cornerRadius as Double
- property DoubleSided as boolean
- property drawsAsynchronously as boolean
- property frame as CGRectMBS
- property Handle as Integer
- property Hidden as boolean
- property mask as CALayerMBS
- property masksToBounds as Boolean
- property minificationFilterBias as Double
- property modelLayer as CALayerMBS
- property needsDisplay as boolean
- property needsDisplayOnBoundsChange as boolean
- property needsLayout as boolean
- property opacity as Double
- property Opaque as boolean
- property position as CGRectMBS
- property preferredFrameSize as CGSizeMBS
- property presentationLayer as CALayerMBS
- property rasterizationScale as Double
- property shadowColor as Variant
- property shadowOffset as CGSizeMBS
- property shadowOpacity as Double
- property shadowPath as Variant
- property shadowRadius as Double
- property shouldRasterize as Boolean
- property superlayer as CALayerMBS
- property zPosition as Double
- 14 methods
- method addSublayer(layer as CALayerMBS)
- method Constructor
- method display
- method displayIfNeeded
- method layoutIfNeeded
- method layoutSublayers
- method removeAllAnimations
- method removeFromSuperlayer
- method renderInContext(CGContextHandle as Integer) as boolean
- method renderInPicture(Pic as Picture) as boolean
- method setNeedsDisplay
- method setNeedsDisplayInRect(r as CGRectMBS)
- method setNeedsLayout
- method sublayers as CALayerMBS()
- 4 shared methods
- shared method available as boolean
- shared method layer as CALayerMBS
- shared method layerFromHandle(Handle as Integer) as CALayerMBS
- shared method layerFromHandle(Handle as Ptr) as CALayerMBS
- 11 constants
Edge constants
Constant | Value | Description |
---|---|---|
kCALayerBottomEdge | 4 |
Specifies that the bottom edge of the receiver's content should be antialiased. |
kCALayerLeftEdge | 1 |
Specifies that the left edge of the receiver's content should be antialiased. |
kCALayerRightEdge | 2 |
Specifies that the right edge of the receiver's content should be antialiased. |
kCALayerTopEdge | 8 |
Specifies that the top edge of the receiver's content should be antialiased. |
Autoresize Mask Constants
Constant | Value | Description |
---|---|---|
kCALayerHeightSizable | 16 |
The receiver's height is flexible. |
kCALayerMaxXMargin | 4 |
The left margin between the receiver and its superview is flexible. |
kCALayerMaxYMargin | 32 |
The top margin between the receiver and its superview is flexible. |
kCALayerMinXMargin | 1 |
The left margin between the receiver and its superview is flexible. |
kCALayerMinYMargin | 8 |
The top margin between the receiver and its superview is flexible. |
kCALayerNotSizable | 0 |
The receiver cannot be resized. |
kCALayerWidthSizable | 2 |
The receiver's width is flexible. |
This class has no sub classes.
Some examples using this class:
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 18.4
- MBS Xojo Plugins, version 18.4pr1
Xojo Developer Magazine
Release notes
- Version 18.4
- Added CATextLayerMBS class.
The items on this page are in the following plugins: MBS MacCG Plugin.
CarbonWindowsEventsMBS - CATransactionMBS