#pragma once

#include "../effect/EffectContainer.hpp"
#include "../../../helpers/memory/Memory.hpp"

#pragma once

namespace Desktop::Rule {
    enum eWindowRuleEffect : uint8_t {
        WINDOW_RULE_EFFECT_NONE = 0,

        // static
        WINDOW_RULE_EFFECT_FLOAT,
        WINDOW_RULE_EFFECT_TILE,
        WINDOW_RULE_EFFECT_FULLSCREEN,
        WINDOW_RULE_EFFECT_MAXIMIZE,
        WINDOW_RULE_EFFECT_FULLSCREENSTATE,
        WINDOW_RULE_EFFECT_MOVE,
        WINDOW_RULE_EFFECT_SIZE,
        WINDOW_RULE_EFFECT_CENTER,
        WINDOW_RULE_EFFECT_PSEUDO,
        WINDOW_RULE_EFFECT_MONITOR,
        WINDOW_RULE_EFFECT_WORKSPACE,
        WINDOW_RULE_EFFECT_NOINITIALFOCUS,
        WINDOW_RULE_EFFECT_PIN,
        WINDOW_RULE_EFFECT_GROUP,
        WINDOW_RULE_EFFECT_SUPPRESSEVENT,
        WINDOW_RULE_EFFECT_CONTENT,
        WINDOW_RULE_EFFECT_NOCLOSEFOR,
        WINDOW_RULE_EFFECT_SCROLLING_WIDTH,

        // dynamic
        WINDOW_RULE_EFFECT_ROUNDING,
        WINDOW_RULE_EFFECT_ROUNDING_POWER,
        WINDOW_RULE_EFFECT_PERSISTENT_SIZE,
        WINDOW_RULE_EFFECT_ANIMATION,
        WINDOW_RULE_EFFECT_BORDER_COLOR,
        WINDOW_RULE_EFFECT_IDLE_INHIBIT,
        WINDOW_RULE_EFFECT_OPACITY,
        WINDOW_RULE_EFFECT_TAG,
        WINDOW_RULE_EFFECT_MAX_SIZE,
        WINDOW_RULE_EFFECT_MIN_SIZE,
        WINDOW_RULE_EFFECT_BORDER_SIZE,
        WINDOW_RULE_EFFECT_ALLOWS_INPUT,
        WINDOW_RULE_EFFECT_DIM_AROUND,
        WINDOW_RULE_EFFECT_DECORATE,
        WINDOW_RULE_EFFECT_FOCUS_ON_ACTIVATE,
        WINDOW_RULE_EFFECT_KEEP_ASPECT_RATIO,
        WINDOW_RULE_EFFECT_NEAREST_NEIGHBOR,
        WINDOW_RULE_EFFECT_NO_ANIM,
        WINDOW_RULE_EFFECT_NO_BLUR,
        WINDOW_RULE_EFFECT_NO_DIM,
        WINDOW_RULE_EFFECT_NO_FOCUS,
        WINDOW_RULE_EFFECT_NO_FOLLOW_MOUSE,
        WINDOW_RULE_EFFECT_NO_MAX_SIZE,
        WINDOW_RULE_EFFECT_NO_SHADOW,
        WINDOW_RULE_EFFECT_NO_SHORTCUTS_INHIBIT,
        WINDOW_RULE_EFFECT_OPAQUE,
        WINDOW_RULE_EFFECT_FORCE_RGBX,
        WINDOW_RULE_EFFECT_SYNC_FULLSCREEN,
        WINDOW_RULE_EFFECT_IMMEDIATE,
        WINDOW_RULE_EFFECT_XRAY,
        WINDOW_RULE_EFFECT_RENDER_UNFOCUSED,
        WINDOW_RULE_EFFECT_NO_SCREEN_SHARE,
        WINDOW_RULE_EFFECT_NO_VRR,
        WINDOW_RULE_EFFECT_NO_AUTO_HDR,
        WINDOW_RULE_EFFECT_TONEMAP,
        WINDOW_RULE_EFFECT_SCROLL_MOUSE,
        WINDOW_RULE_EFFECT_SCROLL_TOUCHPAD,
        WINDOW_RULE_EFFECT_STAY_FOCUSED,
        WINDOW_RULE_EFFECT_CONFINE_POINTER,

        WINDOW_RULE_EFFECT_LAST_STATIC,
    };

    class CWindowRuleEffectContainer : public IEffectContainer<eWindowRuleEffect> {
      public:
        CWindowRuleEffectContainer();
        virtual ~CWindowRuleEffectContainer() = default;
    };

    SP<CWindowRuleEffectContainer> windowEffects();
};
