Jameo Core Library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
jm::UndoChangeFloat Class Reference

This class encapsulates the step when a float value is modified. More...

Inheritance diagram for jm::UndoChangeFloat:
jm::UndoChange

Public Member Functions

 UndoChangeFloat (Object *object, float *ptr)
 
void swap () override
 This method performs an undo/redo step by swapping the stored value (here) with the value pointed to by the pointer.
 
- Public Member Functions inherited from jm::UndoChange
 UndoChange (Object *object) noexcept
 Constructor for UndoChange class.
 
virtual ~UndoChange () noexcept
 Destructor.
 

Additional Inherited Members

- Public Attributes inherited from jm::UndoChange
UndoChangemNext
 Pointer to the next UndoChange element in the linked list.
 
UndoChangemPrev
 Pointer to the previous UndoChange element in the linked list.
 
ObjectmObject
 Pointer to the object in which the change is taking place.
 
jm::String objname
 

Detailed Description

This class encapsulates the step when a float value is modified.

This class is responsible for managing the undo/redo functionality for float values. It is used to store the changes made to a float value and perform the undo/redo operation.

Constructor & Destructor Documentation

◆ UndoChangeFloat()

jm::UndoChangeFloat::UndoChangeFloat ( Object object,
float *  ptr 
)

Member Function Documentation

◆ swap()

void jm::UndoChangeFloat::swap ( )
overridevirtual

This method performs an undo/redo step by swapping the stored value (here) with the value pointed to by the pointer.

Note
This method also triggers a regenerate() in EditableObjects.

Reimplemented from jm::UndoChange.