MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::DirectionWidget::ChangeDirAction Class Reference

This history action must be created before the change in widget's direction, base or length to make them undo-able. More...

#include <MRDirectionWidget.h>

+ Inheritance diagram for MR::DirectionWidget::ChangeDirAction:

Public Member Functions

 ChangeDirAction (DirectionWidget &widget, const std::string &name="Change Direction")
 
- Public Member Functions inherited from MR::ChangeXfAction
 ChangeXfAction (const std::string &name, const std::shared_ptr< Object > &obj)
 Constructed from original obj.
 
virtual std::string name () const override
 
virtual void action (HistoryAction::Type) override
 This function is called on history action (undo, redo, etc.)
 
virtual size_t heapBytes () const override
 returns the amount of memory this object occupies on heap
 
- Public Member Functions inherited from MR::HistoryAction
virtual ~HistoryAction ()=default
 

Additional Inherited Members

- Public Types inherited from MR::HistoryAction
enum class  Type { Undo , Redo }
 

Detailed Description

This history action must be created before the change in widget's direction, base or length to make them undo-able.

Constructor & Destructor Documentation

◆ ChangeDirAction()

MR::DirectionWidget::ChangeDirAction::ChangeDirAction ( DirectionWidget & widget,
const std::string & name = "Change Direction" )
inline

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