NTSolidLayer


@interface NTSolidLayer : NTLayer

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

  • Constructs a SolidLayer object from a color.

    Declaration

    Objective-C

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

    Parameters

    color

    The color for the layer.

  • Constructs a SolidLayer object from a bitmap.

    Declaration

    Objective-C

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

    Parameters

    bitmap

    The bitmap for the layer.

  • Returns the color of this layer.

    Declaration

    Objective-C

    - (NTColor *)getColor;

    Return Value

    The color of this layer..

  • Sets the color of this layer.

    Declaration

    Objective-C

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

    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

    - (NTBitmap *)getBitmap;

    Return Value

    The bitmap of this layer. Can be null.

  • Sets the bitmap of this layer.

    Declaration

    Objective-C

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

    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;

    Return Value

    The bitmap scaling factor.

  • Sets the bitmap scaling factor.

    Declaration

    Objective-C

    - (void)setBitmapScale:(float)scale;

    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;
  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;