Files
flameshot/src/tools/capturecontext.h
Haris Gušić 82096a6301 Fix capture launched from system tray
Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
2021-10-11 21:04:04 +02:00

38 lines
944 B
C

// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
#pragma once
#include "capturerequest.h"
#include <QPainter>
#include <QPixmap>
#include <QPoint>
#include <QRect>
struct CaptureContext
{
// screenshot with modifications
QPixmap screenshot;
// unmodified screenshot
QPixmap origScreenshot;
// Selection area
QRect selection;
// Selected tool color
QColor color;
// Path where the content has to be saved
QString savePath;
// Offset of the capture widget based on the system's screen (top-left)
QPoint widgetOffset;
// Mouse position inside the widget
QPoint mousePos;
// Value of the desired thickness
int thickness;
// Mode of the capture widget
bool fullscreen;
uint requestId;
QPixmap selectedScreenshotArea() const;
CaptureRequest* request();
CaptureRequest* request() const;
};