Horizon
Static Public Member Functions | Public Attributes | List of all members
horizon::ToolResponse Class Reference

To signal back to the core what the Tool did, a Tool returns a ToolResponse. More...

#include <core.hpp>

Static Public Member Functions

static ToolResponse end ()
 Use this if you're done. More...
 
static ToolResponse fast ()
 
static ToolResponse change_layer (int l)
 Use this for changing the work layer from a Tool.
 
static ToolResponse next (ToolID t, std::unique_ptr< ToolData > data=nullptr)
 If you want another Tool to be launched you've finished, use this one.
 

Public Attributes

ToolID next_tool = ToolID::NONE
 
std::unique_ptr< ToolDatadata = nullptr
 
bool end_tool = false
 
int layer = 10000
 
bool fast_draw = false
 

Detailed Description

To signal back to the core what the Tool did, a Tool returns a ToolResponse.

Member Function Documentation

◆ end()

static ToolResponse horizon::ToolResponse::end ( )
inlinestatic

Use this if you're done.

The Core will then delete the active tool and initiate a rebuild.


The documentation for this class was generated from the following file: