Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TRectControlState
Inherited By:
None.
Purpose:
TComponentAreaRectControlState is a rect control state that uses commands to act on MEmbeddedComponentAccessor to modify the the component's area in the model based on changes to the control's rect. The state is usually used with a TFrameView.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
No special requirements.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
Other Considerations:
None.
- TComponentAreaRectControlState ()
- TComponentAreaRectControlState (const TDocumentComponentReference &, TGUIBundle * theBundleToAlias)
- TComponentAreaRectControlState (const TComponentAreaRectControlState &)
Interface Category:
API.
Purpose:
- Default constructor.
- Creates a control state for a specific component and presenter.
- Copy constructor.
Calling Context:
- Called by the stream-in operators.
- Called by any client object.
- Called to copy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
~ TComponentAreaRectControlState ()
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.
TGUIBundle * GetGUIBundle () const
Interface Category:
API.
Purpose:
Returns the GUIBundle of the presenter that owns this state's control.
Calling Context:
Called by any client object.
Parameters:
Return Value:
Returns the bundle.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
void SetGUIBundle (TGUIBundle * theBundleToAlias)
Interface Category:
API.
Purpose:
Sets the GUIBundle of the presenter that owns this state's control
Calling Context:
Called by any client object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
TDocumentComponentReference GetDocumentComponentReference () const
Interface Category:
API.
Purpose:
Returns a reference to the component this state controls.
Calling Context:
Called by any client object.
Parameters:
Return Value:
Returns the component reference.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
void SetDocumentComponentReference (const TDocumentComponentReference &)
Interface Category:
API.
Purpose:
Sets the reference to the component that this control state controls. This must be the same component the this state's control (frame view) presents.
Calling Context:
Called by any client object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual bool IsSelected () const
Interface Category:
API.
Purpose:
Determines if the embedded component control by this state is selected.
Calling Context:
Called by Controls Framework.
Parameters:
Return Value:
Returns true if the component is selected.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual TGRect GetRect () const
Interface Category:
API.
Purpose:
Returns the rectangle from the component this state controls. The rectangle is the bounding rectangle of the component's area.
Calling Context:
Called by control.
Parameters:
Return Value:
Returns the components bounding rectangle.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void IntermediateSetRect (const TGRect &)
Interface Category:
API.
Purpose:
Sets the area of the component this state controls to an intermediate rectangular value.
Calling Context:
Called by the control.
Parameters:
- const TGRect & -The rect to set as the area of the component.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void FinalSetRect (const TGRect &)
Interface Category:
API.
Purpose:
Sets the area of the component this state controls to the final rectangular value.
Calling Context:
Called by the control.
Parameters:
- const TGRect & -The rect to set as the area of the component.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void Update (const TInterest &)
Interface Category:
API.
Purpose:
Updates the state based on a notification from the model containing the component this state controls. Does nothing.
Calling Context:
Called by the control.
Parameters:
- const TInterest & -The interest from the notification.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual void AddInterests (TSetOf < TInterest > & set)
Interface Category:
API.
Purpose:
Adds to the control's interest list any interests this state needs to remain in sync with the component area. Adds TGUIEmbedderModel::GetComponentAreaChangeInterest().
Calling Context:
Called by the control.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
TComponentAreaRectControlState & operator =(const TComponentAreaRectControlState &)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Called when an object is assigned to another compatible object.
Parameters:
Return Value:
Returns a 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 &) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Called to stream out data.
Parameters:
- TStream & -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:
Not multithread safe.
Other Considerations:
None.
virtual TStream & operator <<= (TStream &)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Called to stream in data.
Parameters:
- TStream & -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 a TInvalidVersionError if the version of the object on the stream is unknown to the version of the shared library installed.
Concurrency:
Not multithread safe.
Other Considerations:
None.
virtual long Hash () const
Interface Category:
API.
Purpose:
Returns the hash value for this object. The hash value is used to speed comparisons.
Calling Context:
Called by collection classes.
Parameters:
Return Value:
Returns the hash value.
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.