KiCad PCB EDA Suite
tool_base.h File Reference
#include <cassert>
#include <base_struct.h>
#include <tool/tool_event.h>
#include <tool/tool_settings.h>
#include <functional>

Go to the source code of this file.

Classes

class  TOOL_BASE
 Class TOOL_BASE. More...
 

Namespaces

 KIGFX
 Class CAIRO_GAL is the cairo implementation of the graphics abstraction layer.
 

Typedefs

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

Enumerations

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

Typedef Documentation

typedef int TOOL_ID

Unique identifier for tools.

Definition at line 57 of file tool_base.h.

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

Definition at line 59 of file tool_base.h.

Enumeration Type Documentation

enum TOOL_TYPE
Enumerator
INTERACTIVE 

Tool that interacts with the user

BATCH 

Tool that runs in the background without any user intervention

Definition at line 47 of file tool_base.h.

48 {
50  INTERACTIVE = 0x01,
51 
53  BATCH = 0x02
54 };
Tool that interacts with the user
Definition: tool_base.h:50
Tool that runs in the background without any user intervention
Definition: tool_base.h:53