Horizon
Public Types | Public Attributes | List of all members
horizon::ToolArgs Class Reference

This is what a Tool receives when the user did something. More...

#include <core.hpp>

Public Types

enum  Modifieres { MOD_FINE = (1 << 0), MOD_ALT = (1 << 1), MOD_CTRL = (1 << 2) }
 

Public Attributes

ToolEventType type = ToolEventType::NONE
 
Coordi coords
 
std::set< SelectableRefselection
 
bool keep_selection = false
 
unsigned int button = 0
 
unsigned int key = 0
 
unsigned int mod = 0
 
Target target
 
int work_layer = 0
 
std::unique_ptr< ToolDatadata = nullptr
 

Detailed Description

This is what a Tool receives when the user did something.

i.e. moved the cursor or pressed key


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