KiCad PCB EDA Suite
Loading...
Searching...
No Matches
tool_base.h File Reference
#include <cassert>
#include <functional>
#include <string>
#include <wx/debug.h>

Go to the source code of this file.

Classes

class  TOOL_BASE
 Base abstract interface for all kinds of tools. More...
 

Namespaces

namespace  KIGFX
 The Cairo implementation of the graphics abstraction layer.
 

Typedefs

typedef int TOOL_ID
 Unique identifier for tools.
 
using TOOL_STATE_FUNC = std::function< int(const TOOL_EVENT &)>
 

Enumerations

enum  TOOL_TYPE { INTERACTIVE = 0x01 , BATCH = 0x02 }
 

Typedef Documentation

◆ TOOL_ID

typedef int TOOL_ID

Unique identifier for tools.

Definition at line 56 of file tool_base.h.

◆ TOOL_STATE_FUNC

using TOOL_STATE_FUNC = std::function<int(const TOOL_EVENT&)>

Definition at line 58 of file tool_base.h.

Enumeration Type Documentation

◆ TOOL_TYPE

enum TOOL_TYPE
Enumerator
INTERACTIVE 

Tool that interacts with the user.

Tool that runs in the background without any user intervention

BATCH 

Definition at line 46 of file tool_base.h.