Class: TBackgroundView

Declaration: LayoutViews.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TLayoutView

Inherited By:

None.

Purpose:

TBackgroundView derives from TLayoutView and provides a background (border) for a single child view.

Instantiation:

Always allocate on the heap.

Deriving Classes:

None.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TBackgroundView::TBackgroundView

  1. TBackgroundView (const TGPoint & p, const TColor & c, TView * vievToAdopt =NIL)
  2. TBackgroundView (const TGPoint & p, TGrafBundle * bundleToAdopt, TView * vievToAdopt =NIL)
  3. TBackgroundView (const TGPoint & p, TView * vievToAdopt)
  4. TBackgroundView();
  5. TBackgroundView(const TBackgroundView &other);

Interface Category:

API.

Purpose:

  1. Creates a background view for the specified subview with the specified background color.
  2. Creates a background view for the specified subview with the specified graphics bundle.
  3. Creates a background view for the specified subview.
  4. Default constructor.
  5. Copy constructor.

Calling Context:

  1. Called to create a background for a specific view.
  2. Called to create a background for a specific view.
  3. Called to create a background for a specific view.
  4. Called by the stream-in operators.
  5. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBackgroundView::PlaceAndSizeChildren

virtual void PlaceAndSizeChildren (const TGRect & area)

Interface Category:

API.

Purpose:

Positions and resizes children based on new allocated area.

Calling Context:

Called whenever the size of the view changes.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function is protected.

Member Function: TBackgroundView::DrawContents

virtual void DrawContents (TGrafPort & port) const

Interface Category:

API.

Purpose:

Draws the contents of this view to the specified port. This function draws the background.

Calling Context:

Called when the layout view needs to redraw itself.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function is protected.

Member Function: TBackgroundView::GetBounds

virtual void GetBounds (TGArea & area) const

Interface Category:

API.

Purpose:

Returns the bounds of this view through the parameter. The bounds for TBackgroundView is size of its child view plus the size of the borders.

Calling Context:

Call from the same thread as the view. The area parameter should be created, but its value will be ignored, and the returned area will be returned through the parameter.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function is protected.

Member Function: TBackgroundView::operator<<=

virtual TStream & operator <<= (TStream &)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws a TInvalidVersionError if the version of the object on the stream is unknown to the version of the shared library installed.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBackgroundView::operator>>=

virtual TStream & operator >>=(TStream &) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBackgroundView::operator=

TBackgroundView & operator =(const TBackgroundView & other)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Call this function by using the operator in an assignment statement.

Parameters:

Return Value:

Returns a const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBackgroundView::~TBackgroundView

virtual ~ TBackgroundView ()

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:

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