|
Maki
Formally verfied low-code orchestration
|
Position type used for alignment calculations. More...
#include <align.h>
Public Member Functions | |
| AlignCommand (Canvas *canvas, const QList< Types::AlignmentNode > &items, Types::AlignmentMode mode, Types::AlignmentDirection direction, QUndoCommand *parent=nullptr) | |
| Constructs an AlignCommand object. | |
| void | undo () override |
| Undoes the alignment operation. | |
| void | redo () override |
| Redoes the alignment operation. | |
Private Attributes | |
| const QList< Types::AlignmentNode > | mItems |
| Pointer to the canvas on which the command operates. ///. | |
| const Types::AlignmentMode | mMode |
| List of alignment nodes to be aligned. ///. | |
| const Types::AlignmentDirection | mDirection |
| Alignment mode (e.g., horizontal, vertical). | |
Position type used for alignment calculations.
Command class for aligning items on a canvas.
| AlignCommand::AlignCommand | ( | Canvas * | canvas, |
| const QList< Types::AlignmentNode > & | items, | ||
| Types::AlignmentMode | mode, | ||
| Types::AlignmentDirection | direction, | ||
| QUndoCommand * | parent = nullptr ) |
Constructs an AlignCommand object.
| canvas | Pointer to the canvas where the alignment will occur. |
| items | List of alignment nodes to be aligned. |
| mode | Alignment mode (e.g., horizontal, vertical). |
| direction | Direction of alignment (e.g., left, right). |
| parent | Parent undo command for grouping. |
|
private |
Pointer to the canvas on which the command operates. ///.
|
private |
List of alignment nodes to be aligned. ///.