|
KiCad PCB EDA Suite
|
#include <tool/arc_mode_session.h>#include <settings/app_settings.h>#include <tool/actions.h>#include <tool/shape_draw_behavior.h>#include <tool/tool_event.h>Go to the source code of this file.
Functions | |
| ARC_DRAW_MODE | StartArcDrawMode (const TOOL_EVENT &aEvent, APP_SETTINGS_BASE *aSettings, SHAPE_DRAW_BEHAVIOR &aBehavior) |
| Pick the mode a Draw Arc action starts in and apply it to aBehavior. | |
| ARC_DRAW_MODE StartArcDrawMode | ( | const TOOL_EVENT & | aEvent, |
| APP_SETTINGS_BASE * | aSettings, | ||
| SHAPE_DRAW_BEHAVIOR & | aBehavior ) |
Pick the mode a Draw Arc action starts in and apply it to aBehavior.
The action's own mode wins over the one saved in aSettings, and the chosen mode is saved back.
Definition at line 28 of file arc_mode_session.cpp.
References CENTER_START_END, APP_SETTINGS_BASE::m_ArcDrawMode, TOOL_EVENT::ParameterIf(), and SHAPE_DRAW_BEHAVIOR::SetArcDrawMode().
Referenced by DRAWING_TOOL::DrawArc(), and EE_GRAPHIC_TOOL::DrawArc().