Class CATextLayer

All Implemented Interfaces:
CAMediaTiming, NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class CATextLayer
extends CALayer
  • Constructor Details

    • CATextLayer

      public CATextLayer()
    • CATextLayer

      protected CATextLayer​(NSObject.Handle h, long handle)
    • CATextLayer

      protected CATextLayer​(NSObject.SkipInit skipInit)
    • CATextLayer

      public CATextLayer​(CALayer layer)
  • Method Details

    • getStringPtr

      protected long getStringPtr()
    • setStringPtr

      protected void setStringPtr​(long v)
    • getFontPtr

      protected long getFontPtr()
    • setFontPtr

      protected void setFontPtr​(long v)
    • getFontSize

      public double getFontSize()
    • setFontSize

      public void setFontSize​(double v)
    • getForegroundColor

      public CGColor getForegroundColor()
    • setForegroundColor

      public void setForegroundColor​(CGColor v)
    • isWrapped

      public boolean isWrapped()
    • setWrapped

      public void setWrapped​(boolean v)
    • getTruncationMode

      public CATextTruncationMode getTruncationMode()
    • setTruncationMode

      public void setTruncationMode​(CATextTruncationMode v)
    • getAlignmentMode

      public CATextAlignmentMode getAlignmentMode()
    • setAlignmentMode

      public void setAlignmentMode​(CATextAlignmentMode v)
    • allowsFontSubpixelQuantization

      public boolean allowsFontSubpixelQuantization()
    • setAllowsFontSubpixelQuantization

      public void setAllowsFontSubpixelQuantization​(boolean v)
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • getString

      public Object getString()
    • setString

      public void setString​(String string)
    • setString

      public void setString​(NSAttributedString string)
    • getFont

      public Object getFont()
      Returns the value of the font property. Either a CTFont, CGFont or String.
    • setFont

      public void setFont​(CTFont font)
    • setFont

      public void setFont​(CGFont font)
    • setFont

      public void setFont​(String font)
    • getDefaultValue

      public static NSObject getDefaultValue​(String key)
    • needsDisplay

      public static boolean needsDisplay​(String key)
    • cornerCurveExpansionFactor

      public static double cornerCurveExpansionFactor​(CALayerCornerCurve curve)
      Since:
      Available in iOS 13.0 and later.
    • getDefaultAction

      public static CAAction getDefaultAction​(String event)