Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIViewManager Class Reference

#include <nsIViewManager.h>

Inheritance diagram for nsIViewManager:
Inheritance graph
[legend]
Collaboration diagram for nsIViewManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_IMETHOD Init (nsIDeviceContext *aContext)=0
 Initialize the ViewManager Note: this instance does not hold a reference to the viewobserver because it holds a reference to this instance.
 NS_IMETHOD_ (nsIView *) CreateView(const nsRect &aBounds
 Create an ordinary view.
 NS_IMETHOD_ (nsIScrollableView *) CreateScrollableView(const nsRect &aBounds
 Create an scrollable view.
NS_IMETHOD GetRootView (nsIView *&aView)=0
 Get the root of the view tree.
NS_IMETHOD SetRootView (nsIView *aView)=0
 Set the root of the view tree.
NS_IMETHOD GetWindowDimensions (nscoord *aWidth, nscoord *aHeight)=0
 Get the dimensions of the root window.
NS_IMETHOD SetWindowDimensions (nscoord aWidth, nscoord aHeight)=0
 Set the dimensions of the root window.
NS_IMETHOD Composite (void)=0
 Called to force a redrawing of any dirty areas.
NS_IMETHOD UpdateView (nsIView *aView, PRUint32 aUpdateFlags)=0
 Called to inform the view manager that the entire area of a view is dirty and needs to be redrawn.
NS_IMETHOD UpdateView (nsIView *aView, const nsRect &aRect, PRUint32 aUpdateFlags)=0
 Called to inform the view manager that some portion of a view is dirty and needs to be redrawn.
NS_IMETHOD UpdateAllViews (PRUint32 aUpdateFlags)=0
 Called to inform the view manager that it should redraw all views.
NS_IMETHOD DispatchEvent (nsGUIEvent *aEvent, nsEventStatus *aStatus)=0
 Called to dispatch an event to the appropriate view.
NS_IMETHOD GrabMouseEvents (nsIView *aView, PRBool &aResult)=0
 Used to grab/capture all mouse events for a specific view, irrespective of the cursor position at which the event occurred.
NS_IMETHOD GrabKeyEvents (nsIView *aView, PRBool &aResult)=0
 Used to grab/capture all keyboard events for a specific view, irrespective of the cursor position at which the event occurred.
NS_IMETHOD GetMouseEventGrabber (nsIView *&aView)=0
 Get the current view, if any, that's capturing mouse events.
NS_IMETHOD GetKeyEventGrabber (nsIView *&aView)=0
 Get the current view, if any, that's capturing keyboard events.
NS_IMETHOD InsertChild (nsIView *aParent, nsIView *aChild, nsIView *aSibling, PRBool aAfter)=0
 Given a parent view, insert another view as its child.
NS_IMETHOD InsertZPlaceholder (nsIView *aParent, nsIView *aChild, nsIView *aSibling, PRBool aAfter)=0
 Given a parent view, insert a placeholder for a view that logically belongs to this parent but has to be moved somewhere else for geometry reasons ("fixed" positioning).
NS_IMETHOD RemoveChild (nsIView *aChild)=0
 Remove a specific child view from its parent.
NS_IMETHOD MoveViewTo (nsIView *aView, nscoord aX, nscoord aY)=0
 Move a view to the specified position, provided in parent coordinates.
NS_IMETHOD ResizeView (nsIView *aView, const nsRect &aRect, PRBool aRepaintExposedAreaOnly=PR_FALSE)=0
 Resize a view.
NS_IMETHOD SetViewChildClipRegion (nsIView *aView, const nsRegion *aRegion)=0
 Set the region to which a view's descendants are clipped.
NS_IMETHOD SetViewVisibility (nsIView *aView, nsViewVisibility aVisible)=0
 Set the visibility of a view.
NS_IMETHOD SetViewZIndex (nsIView *aView, PRBool aAutoZIndex, PRInt32 aZindex, PRBool aTopMost=PR_FALSE)=0
 Set the z-index of a view.
NS_IMETHOD SetViewFloating (nsIView *aView, PRBool aFloatingView)=0
 Set whether the view "floats" above all other views, which tells the compositor not to consider higher views in the view hierarchy that would geometrically intersect with this view.
NS_IMETHOD SetViewBitBltEnabled (nsIView *aView, PRBool aEnable)=0
 Set whether the view can be bitblitted during scrolling.
NS_IMETHOD SetViewCheckChildEvents (nsIView *aView, PRBool aEnable)=0
 Set whether the view's children should be searched during event processing.
NS_IMETHOD SetViewContentTransparency (nsIView *aView, PRBool aTransparent)=0
 Used set the transparency status of the content in a view.
NS_IMETHOD SetViewOpacity (nsIView *aView, float aOpacity)=0
 Note: This didn't exist in 4.0.
NS_IMETHOD SetViewObserver (nsIViewObserver *aObserver)=0
 Set the view observer associated with this manager.
NS_IMETHOD GetViewObserver (nsIViewObserver *&aObserver)=0
 Get the view observer associated with this manager.
NS_IMETHOD GetDeviceContext (nsIDeviceContext *&aContext)=0
 Get the device context associated with this manager.
NS_IMETHOD DisableRefresh (void)=0
 prevent the view manager from refreshing.
NS_IMETHOD EnableRefresh (PRUint32 aUpdateFlags)=0
 allow the view manager to refresh.
NS_IMETHOD BeginUpdateViewBatch (void)=0
 prevents the view manager from refreshing.
NS_IMETHOD EndUpdateViewBatch (PRUint32 aUpdateFlags)=0
 allow the view manager to refresh any damaged areas accumulated after the BeginUpdateViewBatch() call.
NS_IMETHOD SetRootScrollableView (nsIScrollableView *aScrollable)=0
 set the view that is is considered to be the root scrollable view for the document.
NS_IMETHOD GetRootScrollableView (nsIScrollableView **aScrollable)=0
 get the view that is is considered to be the root scrollable view for the document.
NS_IMETHOD Display (nsIView *aView, nscoord aX, nscoord aY, const nsRect &aClipRect)=0
 Display the specified view.
NS_IMETHOD RenderOffscreen (nsIView *aView, nsRect aRect, PRBool aUntrusted, PRBool aIgnoreViewportScrolling, nscolor aBackgroundColor, nsIRenderingContext **aRenderedContext)=0
 Dump the specified view into a new offscreen rendering context.
NS_IMETHOD AddCompositeListener (nsICompositeListener *aListener)=0
 Add a listener to the view manager's composite listener list.
NS_IMETHOD RemoveCompositeListener (nsICompositeListener *aListener)=0
 Remove a listener from the view manager's composite listener list.
NS_IMETHOD GetWidget (nsIWidget **aWidget)=0
 Retrieve the widget at the root of the view manager.
NS_IMETHOD ForceUpdate ()=0
 Force update of view manager widget Callers should use UpdateView(view, NS_VMREFRESH_IMMEDIATE) in most cases instead.
NS_IMETHOD AllowDoubleBuffering (PRBool aDoubleBuffer)=0
 Control double buffering of the display.
NS_IMETHOD IsPainting (PRBool &aIsPainting)=0
 Indicate whether the viewmanager is currently painting.
NS_IMETHOD SetDefaultBackgroundColor (nscolor aColor)=0
 Set the default background color that the view manager should use to paint otherwise unowned areas.
NS_IMETHOD GetDefaultBackgroundColor (nscolor *aColor)=0
 Retrieve the default background color.
NS_IMETHOD GetLastUserEventTime (PRUint32 &aTime)=0
 Retrieve the time of the last user event.
NS_IMETHOD GetRectVisibility (nsIView *aView, const nsRect &aRect, PRUint16 aMinTwips, nsRectVisibility *aRectVisibility)=0
 Determine if a rectangle specified in the view's coordinate system is completely, or partially visible.
NS_IMETHOD SynthesizeMouseMove (PRBool aFromScroll)=0
 Dispatch a mouse move event based on the most recent mouse position.

Public Attributes

const nsIViewaParent = 0
const nsIView nsViewVisibility aVisibilityFlag = nsViewVisibility_kShow) = 0

Detailed Description

Definition at line 68 of file nsIViewManager.h.


Member Function Documentation

Add a listener to the view manager's composite listener list.

Parameters:
aListener- new listener
Returns:
error status

Implemented in nsViewManager.

NS_IMETHOD nsIViewManager::AllowDoubleBuffering ( PRBool  aDoubleBuffer) [pure virtual]

Control double buffering of the display.

If double buffering is enabled the viewmanager is allowed to render to an offscreen drawing surface before copying to the display in order to prevent flicker. If it is disabled all rendering will appear directly on the the display. The display is double buffered by default.

Parameters:
aDoubleBufferPR_TRUE to enable double buffering PR_FALSE to disable double buffering

Implemented in nsViewManager.

Here is the caller graph for this function:

prevents the view manager from refreshing.

allows UpdateView() to notify widgets of damaged regions that should be repainted when the batch is ended.

Returns:
error status

Implemented in nsViewManager.

Here is the caller graph for this function:

Called to force a redrawing of any dirty areas.

Implemented in nsViewManager.

Here is the caller graph for this function:

prevent the view manager from refreshing.

Returns:
error status

Implemented in nsViewManager.

NS_IMETHOD nsIViewManager::DispatchEvent ( nsGUIEvent aEvent,
nsEventStatus aStatus 
) [pure virtual]

Called to dispatch an event to the appropriate view.

Often called as a result of receiving a mouse or keyboard event from the widget event system.

Parameters:
eventevent to dispatch
Returns:
event handling status

Implemented in nsViewManager.

NS_IMETHOD nsIViewManager::Display ( nsIView aView,
nscoord  aX,
nscoord  aY,
const nsRect aClipRect 
) [pure virtual]

Display the specified view.

Used when printing.

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::EnableRefresh ( PRUint32  aUpdateFlags) [pure virtual]

allow the view manager to refresh.

this may cause a synchronous paint to occur inside the call.

Parameters:
aUpdateFlagssee bottom of nsIViewManager.h for description
Returns:
error status

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::EndUpdateViewBatch ( PRUint32  aUpdateFlags) [pure virtual]

allow the view manager to refresh any damaged areas accumulated after the BeginUpdateViewBatch() call.

this may cause a synchronous paint to occur inside the call if aUpdateFlags NS_VMREFRESH_IMMEDIATE is set.

If this is not the outermost view batch command, then this does nothing except that the specified flags are remembered. When the outermost batch finally ends, we merge together all the flags for the inner batches in the following way: -- If any batch specified NS_VMREFRESH_IMMEDIATE, then we use that flag (i.e. there is a synchronous paint under the last EndUpdateViewBatch) -- Otherwise if any batch specified NS_VMREFERSH_DEFERRED, then we use that flag (i.e. invalidation is deferred until the processing of an Invalidate PLEvent) -- Otherwise all batches specified NS_VMREFRESH_NO_SYNC and we honor that; all widgets are invalidated normally and will be painted the next time the toolkit chooses to update them.

Parameters:
aUpdateFlagssee bottom of nsIViewManager.h for description
Returns:
error status

Implemented in nsViewManager.

Here is the caller graph for this function:

Force update of view manager widget Callers should use UpdateView(view, NS_VMREFRESH_IMMEDIATE) in most cases instead.

Returns:
error status

Implemented in nsViewManager.

Here is the caller graph for this function:

Retrieve the default background color.

Parameters:
aColorthe default background color

Implemented in nsViewManager.

Here is the caller graph for this function:

Get the device context associated with this manager.

Returns:
device context

Implemented in nsViewManager.

Here is the caller graph for this function:

Get the current view, if any, that's capturing keyboard events.

Returns:
view that is capturing keyboard events or nsnull

Implemented in nsViewManager.

Retrieve the time of the last user event.

User events include mouse and keyboard events. The viewmanager saves the time of the last user event.

Parameters:
aTimeLast user event time in microseconds

Implemented in nsViewManager.

Get the current view, if any, that's capturing mouse events.

Returns:
view that is capturing mouse events or nsnull

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::GetRectVisibility ( nsIView aView,
const nsRect aRect,
PRUint16  aMinTwips,
nsRectVisibility aRectVisibility 
) [pure virtual]

Determine if a rectangle specified in the view's coordinate system is completely, or partially visible.

Parameters:
aViewview that aRect coordinates are specified relative to
aRectrectangle in twips to test for visibility
aMinTwipsis the min. pixel rows or cols at edge of screen needed for object to be counted visible
aRectVisibilityreturns eVisible if the rect is visible, otherwise it returns an enum indicating why not

Implemented in nsViewManager.

Here is the caller graph for this function:

get the view that is is considered to be the root scrollable view for the document.

Parameters:
aScrollableout parameter for root scrollable view
Returns:
error status

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::GetRootView ( nsIView *&  aView) [pure virtual]

Get the root of the view tree.

Returns:
the root view

Implemented in nsViewManager.

Here is the caller graph for this function:

Get the view observer associated with this manager.

Parameters:
aObserver- out parameter for observer
Returns:
error status

Implemented in nsViewManager.

NS_IMETHOD nsIViewManager::GetWidget ( nsIWidget **  aWidget) [pure virtual]

Retrieve the widget at the root of the view manager.

This is the widget associated with the root view, if the root view exists and has a widget.

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::GetWindowDimensions ( nscoord aWidth,
nscoord aHeight 
) [pure virtual]

Get the dimensions of the root window.

The dimensions are in twips

Parameters:
aWidthout parameter for width of window in twips
aHeightout parameter for height of window in twips

Implemented in nsViewManager.

NS_IMETHOD nsIViewManager::GrabKeyEvents ( nsIView aView,
PRBool aResult 
) [pure virtual]

Used to grab/capture all keyboard events for a specific view, irrespective of the cursor position at which the event occurred.

Parameters:
aViewview to capture keyboard events
Returns:
event handling status

Implemented in nsViewManager.

NS_IMETHOD nsIViewManager::GrabMouseEvents ( nsIView aView,
PRBool aResult 
) [pure virtual]

Used to grab/capture all mouse events for a specific view, irrespective of the cursor position at which the event occurred.

Parameters:
aViewview to capture mouse events
Returns:
event handling status

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::Init ( nsIDeviceContext aContext) [pure virtual]

Initialize the ViewManager Note: this instance does not hold a reference to the viewobserver because it holds a reference to this instance.

Returns:
The result of the initialization, NS_OK if no errors

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::InsertChild ( nsIView aParent,
nsIView aChild,
nsIView aSibling,
PRBool  aAfter 
) [pure virtual]

Given a parent view, insert another view as its child.

aSibling and aAbove control the "document order" for the insertion. If aSibling is null, the view is inserted at the end of the document order if aAfter is PR_TRUE, otherwise it is inserted at the beginning. If aSibling is non-null, then if aAfter is PR_TRUE, the view is inserted after the sibling in document order (appearing above the sibling unless overriden by z-order). If it is PR_FALSE, the view is inserted before the sibling. The view manager generates the appopriate dirty regions.

Parameters:
aParentparent view
aChildchild view
aSiblingsibling view
aAfterafter or before in the document order

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::InsertZPlaceholder ( nsIView aParent,
nsIView aChild,
nsIView aSibling,
PRBool  aAfter 
) [pure virtual]

Given a parent view, insert a placeholder for a view that logically belongs to this parent but has to be moved somewhere else for geometry reasons ("fixed" positioning).

Parameters:
aParentparent view
aChildchild view
aSiblingsibling view
aAfterafter or before in the document order

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::IsPainting ( PRBool aIsPainting) [pure virtual]

Indicate whether the viewmanager is currently painting.

Parameters:
aPaintingPR_TRUE if the viewmanager is painting PR_FALSE otherwise

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::MoveViewTo ( nsIView aView,
nscoord  aX,
nscoord  aY 
) [pure virtual]

Move a view to the specified position, provided in parent coordinates.

The new position is the (0, 0) origin for the view's coordinate system. The view's bounds may extend above or to the left of this point. The view manager generates the appropriate dirty regions.

Parameters:
aViewview to move
aXx value for new view position
aYy value for new view position

Implemented in nsViewManager.

Here is the caller graph for this function:

Create an ordinary view.

Parameters:
aBoundsinitial bounds for view XXX We should eliminate this parameter; you can set the bounds after CreateView
aParentintended parent for view. this is not actually set in the nsIView through this method. it is only used by the initialization code to walk up the view tree, if necessary, to find resources. XXX We should eliminate this parameter!
aVisibilityFlaginitial visibility state of view XXX We should eliminate this parameter; you can set it after CreateView
Returns:
The new view

Reimplemented in nsViewManager.

Create an scrollable view.

Parameters:
aBoundsinitial bounds for view XXX We should eliminate this parameter; you can set the bounds after CreateScrollableView
aParentintended parent for view. this is not actually set in the nsIView through this method. it is only used by the initialization code to walk up the view tree, if necessary, to find resources. XXX We should eliminate this parameter!
Returns:
The new view

Reimplemented in nsViewManager.

NS_IMETHOD nsIViewManager::RemoveChild ( nsIView aChild) [pure virtual]

Remove a specific child view from its parent.

This will NOT remove its placeholder if there is one. The view manager generates the appropriate dirty regions.

Parameters:
aParentparent view
aChildchild view

Implemented in nsViewManager.

Here is the caller graph for this function:

Remove a listener from the view manager's composite listener list.

Parameters:
aListener- listener to remove
Returns:
error status

Implemented in nsViewManager.

NS_IMETHOD nsIViewManager::RenderOffscreen ( nsIView aView,
nsRect  aRect,
PRBool  aUntrusted,
PRBool  aIgnoreViewportScrolling,
nscolor  aBackgroundColor,
nsIRenderingContext **  aRenderedContext 
) [pure virtual]

Dump the specified view into a new offscreen rendering context.

Parameters:
aRectis the region to capture into the offscreen buffer, in the view's coordinate system
aUntrustedset to PR_TRUE if the contents may be passed to malicious agents. E.g. we might choose not to paint the contents of sensitive widgets such as the file name in a file upload widget, and we might choose not to paint themes.
aIgnoreViewportScrollingignore clipping/scrolling/scrollbar painting due to scrolling in the viewport
aBackgroundColora background color to render onto
aRenderedContextgets set to a rendering context whose offscreen buffer can be locked to get the data. The buffer's size will be aRect's size. In all cases the caller must clean it up by calling cx->DestroyDrawingSurface(cx->GetDrawingSurface()).

Implemented in nsViewManager.

NS_IMETHOD nsIViewManager::ResizeView ( nsIView aView,
const nsRect aRect,
PRBool  aRepaintExposedAreaOnly = PR_FALSE 
) [pure virtual]

Resize a view.

In addition to setting the width and height, you can set the x and y of its bounds relative to its position. Negative x and y will let the view extend above and to the left of the (0,0) point in its coordinate system. The view manager generates the appropriate dirty regions.

Parameters:
aViewview to move
thenew bounds relative to the current position
RepaintExposedAreaOnlyif PR_TRUE Repaint only the expanded or contracted region, if PR_FALSE Repaint the union of the old and new rectangles.

Implemented in nsViewManager.

Here is the caller graph for this function:

Set the default background color that the view manager should use to paint otherwise unowned areas.

If the color isn't known, just set it to zero (which means 'transparent' since the color is RGBA).

Parameters:
aColorthe default background color

Implemented in nsViewManager.

Here is the caller graph for this function:

set the view that is is considered to be the root scrollable view for the document.

Parameters:
aScrollableroot scrollable view
Returns:
error status

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::SetRootView ( nsIView aView) [pure virtual]

Set the root of the view tree.

Does not destroy the current root view. aView may have a parent view managed by a different view manager. aView may have a widget (anything but printing) or may not (printing).

Parameters:
aViewview to set as root

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::SetViewBitBltEnabled ( nsIView aView,
PRBool  aEnable 
) [pure virtual]

Set whether the view can be bitblitted during scrolling.

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::SetViewCheckChildEvents ( nsIView aView,
PRBool  aEnable 
) [pure virtual]

Set whether the view's children should be searched during event processing.

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::SetViewChildClipRegion ( nsIView aView,
const nsRegion *  aRegion 
) [pure virtual]

Set the region to which a view's descendants are clipped.

The view itself is not clipped to this region; this allows for effects where part of the view is drawn outside the clip region (e.g., its borders and background). The view manager generates the appropriate dirty regions.

Parameters:
aViewview to set clipping for
aRegionif null then no clipping is required. In this case all descendant views (but not descendants through placeholder edges) must have their bounds inside the bounds of this view if non-null, then we will clip this view's descendant views --- including descendants through placeholder edges --- to the region. The region's bounds must be within the bounds of this view. The descendant views' bounds need not be inside the bounds of this view (because we're going to clip them anyway).

