Something went wrong. Try again.
art software for the rest of us
drawing paint image sdl art
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253#include "Command.h"#include <cstdint>#include "../ManagementContext/BlendingPipelineManagementContext.h"
/*you can- rename- change blendmode- set opacity- set alpha locked- set clipped*/class LayerEdit : public Command { uint32_t layerID; std::string action = "Edit Layer"; std::string beforeName = ""; Blendmode beforeBlendMode = Blendmode::NORMAL; double beforeOpacity = 1.0; bool beforeVisible = true; bool beforeLocked = false; bool beforeAlphaLocked = false; bool beforeClipped = false; std::string nowName = ""; Blendmode nowBlendMode = Blendmode::NORMAL; double nowOpacity = 1.0; bool nowVisible = true; bool nowLocked = false; bool nowAlphaLocked = false; bool nowClipped = false;public: ~LayerEdit(); //LayerEdit(std::string act, uint32_t layerID, std::string name, Blendmode blendmode, double opacity, bool visible, bool locked, bool alphaLocked, bool clipped); LayerEdit(std::string act, uint32_t layerID); void SetOldBlendmode(Blendmode blendmode); void SetOldOpacity(double opacity); void SetOldVisible(bool visible); void SetOldLocked(bool locked); void SetOldAlphaLocked(bool alphaLocked); void SetOldClipped(bool clipped); void SetOldName(std::string name); void SetBlendmode(Blendmode blendmode); void SetOpacity(double opacity); void SetVisible(bool visible); void SetLocked(bool locked); void SetAlphaLocked(bool alphaLocked); void SetClipped(bool clipped); void SetName(std::string name); virtual void Execute() override; virtual void Undo() override; virtual json SerializeArgs() override; virtual std::string GetTitle() override; virtual const char* GetIdentity() const override;};