Class: TFontScaleStyle

Declaration: FontStyles.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TFontStyle

Inherited By:

TFontPointSizeStyle TFontSlantAngleStyle TFontWeightStyle TFontWidthStyle

Purpose:

TFontScaleStyle derives from TFontStyle and is an abstract base class used to describe scaling attributes of a font. Possible derived classes include point size, weight, and width.

Instantiation:

Abstract base class; do not allocate.

Deriving Classes:

Derive a class from this class for any specialization. The value returned from GetCategory should be preserved and the pure virtual function GetName must be overridden to return an unique name. Provided classes include TFontPointSizeStyle, TFontWeightStyle, TFontWidthStyle, and TFontSlantAngleStyle.

Concurrency:

Multithread safe.

Resource Use:

No special requirements.

Member Function: TFontScaleStyle::operator==

virtual bool operator ==(const TStyle &) const

Interface Category:

API.

Purpose:

Tests whether two objects 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.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFontScaleStyle::operator>>=

virtual TStream & operator >>=(TStream & toWhere) 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:

Multithread safe.

Other Considerations:

None.

Member Function: TFontScaleStyle::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

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 no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFontScaleStyle::GetValue

virtual GCoordinate GetValue () const

Interface Category:

API.

Purpose:

Returns the current value of this TFontScaleStyle. The current value can represent point size or font weight for the different derived classes of TFontScaleStyle.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns a GCoordinate that is the current value of this object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

None.

Member Function: TFontScaleStyle::TFontScaleStyle

  1. TFontScaleStyle ()
  2. TFontScaleStyle (GCoordinate)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Creates a new TFontScaleStyle object and initializes the current value to the specified GCoordinate.

Calling Context:

  1. Called by the stream-in operators.
  2. Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Multithread safe.

Other Considerations:

TFontScaleStyle is an abstract base class--all the constructors are protected. Do not instantiate this class.

Member Function: TFontScaleStyle::~TFontScaleStyle

virtual ~ TFontScaleStyle ()

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:

None.

Member Function: TFontScaleStyle::Hash

virtual long Hash () const

Interface Category:

API.

Purpose:

Returns the hash value of this object.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The hash value of this object.

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.