// Copyright (c) 2026 Storm Dragon // Authors: Storm Dragon, Angus Kola // SPDX-License-Identifier: GPL-3.0-or-later #pragma once #include typedef struct { int status; unsigned long sourceWindow; int rootWidth, rootHeight; int sourceX, sourceY, sourceWidth, sourceHeight; int x, y, width, height; GdkPixbuf *pixels; guchar *clipboard; int clipboardLength; } OCRCapture; OCRCapture cthulhu_ocr_capture(int kind, unsigned long foreground, unsigned long window, int x, int y, int right, int bottom); void cthulhu_ocr_capture_free(OCRCapture *capture);