Class: TStandardScrollCoordinator

Declaration: ScrollCoordinator.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TScrollCoordinator

Inherited By:

None.

Purpose:

TStandardScrollCoordinator provides standard scrolling behavior for common scrolling operations.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

You can derive classes from TStandardScrollCoordinator to provide client-specified scrolling behavior.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::TStandardScrollCoordinator

  1. TStandardScrollCoordinator ()
  2. TStandardScrollCoordinator (const TStandardScrollCoordinator &)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.

Calling Context:

  1. Called to create a TStandardScrollCoordinator suitable for streaming into.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::~TStandardScrollCoordinator

virtual ~ TStandardScrollCoordinator ()

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: TStandardScrollCoordinator::operator=

TStandardScrollCoordinator & operator =(const TStandardScrollCoordinator &)

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.

Member Function: TStandardScrollCoordinator::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 to which the object streams itself.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::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 from which the object streams itself.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::GetVerticalUnitScrollEffect

virtual TGPoint GetVerticalUnitScrollEffect (signed long lines, const TView & scrolledView, const TGRect & clippedRect)

Interface Category:

API.

Purpose:

Returns the size currently used as the vertical scroll unit.

Calling Context:

Call this function directly to obtain the size of the vertical scroll unit.

Parameters:

Return Value:

Returns the size currently used as the vertical scroll unit.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::GetHorizontalUnitScrollEffect

virtual TGPoint GetHorizontalUnitScrollEffect (signed long lines, const TView & scrolledView, const TGRect & clippedRect)

Interface Category:

API.

Purpose:

Returns the size currently used as the horizontal scroll unit.

Calling Context:

Call this function directly to obtain the size of the horizontal scroll unit.

Parameters:

Return Value:

Returns the size currently used as the horizontal scroll unit.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::GetVerticalPagingScrollEffect

virtual TGPoint GetVerticalPagingScrollEffect (signed long pages, const TView & scrolledView, const TGRect & clippedRect)

Interface Category:

API.

Purpose:

Returns the size of the vertical page scroll. Vertical page scrolls are caused by a click in a scroll bar's trough.

Calling Context:

Call this function directly to obtain the size of the vertical page scroll.

Parameters:

Return Value:

Returns the size of the vertical page scroll.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::GetHorizontalPagingScrollEffect

virtual TGPoint GetHorizontalPagingScrollEffect (signed long pages, const TView & scrolledView, const TGRect & clippedRect)

Interface Category:

API.

Purpose:

Returns the size of the horizontal page scroll. Horizontal page scrolls are caused by a click in a scroll bar's trough.

Calling Context:

Call this function directly to obtain the size of the horizontal page scroll.

Parameters:

Return Value:

Returns the size of the horizontal page scroll.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::GetHomeScrollEffect

virtual TGPoint GetHomeScrollEffect (const TView & viewToScroll, const TGRect & clippedRect)

Interface Category:

API.

Purpose:

Returns the the effect necessary to return the view to the home position. The upper-left corner of the scrolled view matches the upper-left corner of the clippedRect.

Calling Context:

Call this function directly to obtain the effect necessary to scroll the view to the home position.

Parameters:

Return Value:

Returns the the effect necessary to return the view to the home position.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::GetEndScrollEffect

virtual TGPoint GetEndScrollEffect (const TView & viewToScroll, const TGRect & clippedRect)

Interface Category:

API.

Purpose:

Returns the the effect necessary to return the view to the end position. The bottom-left corner of the scrolled view matches the bottom-left corner of the clippedRect.

Calling Context:

Call this function directly to obtain the effect necessary to scroll the view to the end position.

Parameters:

Return Value:

Returns the the effect necessary to return the view to the end position.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::GetVerticalUnitScrollIncrement

virtual GCoordinate GetVerticalUnitScrollIncrement ()

Interface Category:

API.

Purpose:

Returns the GCoordinate change caused by a vertical scroll.

Calling Context:

Call this function directly to obtain the GCoordinate change caused by a vertical scroll.

Parameters:

Return Value:

Returns the GCoordinate change caused by a vertical scroll.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::SetVerticalUnitScrollIncrement

virtual void SetVerticalUnitScrollIncrement (GCoordinate amount)

Interface Category:

API.

Purpose:

Sets the GCoordinate change caused by a vertical scroll.

Calling Context:

Call this function directly to set the GCoordinate change caused by a vertical scroll.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::GetHorizontalUnitScrollIncrement

virtual GCoordinate GetHorizontalUnitScrollIncrement ()

Interface Category:

API.

Purpose:

Returns the GCoordinate change caused by a horizontal scroll.

Calling Context:

Call this function directly to obtain the GCoordinate change caused by a horizontal scroll.

Parameters:

Return Value:

Returns the GCoordinate change caused by a horizontal scroll.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TStandardScrollCoordinator::SetHorizontalUnitScrollIncrement

virtual void SetHorizontalUnitScrollIncrement (GCoordinate amount)

Interface Category:

API.

Purpose:

Sets the GCoordinate change caused by a horizontal scroll.

Calling Context:

Call this function directly to set the GCoordinate change caused by a horizontal scroll.

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.