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
colorThe color for the layer.
-
Constructs a SolidLayer object from a bitmap.
Declaration
Objective-C
- (id)initWithBitmap:(NTBitmap *)bitmap;Parameters
bitmapThe 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
colorThe 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
bitmapThe 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
scaleThe 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;
View on GitHub
NTSolidLayer Class Reference