MSFSolidLayer

Objective-C


@interface MSFSolidLayer : MSFLayer

Swift

class MSFSolidLayer : MSFLayer

A solid layer that displays predefined color or bitmap. @deprecated

  • Constructs a SolidLayer object from a color.

    Declaration

    Objective-C

    - (id)initWithColor:(MSFColor *)color;

    Swift

    init!(color: MSFColor!)

    Parameters

    color

    The color for the layer.

  • Constructs a SolidLayer object from a bitmap.

    Declaration

    Objective-C

    - (id)initWithBitmap:(MSFBitmap *)bitmap;

    Swift

    init!(bitmap: MSFBitmap!)

    Parameters

    bitmap

    The bitmap for the layer.

  • Returns the color of this layer.

    Declaration

    Objective-C

    - (MSFColor *)getColor;

    Swift

    func getColor() -> MSFColor!

    Return Value

    The color of this layer..

  • Sets the color of this layer.

    Declaration

    Objective-C

    - (void)setColor:(MSFColor *)color;

    Swift

    func setColor(_ color: MSFColor!)

    Parameters

    color

    The new color for the layer. Note: if bitmap is defined, the color is multiplied with the bitmap.

  • Returns the bitmap of this layer.

    Declaration

    Objective-C

    - (MSFBitmap *)getBitmap;

    Swift

    func getBitmap() -> MSFBitmap!

    Return Value

    The bitmap of this layer. Can be null.

  • Sets the bitmap of this layer.

    Declaration

    Objective-C

    - (void)setBitmap:(MSFBitmap *)bitmap;

    Swift

    func setBitmap(_ bitmap: MSFBitmap!)

    Parameters

    bitmap

    The new bitmap for the layer. Can be null, in that case the layer color is used.

  • Returns the bitmap scaling factor.

    Declaration

    Objective-C

    - (float)getBitmapScale;

    Swift

    func getBitmapScale() -> Float

    Return Value

    The bitmap scaling factor.

  • Sets the bitmap scaling factor.

    Declaration

    Objective-C

    - (void)setBitmapScale:(float)scale;

    Swift

    func setBitmapScale(_ scale: Float)

    Parameters

    scale

    The new bitmap scaling factor. Default is 1, which corresponds to 1:1 mapping between bitmap pixels and screen pixels.

  • Undocumented

    Declaration

    Objective-C

    - (BOOL)isUpdateInProgress;

    Swift

    func isUpdateInProgress() -> Bool
  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()