XXX Currently we only support regions consisting of a single rectangle.

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::SetViewContentTransparency ( nsIView aView,
PRBool  aTransparent 
) [pure virtual]

Used set the transparency status of the content in a view.

see nsIView.HasTransparency().

Parameters:
aTransparentPR_TRUE if there are transparent areas, PR_FALSE otherwise.

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::SetViewFloating ( nsIView aView,
PRBool  aFloatingView 
) [pure virtual]

Set whether the view "floats" above all other views, which tells the compositor not to consider higher views in the view hierarchy that would geometrically intersect with this view.

This is a hack, but it fixes some problems with views that need to be drawn in front of all other views.

Implemented in nsViewManager.

Here is the caller graph for this function:

Set the view observer associated with this manager.

Parameters:
aObserver- new observer
Returns:
error status

Implemented in nsViewManager.

NS_IMETHOD nsIViewManager::SetViewOpacity ( nsIView aView,
float  aOpacity 
) [pure virtual]

Note: This didn't exist in 4.0.

Called to set the opacity of a view. A value of 0.0 means completely transparent. A value of 1.0 means completely opaque.

Parameters:
opacitynew opacity value

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::SetViewVisibility ( nsIView aView,
nsViewVisibility  aVisible 
) [pure virtual]

Set the visibility of a view.

