texture property

GTexture? texture

Returns the texture image of this GBitmap instance.

Implementation

GTexture? get texture {
  return _texture;
}
void texture=(GTexture? value)

Sets the texture of this GBitmap instance.

Implementation

set texture(GTexture? value) {
  if (_texture == value) {
    return;
  }
  _texture = value;
  if (_texture != null) {
    pivotX = -_texture!.pivotX! + $originalPivotX;
    pivotY = -_texture!.pivotY! + $originalPivotY;
  }
  requiresRedraw();
}