# Operator

class `cee.``Operator`()

  The `Operator` class is the base class for all operators. A name is required for all operators, and the name is used to identify the operator in the `cee.OperatorStack`.

  Operators contain optional methods that correspond to the different events that may occur in the view. When an operator is set on a `View`, the operator can interact with its ownerView, but only that view. The `cee.Viewer` sets the events listeners internally, and then fires the corresponding Operator event handler method when the event is recieved.

Constructors

- `constructor`

Accessors

- `name`
- `ownerView`

Methods

- `onAddedToView`
- `onClick`
- `onDblClick`
- `onKeyDown`
- `onKeyUp`
- `onMouseDown`
- `onMouseMove`
- `onMouseUp`
- `onPointerDown`
- `onPointerMove`
- `onPointerUp`
- `onRemovedFromView`
- `onTouchEnd`
- `onTouchMove`
- `onTouchStart`
- `onWheel`

## Constructors

`Operator.``constructor`(name)

  Arguments: | name (`string`) – None
  Return type: | Operator

## Accessors

`Operator.``name`()

  The name of the operator. Built-in operator names can be referenced by the `StandardOperator` enum.

  Return type: | string

`Operator.``ownerView`()

  Returns the `View` that this operator is set on. If the operator is not on a view’s `cee.OperatorStack`, null is returned.

  Return type: | View

## Methods

### onAddedToView

`Operator.``onAddedToView`()

  Return type: | void

### onClick

`Operator.``onClick`(event)

  Arguments: | event (`MouseEvent`) – None
  Return type: | OperatorEventStatus

### onDblClick

`Operator.``onDblClick`(event)

  Arguments: | event (`MouseEvent`) – None
  Return type: | OperatorEventStatus

### onKeyDown

`Operator.``onKeyDown`(event)

  Arguments: | event (`KeyboardEvent`) – None
  Return type: | OperatorEventStatus

### onKeyUp

`Operator.``onKeyUp`(event)

  Arguments: | event (`KeyboardEvent`) – None
  Return type: | OperatorEventStatus

### onMouseDown

`Operator.``onMouseDown`(event)

  Arguments: | event (`MouseEvent`) – None
  Return type: | OperatorEventStatus

### onMouseMove

`Operator.``onMouseMove`(event)

  Arguments: | event (`MouseEvent`) – None
  Return type: | OperatorEventStatus

### onMouseUp

`Operator.``onMouseUp`(event)

  Arguments: | event (`MouseEvent`) – None
  Return type: | OperatorEventStatus

### onPointerDown

`Operator.``onPointerDown`(event)

  Arguments: | event (`PointerEvent`) – None
  Return type: | OperatorEventStatus

### onPointerMove

`Operator.``onPointerMove`(event)

  Arguments: | event (`PointerEvent`) – None
  Return type: | OperatorEventStatus

### onPointerUp

`Operator.``onPointerUp`(event)

  Arguments: | event (`PointerEvent`) – None
  Return type: | OperatorEventStatus

### onRemovedFromView

`Operator.``onRemovedFromView`()

  Return type: | void

### onTouchEnd

`Operator.``onTouchEnd`(event)

  Arguments: | event (`TouchEvent`) – None
  Return type: | OperatorEventStatus

### onTouchMove

`Operator.``onTouchMove`(event)

  Arguments: | event (`TouchEvent`) – None
  Return type: | OperatorEventStatus

### onTouchStart

`Operator.``onTouchStart`(event)

  Arguments: | event (`TouchEvent`) – None
  Return type: | OperatorEventStatus

### onWheel

`Operator.``onWheel`(event)

  Arguments: | event (`WheelEvent`) – None
  Return type: | OperatorEventStatus

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Web or choose a sample question below to start a conversation:

What is HOOPS Envision for Web?
What are the latest release notes for HOOPS Envision for Web?
How do I start evaluating HOOPS Envision for Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...