Horizon
Public Member Functions | List of all members
horizon::ToolPaste Class Reference
Inheritance diagram for horizon::ToolPaste:
horizon::ToolHelperMove horizon::ToolHelperMerge horizon::ToolBase horizon::ToolHelperRestrict horizon::ToolBase

Public Member Functions

 ToolPaste (Core *c, ToolID tid)
 
ToolResponse begin (const ToolArgs &args) override
 Gets called right after the constructor has finished. More...
 
ToolResponse update (const ToolArgs &args) override
 Gets called whenever the user generated some sort of input.
 
bool can_begin () override
 
bool is_specific () override
 
- Public Member Functions inherited from horizon::ToolHelperMove
 ToolHelperMove (class Core *c, ToolID tid)
 
- Public Member Functions inherited from horizon::ToolBase
 ToolBase (class Core *c, ToolID tid)
 
void set_imp_interface (class ImpInterface *i)
 
void set_transient ()
 
virtual ToolID get_tool_id_for_settings () const
 
virtual const ToolSettingsget_settings_const () const
 
ToolSettingsProxy get_settings_proxy ()
 
virtual void apply_settings ()
 
virtual bool handles_esc ()
 
- Public Member Functions inherited from horizon::ToolHelperMerge
 ToolHelperMerge (class Core *c, ToolID tid)
 

Additional Inherited Members

- Static Public Member Functions inherited from horizon::ToolHelperMove
static Orientation transform_orientation (Orientation orientation, bool rotate, bool reverse=false)
 
- Protected Types inherited from horizon::ToolHelperRestrict
enum  RestrictMode { X, Y, ARB }
 
- Protected Member Functions inherited from horizon::ToolHelperMove
void move_init (const Coordi &c)
 
void move_do (const Coordi &delta)
 
void move_do_cursor (const Coordi &c)
 
void move_mirror_or_rotate (const Coordi &center, bool rotate)
 
Coordi get_delta () const
 
- Protected Member Functions inherited from horizon::ToolBase
virtual ToolSettingsget_settings ()
 
- Protected Member Functions inherited from horizon::ToolHelperRestrict
void cycle_restrict_mode ()
 
void cycle_restrict_mode_xy ()
 
std::string restrict_mode_to_string () const
 
Coordi get_coord_restrict (const Coordi &old, const Coordi &cur) const
 
- Protected Member Functions inherited from horizon::ToolHelperMerge
bool merge_bus_net (class Net *net, class Bus *bus, class Net *net_other, class Bus *bus_other)
 
int merge_nets (Net *net, Net *into)
 
void merge_selected_junctions ()
 
- Protected Attributes inherited from horizon::ToolBase
Cores core
 
class ImpInterfaceimp = nullptr
 
ToolID tool_id = ToolID::NONE
 
bool is_transient = false
 
- Protected Attributes inherited from horizon::ToolHelperRestrict
RestrictMode restrict_mode = RestrictMode::ARB
 

Member Function Documentation

◆ begin()

ToolResponse horizon::ToolPaste::begin ( const ToolArgs args)
overridevirtual

Gets called right after the constructor has finished.

Used to get the initial placement right and set things up. For non-interactive Tools (e.g. DELETE), this one may return ToolResponse::end()

Implements horizon::ToolBase.

◆ can_begin()

bool horizon::ToolPaste::can_begin ( )
inlineoverridevirtual
Returns
true if this Tool can begin in sensible way

Reimplemented from horizon::ToolBase.

◆ is_specific()

bool horizon::ToolPaste::is_specific ( )
inlineoverridevirtual
Returns
true if this Tool is specific to the selection

Reimplemented from horizon::ToolBase.


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