# IRsTool Interface Reference

Inherits IUnknown.

Inherited by IRcMoveTool, and IRsToolEx.

List of all members.

## Public Member Functions
HRESULT | OnPress ([in] RtMouseEvent *pEvent,[in] IRsNode *pViewNode)
HRESULT | OnDrag ([in] RtMouseEvent *pEvent)
HRESULT | OnRelease ([in] RtMouseEvent *pEvent)

## Detailed Description

Interface to Rosetta tool manager, simplified version. Handles only simple sequence Press, Drag, Release.

## Member Function Documentation

HRESULT IRsTool::OnPress | ( | [in] RtMouseEvent * | pEvent,
|  | [in] IRsNode * | pViewNode |
| ) |  |  |

Set tool to press state.

Parameters:

  | pEvent | [in] .
  | pViewNode | [in] .

HRESULT IRsTool::OnDrag | ( | [in] RtMouseEvent * | pEvent | ) |

Perform tool operation in drag state.

Parameters:

  | pEvent | [in] .

HRESULT IRsTool::OnRelease | ( | [in] RtMouseEvent * | pEvent | ) |

Set tool to inactive state.

Parameters:

  | pEvent | [in] .