# IRsWidgetComponent Interface Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | EnumRequiredNodes ([in] IRsNodeEnumerator *pEnum)
HRESULT | EnumConnectedNodes ([in] IRsNodeEnumerator *pEnum)
HRESULT | SetActiveWidget ([in] IRsBaseNode *pWidget)
HRESULT | SetTemplateNode ([in] IRsBaseNode *pNode)

## Detailed Description

Implement this interface if your widget node requires more complex objects handling during widget activation/deactivation

## Member Function Documentation

HRESULT IRsWidgetComponent::EnumRequiredNodes | ( | [in] IRsNodeEnumerator * | pEnum | ) |

Enumerate list of nodes that this object requires.

Parameters:

  | pEnum | [in] List of objects that will be copied into active widget.

HRESULT IRsWidgetComponent::EnumConnectedNodes | ( | [in] IRsNodeEnumerator * | pEnum | ) |

Enumerate list of nodes connected to this object.

Parameters:

  | pEnum | [in] List of objects that will be copied into active widget.

HRESULT IRsWidgetComponent::SetActiveWidget | ( | [in] IRsBaseNode * | pWidget | ) |

Called by widget management during widget activation/deactivation.

Parameters:

  | pWidget | [in] Active widget encapsulator of widget this node is in.

HRESULT IRsWidgetComponent::SetTemplateNode | ( | [in] IRsBaseNode * | pNode | ) |

Called on active widget nodes to set orignal node pointer.

Parameters:

  | pNode | [in] Original widget node.