Class: TSystemLayer

Declaration: SystemWindow.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TSystemLayerable

Inherited By:

None.

Purpose:

TSystemLayer, which derives from TSystemLayerable, provides the protocol for a real layer. Creating a TSystemLayer object creates a new layer. Likewise, deleting the TSystemLayer object deletes the layer. Keep in mind that TSystemLayer cannot be copied or streamed.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

You do not normally derive from this class. Instead derive from TSystemLayerable.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Member Function: TSystemLayer::TSystemLayer

  1. TSystemLayer (const TAbstractLayerableReference & relativeToWindow, bool isVisible =true, const TText & layerName =TStandardText ( kDefaultLayerNameLength ), EWindowPosition itsPosition =kBehind)
  2. TSystemLayer (const TSystemLayerable & relativeToWindow, bool isVisible =true, const TText & layerName =TStandardText ( kDefaultLayerNameLength ), EWindowPosition itsPosition =kBehind)
  3. TSystemLayer (EWindowPosition itsPosition, bool isVisible =true, const TText & layerName =TStandardText ( kDefaultLayerNameLength ))
  4. TSystemLayer (const TSystemLayerSurrogate & inLayer, EWindowPosition itsPosition, bool isVisible =true, const TText & layerName =TStandardText ( kDefaultLayerNameLength ))

Interface Category:

API.

Purpose:

  1. Creates a layer behind a window or layer.
  2. Creates a layer behind a window or layer.
  3. Creates a layer in the root layer.
  4. Creates a layer in another layer.

Calling Context:

  1. Called to create a layer behind a layerable in its layer.
  2. Called to create a layer behind a layerable in its layer.
  3. Called to create a layer in the root layer.
  4. Called to create a layer in another layer.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TSystemLayer::~TSystemLayer

~ TSystemLayer ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

Any child layers/windows will be reparented to the parent layer for this layer and a notification will be sent.

Member Function: TSystemLayer::SetName

void SetName (const TText & layerName)

Interface Category:

API.

Purpose:

Sets the name of the layer.

Calling Context:

Called to change the name of the layer.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TSystemLayer::GetName

void GetName (TStandardText & layerName) const

Interface Category:

API.

Purpose:

Gets the layer's name.

Calling Context:

Called to get the name of the layer.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TSystemLayer::SetClipArea

void SetClipArea (const TGArea & clipTo)

Interface Category:

API.

Purpose:

Sets the clip area of the layer.

Calling Context:

Called to cause the layer to clip contained windows to an area.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TSystemLayer::RemoveClipArea

void RemoveClipArea ()

Interface Category:

API.

Purpose:

Stops clipping.

Calling Context:

Called to stop the layer from clipping contained windows.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TSystemLayer::GetChildLayerFromName

bool GetChildLayerFromName (const TText & theName, TLayerableReference & theLayer)

Interface Category:

API.

Purpose:

Gets a child layer by name.

Calling Context:

Called when the client needs a named layer that is descended from this one.

Parameters:

Return Value:

Returns true if a layer with theName is found.

Exceptions:

Throws a TSystemWindowException(kOtherLayerableNonexistant) exception if the named layer does not exist.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TSystemLayer::GetLayerFromName

static bool GetLayerFromName (const TText & theName, TLayerableReference & theLayer)

Interface Category:

API.

Purpose:

Gets a layer by name.

Calling Context:

Called when the client needs the first like-named layer.

Parameters:

Return Value:

Returns true if a layer with theName is found.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TSystemLayer::GetSurrogate

  1. virtual const TLayerableSurrogate & GetSurrogate () const
  2. virtual TLayerableSurrogate & GetSurrogate ()

Interface Category:

API.

Purpose:

  1. Gets a const TLayerableSurrogate.
  2. Gets a reference to TLayerableSurrogate.

Calling Context:

  1. Called to return the const object.
  2. Called to return a reference to the object.

Parameters:

Return Value:

Returns either the left-side const TLayerableSurrogate or a reference to TLayerableSurrogate.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TSystemLayer::GetContainedLayerables

void GetContainedLayerables (TDequeOf < TLayerableReference > & dequeToFill) const

Interface Category:

API.

Purpose:

Gets the list of windows and/or layers contained by this window or layer.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws a TSystemWindowException(kOtherLayerableNonexistant) exception if no other layers exist.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TSystemLayer::GetClipArea

void GetClipArea (TGArea & clipTo) const

Interface Category:

API.

Purpose:

Gets the clip area for the layer.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.