CPluginView Class Reference

## CPluginView

- PluginView.h
- PluginView.cpp

### Purpose

The CPluginView class provides a platform-independent base class for plug-in views.

### Dependencies

- NetscapeMemObject.h
- NetscapePlugin.h

### Methods

- CPluginView
- ~CPluginView
- SetWindow
- Update
- GetController

### Members

CNetscapePlugin* | mController | The plug-in object that controls this view.

### CPluginView::CPluginView()

#### Syntax

    CPluginView::CPluginView( CNetscapePlugin* controller )

#### Purpose

Constructor.

#### Parameters

controller | The plug-in object that controls this view.

#### Return Value

None.

### CPluginView::~CPluginView

#### Syntax

    CPluginView::~CPluginView()

#### Purpose

Destructor.

#### Parameters

None.

#### Return Value

None.

### CPluginView::SetWindow()

#### Syntax

    NPError
    CPluginView::SetWindow( NPWindow* window )

#### Purpose

Notifies the view either that there is a new plug-in window or that the existing plug-in window has changed. Derived classes must override this method if they intend to do any drawing.

#### Parameters

window | The NPWindow struct passed through from the call to NPP_SetWindow.

#### Return Value

An NPError error code.

### CPluginView::Update()

#### Syntax

    void
    CPluginView::Update()

#### Purpose

#### Parameters

None.

#### Return Value

None.

### CPluginView::GetController()

#### Syntax

    CNetscapePlugin*
    CPluginView::GetController()

#### Purpose

Accessor to the plug-in object that controls this view.

#### Parameters

None.

#### Return Value

The CNetscapePlugin* object that controls this view.