载入中...
搜索中...
未找到
eve::editor::IntFieldEditCommand类 参考final

Reversible edits to any target exposing IIntFieldTarget. 更多...

#include <EditCommand.h>

类 eve::editor::IntFieldEditCommand 继承关系图:
eve::editor::IEditCommand

Public 成员函数

 IntFieldEditCommand (std::string name, IEditableTarget *target)
 Int field edit command.
 
const std::string & name () const override
 Name.
 
bool record (int x, int y, int after)
 Record.
 
int changeCount () const
 Change count.
 
bool apply () override
 Applies .
 
void revert () override
 Revert.
 
std::unique_ptr< IEditCommand > clone () const override
 Deep copy. @ownership Caller deletes.
 
bool mergeWith (const IEditCommand &later) override
 Merge with.
 
EditRegion dirtyRegion () const override
 Dirty region.
 
- Public 成员函数 继承自 eve::editor::IEditCommand
virtual ~IEditCommand ()=default
 Releases IEditCommand resources.
 

详细描述

Reversible edits to any target exposing IIntFieldTarget.

在文件 EditCommand.h 第 46 行定义.

构造及析构函数说明

◆ IntFieldEditCommand()

eve::editor::IntFieldEditCommand::IntFieldEditCommand ( std::string  name,
IEditableTarget *  target 
)

Int field edit command.

在文件 EditCommand.cpp 第 7 行定义.

成员函数说明

◆ apply()

bool eve::editor::IntFieldEditCommand::apply ( )
overridevirtual

Applies .

实现了 eve::editor::IEditCommand.

在文件 EditCommand.cpp 第 21 行定义.

引用了 eve::editing::IEditableTarget::query().

◆ changeCount()

int eve::editor::IntFieldEditCommand::changeCount ( ) const
inline

Change count.

在文件 EditCommand.h 第 55 行定义.

◆ clone()

std::unique_ptr< IEditCommand > eve::editor::IntFieldEditCommand::clone ( ) const
overridevirtual

Deep copy. @ownership Caller deletes.

重载 eve::editor::IEditCommand .

在文件 EditCommand.cpp 第 40 行定义.

◆ dirtyRegion()

EditRegion eve::editor::IntFieldEditCommand::dirtyRegion ( ) const
inlineoverridevirtual

Dirty region.

实现了 eve::editor::IEditCommand.

在文件 EditCommand.h 第 65 行定义.

◆ mergeWith()

bool eve::editor::IntFieldEditCommand::mergeWith ( const IEditCommand &  later)
overridevirtual

Merge with.

重载 eve::editor::IEditCommand .

在文件 EditCommand.cpp 第 43 行定义.

引用了 current , 以及 eve::editing::EditRegion::include().

◆ name()

const std::string & eve::editor::IntFieldEditCommand::name ( ) const
inlineoverridevirtual

Name.

实现了 eve::editor::IEditCommand.

在文件 EditCommand.h 第 51 行定义.

◆ record()

bool eve::editor::IntFieldEditCommand::record ( int  x,
int  y,
int  after 
)

Record.

在文件 EditCommand.cpp 第 9 行定义.

引用了 eve::editing::EditRegion::include(), eve::editing::IEditableTarget::query(), x , 以及 y.

◆ revert()

void eve::editor::IntFieldEditCommand::revert ( )
overridevirtual

Revert.

实现了 eve::editor::IEditCommand.

在文件 EditCommand.cpp 第 35 行定义.

引用了 eve::editing::IEditableTarget::query().


该类的文档由以下文件生成: