|
enum class | Operation {
RESET
, DISTRIBUTE_ORIGIN_HORIZONTAL
, DISTRIBUTE_ORIGIN_VERTICAL
, ALIGN_ORIGIN_TOP
,
ALIGN_ORIGIN_LEFT
, ALIGN_ORIGIN_RIGHT
, ALIGN_ORIGIN_BOTTOM
, ALIGN_BBOX_TOP
,
ALIGN_BBOX_LEFT
, ALIGN_BBOX_RIGHT
, ALIGN_BBOX_BOTTOM
, DISTRIBUTE_EQUIDISTANT_HORIZONTAL
,
DISTRIBUTE_EQUIDISTANT_VERTICAL
} |
|
|
std::set< SelectableRef > | selection |
|
using | PlacementPair = decltype(placements)::value_type |
|
using | Callback = std::function< Placement(const SelectableRef &sel, const PlacementInfo &curr)> |
|
using | IndexCallback = std::function< int64_t(const SelectableRef &sel, const PlacementInfo &curr)> |
|
virtual ToolSettings * | get_settings () |
|
void | save_placements () |
|
void | apply_placements (Callback fn) |
|
void | update_indices (IndexCallback fn) |
|
const PlacementPair & | get_placement_info_for_index (size_t index) const |
|
void | reset_placements () |
|
size_t | count_types_supported () const |
|
static bool | type_is_supported (ObjectType type) |
|
Documents | doc |
|
class ImpInterface * | imp = nullptr |
|
const ToolID | tool_id |
|
bool | is_transient = false |
|
std::map< SelectableRef, PlacementInfo > | placements |
|
std::map< UUID, double > | decal_scales |
|
std::map< UUID, uint64_t > | picture_px_sizes |
|
◆ begin()
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::ToolAlignAndDistribute::can_begin |
( |
| ) |
|
|
overridevirtual |
- Returns
- true if this Tool can begin in sensible way
Reimplemented from horizon::ToolBase.
◆ is_specific()
bool horizon::ToolAlignAndDistribute::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: