A class to handle input related operations, like manipulating the input position and starting an input.
More...
#include <InputHandler.hpp>
|
| ~Object () |
| Default destructor.
|
|
std::shared_ptr< Impl::ObjectImpl > | mImpl |
| Impl object given by constructor.
|
|
A class to handle input related operations, like manipulating the input position and starting an input.
- Since
- Archicad 28
◆ ApplyInputPosition()
Result< void > ACAPI::v1::InputHandler::ApplyInputPosition |
( |
| ) |
const |
Applies the current input position by performing a mouse click at it.
- Returns
- Returns an error if the input above the current front window is not applicable, otherwise nothing.
- APIERR_BADWINDOW - the operation cannot be performed in the current front window of the application. Currently only the floorplan (
APIWind_FloorPlanID
) is supported
◆ GetInputPosition()
A function to get the current input position in model coordinates.
- Returns
- Returns the input position in 3D coordinates.
◆ SetInputPosition()
Result< void > ACAPI::v1::InputHandler::SetInputPosition |
( |
const API_Coord3D & |
position, |
|
|
bool |
withCursor |
|
) |
| const |
Sets the current input position with or without the cursor.
- Parameters
-
position | [in] The 3D coordinate of the new position. |
withCursor | [in] Sets if the cursor is needed to be moved to the new position. |
- Returns
- Returns an error if setting the input position above the current front window is not applicable, otherwise nothing.
- APIERR_BADWINDOW - the operation cannot be performed in the current front window of the application. Currently only the floorplan (
APIWind_FloorPlanID
) is supported
◆ CreateInputHandler
A function to create an InputHandler instance, that lets you handle input related operations.
- Returns
- Returns the InputHandler instance. This process cannot fail.