dirty property

GhosttyRenderStateDirty get dirty

The current dirty state for this render state.

Implementation

bindings.GhosttyRenderStateDirty get dirty {
  _ensureOpen();
  final out = calloc<ffi.UnsignedInt>();
  try {
    _checkResult(
      bindings.ghostty_render_state_get(
        _handle,
        bindings.GhosttyRenderStateData.GHOSTTY_RENDER_STATE_DATA_DIRTY,
        out.cast(),
      ),
      'ghostty_render_state_get',
    );
    return bindings.GhosttyRenderStateDirty.fromValue(out.value);
  } finally {
    calloc.free(out);
  }
}
set dirty (GhosttyRenderStateDirty value)

Updates the dirty state for this render state.

Implementation

set dirty(bindings.GhosttyRenderStateDirty value) {
  _ensureOpen();
  final nativeValue = calloc<ffi.UnsignedInt>();
  try {
    nativeValue.value = value.value;
    _checkResult(
      bindings.ghostty_render_state_set(
        _handle,
        bindings.GhosttyRenderStateOption.GHOSTTY_RENDER_STATE_OPTION_DIRTY,
        nativeValue.cast(),
      ),
      'ghostty_render_state_set',
    );
  } finally {
    calloc.free(nativeValue);
  }
}