Class: TRaisedBorder

Declaration: Decoration.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TRecessedBorder

Inherited By:

TRaisedBackground

Purpose:

TRaisedBorder is simply an upside-down TRecessedBorder. It simply reverses the highlighting and shadowing drawn in the recessed border to give the border a raised appearance.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Derive from TRaisedBorder to add further to the border decoration.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TRaisedBorder::~TRaisedBorder

virtual ~ TRaisedBorder ()

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.

Member Function: TRaisedBorder::operator=

TRaisedBorder & operator =(const TRaisedBorder &)

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: TRaisedBorder::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: TRaisedBorder::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 TInvalidVersionError if the object has detected an unsupportable version during the stream-in process.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TRaisedBorder::CalculateInsets

virtual void CalculateInsets (GDegrees angle, TGRect & highlight, TGRect & groove) const >Interface Category: API.

Purpose:

Returns the reverse insets from TRecessedBorder, so that the TRecessedBorder draws the highlights and shadows the other way around. This reverses the illusion and makes the border look raised.

Calling Context:

Called directly by friend classes or classes deriving from TRaisedBorder.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function is protected and overrides TRecessedBorder's function of the same name.

Member Function: TRaisedBorder::CalculateClipPart

virtual EClipPart CalculateClipPart (GDegrees angle) const

Interface Category:

API.

Purpose:

Calculates how to clip the highlight during drawing, given the angle of rotation. Because CalculateInsets reverses the insets calculated by TRecessedBorder, the clip parts have to be reversed also.

Calling Context:

Called directly by friend classes or classes deriving from TRaisedBorder.

Parameters:

Return Value:

Returns an EClipPart value that indicates the part to clip out while drawing the highlight.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This function is protected and overrides TRecessedBorder's function of the same name.

Member Function: TRaisedBorder::TRaisedBorder

  1. TRaisedBorder ()
  2. TRaisedBorder (const TGRect & bounds, GCoordinate thickness =kDefaultThickness, bool interior =kDefaultInteriorState)
  3. TRaisedBorder (const TGRect & bounds, const TPaint & fill, GCoordinate thickness =kDefaultThickness, bool interior =kDefaultInteriorState)
  4. TRaisedBorder (const MGraphic & bounds, GCoordinate thickness =kDefaultThickness, bool interior =kDefaultInteriorState)
  5. TRaisedBorder (const MGraphic & bounds, const TPaint & fill, GCoordinate thickness =kDefaultThickness, bool interior =kDefaultInteriorState)
  6. TRaisedBorder (const TView & bounds, GCoordinate thickness =kDefaultThickness, bool interior =kDefaultInteriorState)
  7. TRaisedBorder (const TView & bounds, const TPaint & fill, GCoordinate thickness =kDefaultThickness, bool interior =kDefaultInteriorState)
  8. TRaisedBorder (const TRaisedBorder &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. 2-7. Creates a new border using the specified bounds, paint, and border thickness.
  3. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  2. 2-7. Call these functions directly.
  3. Called to copy 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.