Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
MCollectible, MRemoteCaller
Inherited By:
TVideoDeviceHandle
Purpose:
TDisplayDeviceHandle is an abstract base class that defines the behavior of video device derived classes. Instantiations of TDisplayDeviceHandle derived classes are meant to act as implicit surrogates of the TDisplayDeviceDrivers that act directly on the hardware.
Derived classes must override all of the member functions declared in this base class!
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Derive a class from TDisplayDeviceHandle to add more specific functionality needed by a different display device. For example, TVideoDeviceHandle is a derived class that inherits all of the TDisplayDeviceHandle member function calls. In addition, it adds functionality for video-specific devices. In this example, the derived class overrides the CreateScreen function in order to create a special video screen for the device.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
virtual MScreen * CreateScreen ()
Interface Category:
API.
Purpose:
Returns a pointer to the appropriate screen device. The Window server or Video Device server calls this to get the screen device that has the characteristics of the DisplayDeviceHandle type.The screen device is created using the configuration of the DisplayDeviceHandle as well as the current world bounds setting for the screen device layout.
Calling Context:
Called by the Window server or Video Device server to start the Graphics system.
Parameters:
Return Value:
Returns the appropriate MScreen subtype.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual GCoordinate GetScreenHeight () const
Interface Category:
API.
Purpose:
Returns the height of the screen polymorphically.
Calling Context:
Called internally to obtain information used to create the screen device.
Parameters:
Return Value:
Returns the GCoordinate value for the height of the screen in pixels.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual GCoordinate GetScreenWidth () const
Interface Category:
API.
Purpose:
Returns the width of the screen polymorphically.
Calling Context:
Called internally to obtain information used to create the screen device.
Parameters:
Return Value:
Returns the GCoordinate value for the width of the screen in pixels.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
- TDisplayDeviceHandle ()
- TDisplayDeviceHandle (const TDisplayDeviceHandle &)
Interface Category:
API.
Purpose:
- Default constructor.
- Copy constructor.
Calling Context:
- Called by the stream-in operators
- Called to copy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
TDisplayDeviceHandle & operator =(const TDisplayDeviceHandle &)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Called when an object is assigned to another compatible object.
Parameters:
Return Value:
A non-const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not 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 TStream object to which this object streams itself.
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.
virtual TStream & operator <<= (TStream & towhere)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Called to stream in data.
Parameters:
- TStream & fromwhere -The TStream object from which this object is streamed.
Return Value:
Returns a reference to the stream the object streams itself in to.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TGPoint GetWorldBoundsOffset () const
Interface Category:
API.
Purpose:
Gets the position in world coordinates.
Calling Context:
Called during system configuration.
Parameters:
Return Value:
Returns a TGPoint with an x and y offset position.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual ~ TDisplayDeviceHandle ()
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.