The view manager generates the appropriate dirty regions.

Parameters:
aViewview to change visibility state of
visiblenew visibility state

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::SetViewZIndex ( nsIView aView,
PRBool  aAutoZIndex,
PRInt32  aZindex,
PRBool  aTopMost = PR_FALSE 
) [pure virtual]

Set the z-index of a view.

Positive z-indices mean that a view is above its parent in z-order. Negative z-indices mean that a view is below its parent. The view manager generates the appropriate dirty regions.

Parameters:
aAutoZIndexindicate that the z-index of a view is "auto". An "auto" z-index means that the view does not define a new stacking context, which means that the z-indicies of the view's children are relative to the view's siblings.
aViewview to change z depth of
aZindexexplicit z depth
aTopMostused when this view is z-index:auto to compare against other z-index:auto views. PR_TRUE if the view should be topmost when compared with other z-index:auto views.

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::SetWindowDimensions ( nscoord  aWidth,
nscoord  aHeight 
) [pure virtual]

Set the dimensions of the root window.

Called if the root window is resized. The dimensions are in twips

Parameters:
aWidthof window in twips
aHeightof window in twips

Implemented in nsViewManager.

NS_IMETHOD nsIViewManager::SynthesizeMouseMove ( PRBool  aFromScroll) [pure virtual]

Dispatch a mouse move event based on the most recent mouse position.

This is used when the contents of the page moved (aFromScroll is false) or scrolled (aFromScroll is true).

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::UpdateAllViews ( PRUint32  aUpdateFlags) [pure virtual]

Called to inform the view manager that it should redraw all views.

Parameters:
aViewview to paint. should be root view
aUpdateFlagssee bottom of nsIViewManager.h for description

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::UpdateView ( nsIView aView,
PRUint32  aUpdateFlags 
) [pure virtual]

Called to inform the view manager that the entire area of a view is dirty and needs to be redrawn.

Parameters:
aViewview to paint. should be root view
aUpdateFlagssee bottom of nsIViewManager.h for description

Implemented in nsViewManager.

Here is the caller graph for this function:

NS_IMETHOD nsIViewManager::UpdateView ( nsIView aView,
const nsRect aRect,
PRUint32  aUpdateFlags 
) [pure virtual]

Called to inform the view manager that some portion of a view is dirty and needs to be redrawn.

The rect passed in should be in the view's coordinate space.

Parameters:
aViewview to paint. should be root view
rectrect to mark as damaged
aUpdateFlagssee bottom of nsIViewManager.h for description

Implemented in nsViewManager.


Member Data Documentation

Reimplemented in nsViewManager.

Definition at line 94 of file nsIViewManager.h.

Reimplemented in nsViewManager.

Definition at line 95 of file nsIViewManager.h.


The documentation for this class was generated from the following file: