bufferSetCellWithAlphaBlending method

void bufferSetCellWithAlphaBlending(
  1. Pointer<OptimizedBufferHandle> buffer,
  2. int x,
  3. int y,
  4. int charCode,
  5. Color fg,
  6. Color bg,
  7. int attributes,
)

Sets the cell at (x,y) in buffer to charCode with fg/bg colors and packed attributes, alpha-blending against existing content. Throws FFIException on failure.

Implementation

void bufferSetCellWithAlphaBlending(
  Pointer<OptimizedBufferHandle> buffer,
  int x,
  int y,
  int charCode,
  Color fg,
  Color bg,
  int attributes,
) {
  _guardAlloc('Failed to set cell with alpha blending', (alloc) {
    _generated.bufferSetCellWithAlphaBlending(
      buffer.cast(),
      x,
      y,
      charCode,
      fg.toNative(alloc),
      bg.toNative(alloc),
      attributes,
    );
  });
}