MouseEvent.add Method

Parent Object: MouseEvent
Defined in namespace "adsk::core" and the header file is <Core/UserInterface/MouseEvent.h>

Description

Adds an event handler to this event endpoint.

Syntax

"mouseEvent_var" is a variable referencing a MouseEvent object.
returnValue = mouseEvent_var.add(handler)
"mouseEvent_var" is a variable referencing a MouseEvent object.

#include <Core/UserInterface/MouseEvent.h>

returnValue = mouseEvent_var->add(handler);

Return Value

Type Description
boolean Returns true if the handler was successfully added to the set of event handlers.

Parameters

Name Type Description
handler MouseEventHandler The client implemented MouseEventHandler to be called when this event is triggered.

Version

Introduced in version August 2014