Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TColorStyle
Inherited By:
None.
Purpose:
TTextColorStyle, derived from TColorStyle, describes a color. Its main use is for styling text and paragraphs.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
This class should not be derived except by clients implementing their own version of Line Layout.
Concurrency:
Multithread safe.
Resource Use:
No special requirements.
virtual const TStyleName & GetName () const
Interface Category:
API.
Purpose:
Returns the style's internal name. This is not necessarily the class name. For example, there are related underlining styles that are each separate derived classes. However, because they are mutually exclusive, they share the same internal name.
Calling Context:
Called when the name associated with an object is needed; for example, when comparing objects.
Parameters:
Return Value:
The TToken for the associated name.
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 the object streams itself in from.
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 TStream & operator >>=(TStream & toWhere) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Called to stream out data.
Parameters:
- TStream & toWhere -The stream the object streams itself out to.
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.
static const TTextColorStyle & GetYellow ()
Interface Category:
API.
Purpose:
Returns a const color style object with the default yellow value.
Calling Context:
Call to get a yellow style object.
Parameters:
Return Value:
A yellow style object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
static const TTextColorStyle & GetMagenta ()
Interface Category:
API.
Purpose:
Returns a const color style object with the default magenta value.
Calling Context:
Call to get a magenta style object.
Parameters:
Return Value:
A magenta style object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
static const TTextColorStyle & GetCyan ()
Interface Category:
API.
Purpose:
Returns a const color style object with the default cyan value.
Calling Context:
Call to get a cyan style object.
Parameters:
Return Value:
A cyan style object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
static const TTextColorStyle & GetGreen ()
Interface Category:
API.
Purpose:
Returns a const color style object with the default green value.
Calling Context:
Call to get a green style object.
Parameters:
Return Value:
A green style object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
static const TTextColorStyle & GetBlue ()
Interface Category:
API.
Purpose:
Returns a const color style object with the default blue value.
Calling Context:
Call to get a blue style object.
Parameters:
Return Value:
A blue style object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
static const TTextColorStyle & GetRed ()
Interface Category:
API.
Purpose:
Returns a const color style object with the default red value.
Calling Context:
Call to get a red style object.
Parameters:
Return Value:
A red style object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
static const TTextColorStyle & GetWhite ()
Interface Category:
API.
Purpose:
Returns a const color style object with the default white value.
Calling Context:
Call to get a white style object.
Parameters:
Return Value:
A white style object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
static const TTextColorStyle & GetBlack ()
Interface Category:
API.
Purpose:
Returns a const color style object with the default black value.
Calling Context:
Call to get a black style object.
Parameters:
Return Value:
A black style object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
virtual ~ TTextColorStyle ()
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.
- TTextColorStyle ()
- TTextColorStyle (const TAttributeState & paint)
- TTextColorStyle (const TTextColorStyle & style)
- TTextColorStyle (const TColor & color)
Interface Category:
API.
Purpose:
- Default constructor.
- Constructs a color style with a specified value.
- Copy constructor.
- Constructs a color style with a specified value.
Calling Context:
- Called by the stream-in operators.
- Called to construct a color style with a particular value.
- Called to copy an object.
- Called to construct a color style with a particular value. This constructor needs to create some derived class of TAttributeState to use to hold the color passed in as an argument and does so by creating a TGrafBundle. This is very inefficient in memory use, because a TGrafBundle is large and because the storage for the color is fully owned by this object.
Parameters:
- Takes no parameters.
- const TAttributeState & paint -The value for this style object.
- const TTextColorStyle & style -The object to copy.
- const TColor & color -The color for this style object.
Return Value:
None.
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.