![]() |
MKI_PLUGIN_PROC (Basic Classes) Renamed in Version 2015.0 |
www.CAD6.com |
C++ Syntaxclass MKI_PLUGIN_PROC { public:
MKI_INPUTPOINTINIT_PROC m_pfnInputPointInitProc; MKI_INPUTPOINTMOVE_PROC m_pfnInputPointMoveProc; MKI_INPUTPOINTEXIT_PROC m_pfnInputPointExitProc; MKI_INPUTDISPLAY_PROC m_pfnInputDisplayProc; MKI_INPUTPARAMETER_PROC m_pfnInputParameterProc; MKI_INPUTDIALOG_PROC m_pfnInputDialogProc; MKI_INPUTCANCEL_PROC m_pfnInputCancelProc; MKI_INPUTFINISH_PROC m_pfnInputFinishProc; };
This structure contains all callback procedures that a plug-in can provide for command handling.
Element DescriptionInputPointInitProc [MKI_INPUTPOINTINIT_PROC] This callback procedure is called at the beginning of each point entry. If this value is nullptr, the serving application continues as if InputPointInitProc had returned MKI_INPUT_OK. InputPointMoveProc [MKI_INPUTPOINTMOVE_PROC] This callback procedure is called each time the user moves the cursor. If this value is nullptr, the serving application continues as if InputPointMoveProc had returned true. InputPointExitProc [MKI_INPUTPOINTEXIT_PROC] This callback procedure is called at the end of each point entry. If this value is nullptr, the serving application continues as if InputPointExitProc had returned MKI_INPUT_OK. InputDisplayProc [MKI_INPUTDISPLAY_PROC] This callback procedure is called each time the current input status needs to be updated. If this value is nullptr, the serving application assumes that no input status has to be drawn. InputParameterProc [MKI_INPUTPARAMETER_PROC] This callback procedure is called if the user wants to edit the command's parameters. If this value is nullptr, the serving application assumes that the command does not offer any parameters to be edited. InputDialogProc New in Version 6.31 [MKI_INPUTDIALOG_PROC] This procedure is called if the user calls the "coordinate entry" command, i.e. if he wants to enter values numerically. If this value is nullptr, the serving application continues as if InputDialogProc had returned MKI_INPUT_IDLE, i.e. it will display its own coordinate entry dialog. InputCancelProc [MKI_INPUTCANCEL_PROC] This callback procedure is called if the user presses the right mouse button during point entry of a command requiring a variable point number. If this value is nullptr, the serving application continues as if InputCancelProc had returned MKI_INPUT_FINISH, i.e. the command is finished based on all previously entered points. InputFinishProc [MKI_INPUTFINISH_PROC] This callback procedure is called if the command's point entry has been finished successfully. This value must not be nullptr!
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH