[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

 

LView



Overview:

LView is a PowerPlant class that is the basis for the visual hierarchy. An LView object is a pane that can contain other panes.

Methods :

The methods in this class are:

 

LView()  
~LView()  
Activate()  
AdaptToNewSurroundings()  
AdaptToSuperFrameSize()  
AddSubPane()  
AdjustCursor()  
AutoScrollImage()  
CalcPortOrigin()  
CalcRevealedRect()  
Click()  
CountPanels()  
Deactivate()  
DeleteAllSubPanes()  
Disable()  
DontRefresh()  
Draw()  
Enable()  
EstablishPort()  
ExpandSubPane()  
FindConstPaneByID()  
FindDeepSubPaneContaining()  
FindPaneByID()  
FindShallowSubPaneContaining()  
FinishCreate()  
FocusDraw()  
FocusDraw()  
FocusExposed()  
GetDescriptorForPaneID()  
GetImageLocation()  
GetDescriptorForPaneID()  
GetImageLocation()  
GetImageSize()  
GetInFocusView()  
GetLocalUpdateRgn()  
GetPortOrigin()  
GetRevealedRect()  
GetScrollPosition()  
GetScrollUnit()  
GetSubPanes()  
GetValueForPaneID()  
Hide()  
ImagePointIsInFrame()  
ImageRectIntersectsFrame()  
ImageToLocalPoint()  
InitView()  
LocalToImagePoint()  
LocalToPortPoint()  
MoveBy()  
OrientAllSubPanes()  
OrientSubPane()  
OutOfFocus()  
PortToLocalPoint()  
PrintPanel()  
ReconcileFrameAndImage()  
Refresh()  
RemoveSubPane()  
ResizeFrameBy()  
ResizeImageBy()  
ResizeImageTo()  
RestorePlace()  
SavePlace()  
ScrollBits()  
ScrollImageBy()  
ScrollImageTo()  
ScrollPinnedImageBy()  
ScrollToPanel()  
SetDescriptorForPaneID()  
SetReconcileOverhang()  
SetScrollUnit()  
SetValueForPaneID()  
Show()  
SubImageChanged()  
SuperActivate()  
SuperDeactivate()  
SuperDisable()  
SuperEnable()  
SuperHide()  
SuperPrintPanel()  
SuperShow()  

Data Members:

The data members in this class are:

 

sInFocusView  
mImageSize  
mImageLocation  
mScrollUnit  
mPortOrigin  
mSubPanes  
mRevealedRect  
mUpdateRgnH  
mReconcileOverhang  
 

Operation:

LView objects contain the panes that you draw. In other words, LView is a container object, with the panes being the contents. Objects that derive from LView are usually places where you draw things.

To learn more about views, refer to The PowerPlant Book.

Source files:

(Pane Classes)

LView.h

LView.cp

Ancestors:

LAttachable

LPane

LView()

Purpose:

The constructors create objects from the passed-in parameters.

Access:

Public

Prototype:

LView();

LView( const LView &inOriginal );

LView( const SPaneInfo &inPaneInfo,
const SViewInfo &inViewInfo );

LView( LStream *inStream );
Parameters:

The parameters for the constructors are:

 

const LView&  
inOriginal  
The LView object to copy.  
const SPaneInfo&  
inPaneInfo  
The reference to the Superpane.  
const SViewInfo&  
inViewInfo  
The reference to the Superview.  
LStream*  
inStream  
The stream to construct with.  

~LView()

Purpose:

The destructor destroys the object.

Access:

Virtual, Public

Prototype:

virtual ~LView();

Activate()

Purpose:

Activate a View. This is an override of Activate() in LPane.

AdaptToNewSurroundings()

Purpose:

Adjust view when its SuperView changes identity or size. This is an override of AdaptToNewSurroundings() in LPane.

AdaptToSuperFrameSize()

Purpose:

Adjust state of View when size of SuperView's Frame changes by the specified amounts. This is an override of AdaptToSuperFrameSize() in LPane.

AddSubPane()

Purpose:

You should not normally call this function. Call LPane::PutInside() to associate a Pane with a SuperView.

Access:

Virtual, Public

Prototype:

virtual void AddSubPane( LPane *inSub );
Parameters:

The parameter for this method is:

 

LPane*  
inSub  
The pointer to the sub pane to add.  

Return:

None

AdjustCursor()

Purpose:

Wrapper function for setting the cursor shape. View needs to determine which subpane, if any, should set the cursor shape. This is an override of AdjustCursor() in LPane.

AutoScrollImage()

Purpose:

Scroll the image if the specified point is outside the View's Frame.

Call this function while tracking the mouse to scroll a View in the direction of the mouse location.

Access:

Virtual, Public

Prototype:

virtual Boolean AutoScrollImage( Point inLocalPt 
);
Parameters:

The parameter for this method is:

 

Point  
inLocalPt  
The pointer to the sub pane to add.  

Return:

Returns true if the View actually scrolled, else false.

CalcPortOrigin()

Purpose:

Calculate the coordinate origin for the Port needed to set up the local coordinates of a View.

Access:

Virtual, Public

Prototype:

virtual void CalcPortOrigin();
Parameters:

None

Return:

None

Remarks:

The Port origin must be in 16-bit space. In fact, the limitation is more restrictive because the entire Port must be in 16-bit space. The origin is the top left corner. To make sure that the bottom right corner is in 16-bit space, we force the origin to be less than 2^14 (16,384), which allows Port dimensions of a maximum of 16,384 pixels. At 72 dpi, this is about 227 inches or 19 feet (much more screen or printer area than you can get with current technology).

This means that Local and Image coordinates will be the same when the Image size is less than 16,384 pixels. For Images greater than this, you can't use absolute coordinates for drawing. You need to offset the coordinates using ImageToLocalPoint() and LocalToImagePoint().

The true coordinates offset is the distance between the top left corners of the Image and the Port. If this offset is greater than 2^14, we use an effective offset that is the true offset modulo 2^14:

effective_offset = true_offset modulo 2^14

Using this effective offset maintains the bit-wise alignment of the Port with respect to base-2 byte boundaries. This is important for drawing Toolbox Patterns and PixPats, as well as for CopyBits() calls.

CalcRevealedRect()

Purpose:

Calculate the portion of the Frame which is revealed through the frames of all SuperViews. mRevealedRect is in Port coordinates.

Access:

Public

Prototype:

void CalcRevealedRect();
Parameters:

None

Return:

None

Click()

Purpose:

Handle a click inside a View. This is an override of Click() in LPane.

CountPanels()

Purpose:

Return the number of horizontal and vertical Panels. A Panel is a "frameful" of a View's Image. This is an override of CountPanels() in LPane.

Deactivate()

Purpose:

Deactivate a View. This is an override of Deactivate() in LPane.

DeleteAllSubPanes()

Purpose:

Deletes all subpanes of a View.

Access:

Public

Prototype:

void DeleteAllSubPanes();
Parameters:

None

Return:

None

Disable()

Purpose:

Disable a View. This is an override of Disable() in LPane.

DontRefresh()

Purpose:

Validate the area occupied by a View. This removes the View area from the update region so that the View won't be redrawn during the next Update event.

This is an override of DontRefresh() in LPane.

Draw()

Purpose:

Draw a View and all its subpanes. This is an override of Draw() in LPane.

Enable()

Purpose:

Enable a View. This is an override of Enable() in LPane.

EstablishPort()

Purpose:

Set the GrafPort for a View.

Access:

Virtual, Public

Prototype:

virtual Boolean EstablishPort();
Parameters:

None

Return:

Return true if the port was set successfully, else false.

ExpandSubPane()

Purpose:

Adjust the size and location of a SubPane to fit within the interior of a View in the horizontal and/or vertical directions.

Access:

Virtual, Public

Prototype:

virtual void ExpandSubPane( LPane *inSub,
Boolean inExpandHoriz,
Boolean inExpandVert);
Parameters:

The parameters for this method are:

 

LPane*  
inSub  
The pointer to the sub pane to add.  
Boolean  
inExpandHoriz  
Tell whether to expand horizontally.  
Boolean  
inExpandVert  
Tell whether to expand vertically.  

Return:

None

FindConstPaneByID()

Purpose:

Find the Pane of a View which has the specified ID. This is an override of FindConstPaneByID() in LPane.

FindDeepSubPaneContaining()

Purpose:

Return the most deeply nested visible SubPane which contains the specified point, which is in Port coordinates. This is an override of FindDeepSubPaneContaining() in LPane.

FindPaneByID()

Purpose:

Find the Pane of a View which has the specified ID. This is an override of FindPaneByID() in LPane.

FindShallowSubPaneContaining()

Purpose:

Return the immediate visible SubPane which contains the specified point, which is in Port coordinates. This is an override of FindShallowSubPaneContaining() in LPane.

FindSubPaneHitBy()

Purpose:

Find the SubPane of this View that is hit by the specified point. This is an override of FindSubPaneHitBy() in LPane.

FinishCreate()

Purpose:

Wrapper function for FinishCreateSelf. This is an override of FinishCreate() in LPane.

You will rarely want to override this function.

FocusDraw()

Purpose:

Prepare for drawing in the View by setting the Port and clipping area. This is an override of FocusDraw() in LPane.

FocusExposed()

Purpose:

Prepare for drawing in the View by setting the Port and clipping area. This is an override of FocusExposed() in LPane.

GetDescriptorForPaneID()

Purpose:

Get the Descriptor of the Pane of a View which has the specified ID. The Pane may be the View itself, or a subpane of the View.

Access:

Virtual, Public

Prototype:

virtual StringPtr GetDescriptorForPaneID(
PaneIDT inPaneID,
Str255 outDescriptor) const;
Parameters:

The parameters for this method are:

 

PaneIDT  
inPaneID  
The resource ID for the pane.  
Str255  
outDescriptor  
The string that we want, the descriptor.  

Return:

Returns a pointer that is the same as outDescriptor.

GetImageLocation()

Purpose:

Determine the location of the image within a View.

Access:

Public

Prototype:

void GetImageLocation(SPoint32 &outLocation) 
const;
Parameters:

The parameter for this method is:

 

SPoint32&  
outLocation  
The location of the image within the view.  

Return:

None

GetImageSize()

Purpose:

Pass back the dimensions of a View's image.

Access:

Virtual, Public

Prototype:

virtual void GetImageSize(
SDimension32 &outSize) const;
Parameters:

The parameter for this method is:

 

SDimension32&  
outSize  
The dimensions of the image within the view.  

Return:

None

GetInFocusView()

Purpose:

Retrieve a pointer to the view that has the focus. This is an accessor method for the sInFocusView data member.

Access:

Static, Public

Prototype:

static LView* GetInFocusView();
Parameters:

None

Return:

The pointer to the LView that has the focus.

GetLocalUpdateRgn()

Purpose:

Return the region, in local coordinates, to which update drawing is clipped. This is an override of GetLocalUpdateRgn() in LPane.

GetPortOrigin()

Purpose:

Pass back the coordinate origin for the Port needed to set up the local coordinates of a View.

Access:

Virtual, Public

Prototype:

virtual void GetPortOrigin(Point &outOrigin) 
const;
Parameters:

The parameter for this method is:

 

Point&  
outOrigin  
The coordinate origin passed back to the caller.  

Return:

None

GetRevealedRect()

Purpose:

Retrieve the Rect from mRevealedRect.

Access:

Public

Prototype:

void GetRevealedRect( Rect &outRect ) const;
Parameters:

The parameter for this method is:

 

Rect&  
outRect  
The Rect in mRevealedRect is passed back to the caller.  

Return:

None

GetScrollPosition()

Purpose:

Pass back the location of a View's frame within its image.

Access:

Virtual, Public

Prototype:

virtual void GetScrollPosition(
SPoint32 &outScrollPosition) const;
Parameters:

The parameter for this method is:

 

SPoint32&  
outScrollPosition  
The location of the View's frame.  

Return:

None

GetScrollUnit()

Purpose:

This method retrieves the value of mScrollUnit.

Access:

Public

Prototype:

void GetScrollUnit(
SPoint32 &outScrollUnit ) const;
Parameters:

The parameter for this method is:

 

SPoint32&  
outScrollUnit  
The value of mScrollUnit.  

Return:

None

GetSubPanes()

Purpose:

This method returns the value of mSubPanes.

Access:

Public

Prototype:

TArray<LPane*>& GetSubPanes();
Parameters:

None

Return:

A reference to an array that contains mSubPanes.

GetValueForPaneID()

Purpose:

Get the Value of the Pane of a View which has the specified ID. The Pane may be the View itself, or a subpane of the View.

Access:

Virtual, Public

Prototype:

virtual SInt32 GetValueForPaneID(
PaneIDT inPaneID ) const;
Parameters:

The parameter for this method is:

 

PaneIDT  
inPaneID  
The pane ID to query the value of.  

Return:

Returns the value in an SInt32.

Hide()

Purpose:

Make a View invisible. This is an override of Hide() in LPane.

ImagePointIsInFrame()

Purpose:

Return whether a Point specified in Image Coords is within the Frame of a View.

Access:

Public

Prototype:

Boolean ImagePointIsInFrame(
SInt32 inHorizImage,
SInt32 inVertImage ) const;
Parameters:

The parameters for this method are:

 

SInt32  
inHorizImage  
The horizontal coordinate.  
SInt32  
inVertImage  
The vertical coordinate.  

Return:

Boolean indicating whether the point is in the frame (true) or not (false).

ImageRectIntersectsFrame()

Purpose:

Determine whether a rectangle specified in image coordinates intersects the frame of a View.

Access:

Public

Prototype:

Boolean ImageRectIntersectsFrame(
SInt32 inLeftImage,
SInt32 inTopImage,
SInt32 inRightImage,
SInt32 inBottomImage ) const;
Parameters:

The parameters for this method are:

 

SInt32  
inLeftImage  
The left coordinate.  
SInt32  
inTopImage  
The top coordinate.  
SInt32  
inRightImage  
The right coordinate.  
SInt32  
inBottomImage  
The bottom coordinate.  

Return:

Boolean indicating whether the rectangle is in the frame (true) or not (false).

ImageToLocalPoint()

Purpose:

Convert point from Image (32-bit) to Local (16-bit) coordinates.

Image and Local coordinates are different only when the Image size is greater than 16K (15-bit).

Access:

Public

Prototype:

void ImageToLocalPoint(
const SPoint32 &inImagePt,
Point &outLocalPt ) const;
Parameters:

The parameters for this method are:

 

const SPoint32&  
inImagePt  
The point to convert.  
Point&  
outLocalPt  
The converted point.  

Return:

None

InitView()

Purpose:

Initializer for the class.

Access:

Protected

Prototype:

void InitView( const SViewInfo &inViewInfo );
Parameters:

The parameter for this method is:

 

const SViewInfo&  
inViewInfo  
The reference to the Superview to initialize.  

Return:

None

LocalToImagePoint()

Purpose:

Convert point from Local (16-bit) to Image (32-bit) coordinates.

Image and Local coordinates are different only when the Image size is greater than 16K (15-bit)

Access:

Public

Prototype:

void LocalToImagePoint(
const Point &inLocalPt,
SPoint32 &outImagePt ) const;
Parameters:

The parameters for this method are:

 

const Point&  
inLocalPt  
The point to convert.  
SPoint32&  
outImagePt  
The converted point.  

Return:

None

LocalToPortPoint()

Purpose:

Convert point from Local to Port coordinates. This is an override of LocalToPortPoint() in LPane.

MoveBy()

Purpose:

Move the location of the Image and Frame by the specified amounts. This is an override of MoveBy() in LPane.

OrientAllSubPanes()

Purpose:

Adjust the Enabled, Active, and Visible properties of all subpanes.

This function is for the convenience of people who have code from CW5 (PowerPlant 1.0.2) and earlier which created Panes directly in the code (not from 'PPob' resources). You really should call FinishCreate() for each Pane, but to quickly get code running, you can call this function after creating several Panes inside one View.

Do NOT use this function for new code.

Access:

Public

Prototype:

void OrientAllSubPanes();
Parameters:

None

Return:

None

OrientSubPane()

Purpose:

Adjust the Enabled, Active, and Visible properties of a subpane based on the properties of this View (which must be the subpane's SuperView).

Access:

Virtual, Public

Prototype:

virtual void OrientSubPane( LPane *inSub );
Parameters:

The parameter for this method is:

 

LPane*  
inSub  
The pointer to the subpane.  

Return:

None

OutOfFocus()

Purpose:

Notify the View system that a View is no longer in focus.

Call when the coordinate system or clipping region of a View changes, passing a pointer to that View. This clears the saved focus if that View was the one in focus.

Use nil for inView if you manually change (and don't restore) the current port or clipping region

Access:

Static, Public

Prototype:

static void OutOfFocus( LView *inView );
Parameters:

The parameter for this method is:

 

LView*  
inView  
The pointer to the view that is no longer in focus.  

Return:

None

PortToLocalPoint()

Purpose:

Convert a point from Port to local coordinates. This is an override of PortToLocalPoint() in LPane.

PrintPanel()

Purpose:

Try to print a panel of a View. The View is at the top level of the Printout, meaning that it controls pagination. This functions scrolls the View to the specified panel.

This is an override of PrintPanel() in LPane.

ReconcileFrameAndImage()

Purpose:

Adjusts the Image so that it fits within the Frame. This function addresses the problem of what to do when you scroll a View to at or near the bottom or right, then make the View's frame larger. This would normally expose some undefined area below or to the right of the image.

If mReconcileOverhang is true, this function scrolls the image so that the bottom right corner is at the bottom right of the frame. However, it never moves the top left corner of the image beyond the top left of the frame. Therefore, the only time undefined area is exposed is when the frame is larger than the Image.

For Views with fixed image sizes, such as drawings where the Image size is the size of a printed page, set mReconcileOverhang to true. The user does not normally want to see past the bottom or right of such Views.

For Views with variable Image sizes, such as text blocks where the size of the Image depends on the number of lines of text, set mReconcileOverhang to false. The user may want to see the undefined area in anticipation of the image growing.

Access:

Virtual, Protected

Prototype:

virtual void ReconcileFrameAndImage(
Boolean inRefresh );
Parameters:

The parameter for this method is:

 

Boolean  
inRefresh  
The value indicating whether to refresh.  

Return:

None

Refresh()

Purpose:

Invalidate the area occupied by a View. This forces an Update event that, when processed, will redraw the View. Refresh does nothing if the View is not visible. This is an override of Refresh() in LPane.

RemoveSubPane()

Purpose:

You should not normally call this function. Call LPane::PutInside(nil) to remove a SubPane from its SuperView

Access:

Virtual, Public

Prototype:

virtual void RemoveSubPane(
LPane *inSub);
Parameters:

The parameter for this method is:

 

LPane*  
inSub  
The value indicating whether to refresh.  

Return:

None

ResizeFrameBy()

Purpose:

Change the Frame size by the specified amounts. This is an override of ResizeFrameBy() in LPane.

ResizeImageBy()

Purpose:

Change the image size by the specified pixel increments.

Access:

Public

Prototype:

virtual void ResizeImageBy(
SInt32 inWidthDelta,
SInt32 inHeightDelta,
Boolean inRefresh );
Parameters:

The parameters for this method are:

 

SInt32  
inWidthDelta  
The value indicating the change in width.  
SInt32  
inHeightDelta  
The value indicating the change in height.  
Boolean  
inRefresh  
Whether to refresh or not.  

Return:

None

ResizeImageTo()

Purpose:

Set the image size to the specified pixel dimensions.

Access:

Public

Prototype:

void ResizeImageTo(
SInt32 inWidth,
SInt32 inHeight,
Boolean inRefresh );
Parameters:

The parameters for this method are:

 

SInt32  
inWidth  
The value indicating the change in width.  
SInt32  
inHeight  
The value indicating the change in height.  
Boolean  
inRefresh  
Whether to refresh or not.  

Return:

None

RestorePlace()

Purpose:

Read size and location information stored in a Stream by the SavePlace() function. This is an override of RestorePlace() in LPane.

SavePlace()

Purpose:

Write size and location information to a Stream for later retrieval by the RestorePlace() function. This is an override of SavePlace() in LPane.

ScrollBits()

Purpose:

Scroll the pixels of a View. This method is called internally by ScrollImageBy() to shift the pixels.

Access:

Virtual, Public

Prototype:

virtual void ScrollBits(
SInt32 inLeftDelta,
SInt32 inTopDelta ) ;
Parameters:

The parameters for this method are:

 

SInt32  
inLeftDelta  
The value indicating the change from the left.  
SInt32  
inTopDelta  
The value indicating the change from the top.  

Return:

None

ScrollImageBy()

Purpose:

Scroll image by specified horizontal and vertical increments. Scrolling moves the image relative to the frame and port, so that a different portion of the image is visible thru the frame.

Positive deltas scroll right and down. Negative deltas scroll left and up.

If inRefresh is true, the Port containing the View is updated immediately, rather than refreshed at the next update event. Scrolling usually happens during mouse down tracking, so we want immediate visual feedback.

Access:

Public

Prototype:

virtual void ScrollImageBy(
SInt32 inLeftDelta,
SInt32 inTopDelta,
Boolean inRefresh );
Parameters:

The parameters for this method are:

 

SInt32  
inLeftDelta  
The value indicating the change from the left.  
SInt32  
inTopDelta  
The value indicating the change from the top.  
Boolean  
inRefresh  
Whether to refresh or not.  

Return:

None

ScrollImageTo()

Purpose:

Scroll image to the specified horizontal and vertical locations.

Scrolling moves the image relative to the frame and port, so that a different portion of the image is visible thru the frame.

When scrolled to (0, 0), the top left of the image coincides with the top left of the frame (home position).

If inRefresh is true, the Port containing the View is updated immediately, rather than refreshed at the next update event. Scrolling usually happens during mouse down tracking, so we want immediate visual feedback.

Access:

Public

Prototype:

void ScrollImageTo(
SInt32 inLeftLocation,
SInt32 inTopLocation,
Boolean inRefresh );
Parameters:

The parameters for this method are:

 

SInt32  
inLeftLocation  
The value indicating the point on the left.  
SInt32  
inTopLocation  
The value indicating the on the top.  
Boolean  
inRefresh  
Whether to refresh or not.  

Return:

None

ScrollPinnedImageBy()

Purpose:

Scroll image by specified horizontal and vertical increments, but don't scroll beyond an edge of the frame.

Access:

Public

Prototype:

virtual Boolean ScrollPinnedImageBy(
SInt32 inLeftDelta,
SInt32 inTopDelta,
Boolean inRefresh );
Parameters:

The parameters for this method are:

 

SInt32  
inLeftDelta  
The value indicating the change from the left.  
SInt32  
inTopDelta  
The value indicating the change from the top.  
Boolean  
inRefresh  
Whether to refresh or not.  

Return:

Return true if the View actually scrolls, else false.

ScrollToPanel()

Purpose:

Scroll View Image to the specified panel. This is an override of ScrollToPanel() in LPane.

SetDescriptorForPaneID()

Purpose:

Set the descriptor of the Pane of a View which has the specified ID. The Pane may be the View itself, or a subpane of the View.

Access:

Virtual, Public

Prototype:

virtual void SetDescriptorForPaneID(
PaneIDT inPaneID,
ConstStr255Param inDescriptor );
Parameters:

The parameters for this method are:

 

PaneIDT  
inPaneID  
The pane ID.  
ConstStr-255Param  
inDescriptor  
The string to set for the descriptor.  

Return:

None

SetReconcileOverhang()

Purpose:

Specify whether to reconcile the Frame and Image when there is overhang. Refer to ReconcileFrameAndImage() to learn more.

Access:

Public

Prototype:

void SetReconcileOverhang( Boolean inSetting );
Parameters:

The parameter for this method is:

 

Boolean  
inSetting  
The value to set for mReconcileOverhang.  

Return:

None

SetScrollUnit()

Purpose:

Set the mScrollUnit data member.

Access:

Public

Prototype:

void SetScrollUnit( const SPoint32 &inScrollUnit 
);
Parameters:

The parameter for this method is:

 

const SPoint32&  
inScrollUnit  
The value to set for mScrollUnit.  

Return:

None

SetValueForPaneID()

Purpose:

Set the value of the pane of a View which has the specified ID. The pane may be the View itself, or a subpane of the View.

Access:

Virtual, Public

Prototype:

virtual void SetValueForPaneID(
PaneIDT inPaneID,
SInt32 inValue );
Parameters:

The parameters for this method are:

 

PaneIDT  
inPaneID  
The pane ID.  
SInt32  
inValue  
value to set for the pane of the View.  

Return:

None

Show()

Purpose:

Make a View visible. This is an override of Show() in LPane.

SubImageChanged()

Purpose:

This method gets called as notification that the image of some SubView changed size, location, or scroll units. You should override this method to respond to such changes.

Access:

Virtual, Public

Prototype:

virtual void SubImageChanged( LView* inSubView );
Parameters:

The parameter for this method is:

 

LView*  
inSubView  
The pointer to the SubView.  

Return:

None

SuperActivate()

Purpose:

The SuperView of a View has been activated. This is an override of SuperActivate() in LPane.

SuperDeactivate()

Purpose:

The SuperView of a View has been deactivated. This is an override of SuperDeactivate() in LPane.

SuperDisable()

Purpose:

The SuperView of a View has been disabled. This is an override of SuperDisable() in LPane.

SuperEnable()

Purpose:

The SuperView of a View has been enabled. This is an override of SuperEnable() in LPane.

SuperHide()

Purpose:

This is called when the SuperView of a View has been hidden. This is an override of SuperHide() in LPane.

SuperPrintPanel()

Purpose:

This is called when the SuperView is printing a panel. This is an override of SuperPrintPanel() in LPane.

SuperShow()

Purpose:

The SuperView of a View has become visible. This is an override of SuperShow() in LPane.

sInFocusView

Purpose:

The pointer to the LView that has the focus.

Access:

Protected

Prototype:

static LView *sInFocusView;

mImageSize

Purpose:

The image size.

Access:

Protected

Prototype:

SDimension32 mImageSize;

mImageLocation

Purpose:

The image location.

Access:

Protected

Prototype:

SPoint32 mImageLocation;

mScrollUnit

Purpose:

The scroll unit.

Access:

Protected

Prototype:

SPoint32 mScrollUnit;

mPortOrigin

Purpose:

The origin for the port.

Access:

Protected

Prototype:

Point mPortOrigin;

mSubPanes

Purpose:

A list of the subpanes for this View.

Access:

Protected

Prototype:

TArray<LPane*> mSubPanes;

mRevealedRect

Purpose:

The revealed rectangle.

Access:

Protected

Prototype:

Rect mRevealedRect;

mUpdateRgnH

Purpose:

The handle to the update region.

Access:

Protected

Prototype:

RgnHandle mUpdateRgnH;

mReconcileOverhang

Purpose:

The value indicating whether to reconcile overhang.

Access:

Protected

Prototype:

Boolean mReconcileOverhang;

 


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: July 21, 2000