Krita Source Code Documentation
Loading...
Searching...
No Matches
KisChangeValueCommand.h File Reference
#include "kundo2command.h"

Go to the source code of this file.

Classes

struct  KisChangeIndirectValueCommand< mem_ptr, ValueType >
 
struct  KisChangeIndirectValueCommand< mem_ptr, ValueType >
 
struct  KisChangeValueCommand< mem_ptr, ValueType >
 
struct  KisChangeValueCommand< mem_ptr, ValueType >
 

Functions

template<auto mem_ptr, typename Base , typename ValueType >
KisChangeIndirectValueCommand< mem_ptr, ValueType > * makeChangeIndirectValueCommand (Base *base, const ValueType &newValue, KUndo2Command *parent=nullptr)
 
template<auto mem_ptr, typename Base , typename ValueType >
KisChangeValueCommand< mem_ptr, ValueType > * makeChangeValueCommand (Base *base, const ValueType &newValue, KUndo2Command *parent=nullptr)
 

Function Documentation

◆ makeChangeIndirectValueCommand()

template<auto mem_ptr, typename Base , typename ValueType >
KisChangeIndirectValueCommand< mem_ptr, ValueType > * makeChangeIndirectValueCommand ( Base * base,
const ValueType & newValue,
KUndo2Command * parent = nullptr )

Creates KisChangeIndirectValueCommand on heap, automatically deducing the type of newValue.

Definition at line 106 of file KisChangeValueCommand.h.

◆ makeChangeValueCommand()

template<auto mem_ptr, typename Base , typename ValueType >
KisChangeValueCommand< mem_ptr, ValueType > * makeChangeValueCommand ( Base * base,
const ValueType & newValue,
KUndo2Command * parent = nullptr )

Creates KisChangeValueCommand on heap, automatically deducing the type of newValue.

Definition at line 60 of file KisChangeValueCommand.h.

61{
62 return new KisChangeValueCommand<mem_ptr, ValueType>(base, newValue, parent);
63}