## class XGOwner

> Declared in <XGView.h>

> In this modern architecture, a class can be owned by either an XGView or an XGWindow. This means that the parent object needs to be either. The only property the parent needs to have in common with both is the GrafPort/Window/HWND object that contains this view.

> This is the XGOwner object which provides that drawing context

Construction/Destruction

> XGOwner::GetRootWindow
> XGOwner::SetRootWindow
> XGOwner::XGOwner
> XGOwner::XGOwner
> XGOwner::XGOwner

Construction/Destruction

XGOwner::GetRootWindow

> Usage: window_thing XGOwner::GetRootWindow(void)

> This returns a pointer to the root window that contains this object. The 'window_thing" type is OS dependant; on the Maintosh this is a WindowPtr. On Windows, this is an HWND. And on X, this is a Window.

XGOwner::SetRootWindow

> Usage: void XGOwner::SetRootWindow(window_thing)

> This sets the root window pointer to the window specified. The 'window_thing" type is OS dependant; on the Maintosh this is a WindowPtr. On Windows, this is an HWND. And on X, this is a Window.

XGOwner::XGOwner

> Usage: virtual~XGOwner()

> Destructs this owner object.

XGOwner::XGOwner

> Usage: XGOwner()

> Construct this owner object with a NULL root window.

XGOwner::XGOwner

> Usage: XGOwner(XGOwner*o)

> Construct this owner object using the root window of the XGOwner object provided.