Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
AlignCommand Class Reference

Position type used for alignment calculations. More...

#include <align.h>

Inheritance diagram for AlignCommand:

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).

Detailed Description

Position type used for alignment calculations.

Command class for aligning items on a canvas.

Constructor & Destructor Documentation

◆ AlignCommand()

AlignCommand::AlignCommand ( Canvas * canvas,
const QList< Types::AlignmentNode > & items,
Types::AlignmentMode mode,
Types::AlignmentDirection direction,
QUndoCommand * parent = nullptr )

Constructs an AlignCommand object.

Parameters
canvasPointer to the canvas where the alignment will occur.
itemsList of alignment nodes to be aligned.
modeAlignment mode (e.g., horizontal, vertical).
directionDirection of alignment (e.g., left, right).
parentParent undo command for grouping.

Member Data Documentation

◆ mItems

const QList<Types::AlignmentNode> AlignCommand::mItems
private

Pointer to the canvas on which the command operates. ///.

Note
Not owned by this class.

◆ mMode

const Types::AlignmentMode AlignCommand::mMode
private

List of alignment nodes to be aligned. ///.

Note
Not owned by this class.

The documentation for this class was generated from the following files:
  • /__w/maki/maki/app/system/undo_commands/align.h
  • /__w/maki/maki/app/system/undo_commands/align.cpp