Class: TLayerableReference

Declaration: SystemWindow.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TAbstractLayerableReference

Inherited By:

None.

Purpose:

Acts as a simple, copyable, lightweight reference to a window. TLayerableReference is derived from TAbstractLayerableReference. TLayerableReference provides a reference to windows and/or layers. It also lets you get the creating thread for a window. To do anything else to a window or layer, you need to create a TLayerableSurrogate derived class or TSystemLayerSurrogate. Keep in mind that a TSystemLayerSurrogate object has more run-time overhead than a TLayerableSurrogate object. TLayerableReference is not intended to be used polymorphically. As it is not multithread safe, you should create copies of it as needed.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TLayerableReference::TLayerableReference

  1. TLayerableReference (const TAbstractLayerableReference &)
  2. TLayerableReference (const TSystemLayerable &)
  3. TLayerableReference ()

Interface Category:

API.

Purpose:

  1. Creates from another reference or a LayerableSurrogate.
  2. Creates from a SystemWindow or SystemLayer.
  3. Default constructor.

Calling Context:

  1. Called to copy a LayerableReference or LayerableSurrogate.
  2. Called to get a LayerableReference to a real Layerable.
  3. Called by the stream-in operators.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLayerableReference::~TLayerableReference

virtual ~ TLayerableReference ()

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:

Not multithread safe.

Other Considerations:

Has no effect on window or layer.

Member Function: TLayerableReference::operator=

  1. TLayerableReference & operator =(const TAbstractLayerableReference &)
  2. TLayerableReference & operator =(const TSystemLayerable &)

Interface Category:

API.

Purpose:

  1. Copy from another reference.
  2. Copy from a real Layerable.

Calling Context:

  1. Called to copy from another reference.
  2. Called to copy from real layerable.

Parameters:

Return Value:

Left side reference to this.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLayerableReference::GetOwningThread

virtual void GetOwningThread (TThreadHandle & theThread) const

Interface Category:

API.

Purpose:

Gets the thread that created the window.

Calling Context:

Called when a client needs the thread that created the window and to whom the window belongs. Generally, this is called by the WindowServer.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TLayerableReference::operator==

bool operator ==(const TLayerableReference &) const

Interface Category:

API.

Purpose:

Determines whether this TLayerableReference window object is equal to the other specified TLayerableReference window object. Windows are equal if and only if their identifiers are equal.

Calling Context:

Call this function by using the operator in an expression.

Parameters:

Return Value:

Returns true if the two objects are equal; otherwise, returns false.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not 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.