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.
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.
virtual TStream & operator >>=(TStream & toWhere) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Called to stream out data.
Parameters:
- TStream & toWhere -The stream to which the object streams itself out.
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.
virtual TStream & operator <<= (TStream & fromWhere)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Called to stream in data.
Parameters:
- TStream & fromWhere -The stream from which the object streams itself in.
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.
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.
- TFontScaleStyle ()
- TFontScaleStyle (GCoordinate)
Interface Category:
API.
Purpose:
- Default constructor.
- Creates a new TFontScaleStyle object and initializes the current value to the specified GCoordinate.
Calling Context:
- Called by the stream-in operators.
- Call this function directly.
Parameters:
- Takes no parameters.
- GCoordinate -The initial value for this object.
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.
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.
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.