Files
z-bar-qt/Plugins/ZShell/Config/Screenshot.hpp
T

27 lines
901 B
C++

#pragma once
#include "ConfigSection.hpp"
#include <qqmlregistration.h>
#include <QVariantList>
class Screenshot : public ConfigSection {
Q_OBJECT
QML_UNCREATABLE("Instantiated internally by Config")
// Property names below must match the JSON keys exactly (the JSON here
// uses snake_case for these particular keys, so we do too).
CFG_PROPERTY(bool, enable_pp, EnablePp)
CFG_PROPERTY(QString, mode, Mode)
CFG_PROPERTY(int, radius, Radius)
CFG_PROPERTY(bool, rounding, Rounding)
CFG_PROPERTY(bool, saveOnCopy, SaveOnCopy)
CFG_PROPERTY(bool, shadow, Shadow)
CFG_PROPERTY(int, shadow_blur, ShadowBlur)
// [r, g, b, a]
CFG_PROPERTY(QVariantList, shadow_color, ShadowColor)
CFG_PROPERTY(int, shadow_offset_x, ShadowOffsetX)
CFG_PROPERTY(int, shadow_offset_y, ShadowOffsetY)
public:
explicit Screenshot(QObject *parent = nullptr);
};