Piccolo.NET

PRoot Methods

The methods of the PRoot class are listed below. For a complete list of PRoot class members, see the PRoot Members topic.

Public Instance Methods

AddActivity Overridden. Add an activity to the activity scheduler associated with this root.
AddChild (inherited from PNode)Overloaded. Add a node to be a new child of this node at the specified index.
AddChildren (inherited from PNode)Overloaded. Add a collection of nodes to be children of this node.
AddInputEventListener (inherited from PNode) Adds the specified input event listener to receive input events from this node.
AddInputSource Advanced. If you want to add additional input sources to the root's UI process you can do that here.
AnimateMatrixToBounds (inherited from PNode) Animate this node from it's current matrix when the activity starts a new matrix that will fit the node into the given bounds.
AnimateToBounds (inherited from PNode) Animate this node's bounds from their current location when the activity starts to the specified bounds.
AnimateToColor (inherited from PNode) Animate this node's color from its current value to the new value specified.
AnimateToMatrix (inherited from PNode) Animate this node's matrix from its current values when the activity starts to the new values specified in the given matrix.
AnimateToPositionScaleRotation (inherited from PNode) Animate this node's matrix from its current location when the activity starts to the specified location, scale, and rotation.
CenterBoundsOnPoint (inherited from PNode) Adjust the bounds of this node so that they are centered on the given point specified in the local coordinate system of this node.
CenterFullBoundsOnPoint (inherited from PNode) Adjust the full bounds of this node so that they are centered on the given point specified in the local coordinates of this node's parent.
Clone (inherited from PNode) The copy method copies this node and all of its descendents.
ComputeFullBounds (inherited from PNode) Compute and return the full bounds of this node.
EndResizeBounds (inherited from PNode) Notify this node that you have finished a resize bounds sequence.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FindIntersectingNodes (inherited from PNode) Checks this node and it's descendents for intersection with the given bounds and adds any intersecting nodes to the given list.
FullIntersects (inherited from PNode) Return true if the full bounds of this node intersect with the specified bounds.
FullPaint (inherited from PNode) Paint this node and all of its descendents.
FullPick (inherited from PNode) Try to pick this node and all of its descendents.
GetAllNodes (inherited from PNode) Gets a list containing the subset of this node and all of its descendent nodes that are accepted by the given node filter.
GetChild (inherited from PNode) Return the child node at the specified index.
GetEnumerator (inherited from PNode) Return an enumerator for this node’s direct descendent children.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetObjectData (inherited from PNode) Write this node and all of its descendent nodes to the given SerializationInfo.
GetType (inherited from Object)Gets the Type of the current instance.
GlobalToLocal (inherited from PNode)Overloaded. Transform the given rectangle from global coordinates to this node's local coordinate system.
IndexOfChild (inherited from PNode) Return the index where the given child is stored.
Intersects (inherited from PNode) Return true if this node intersects the given rectangle specified in local bounds.
InvalidateFullBounds (inherited from PNode) Invalidates the full bounds of this node, and sets the child bounds invalid flag on each of this node's ancestors.
InvalidateLayout (inherited from PNode) Invalidate this node's layout, so that later LayoutChildren will get called.
InvalidatePaint (inherited from PNode) Invalidate this node's paint, and mark all of its ancestors as having a node with invalid paint.
IsAncestorOf (inherited from PNode) Return true if this node is an ancestor of the parameter node.
IsDescendentOf (inherited from PNode) Return true if this node is a descendent of the parameter node.
IsDescendentOfRoot (inherited from PNode) Return true if this node is a descendent of the Root.
IsOpaque (inherited from PNode) 
LayoutChildren (inherited from PNode) Nodes that apply layout constraints to their children should override this method and do the layout there.
LocalToGlobal (inherited from PNode)Overloaded. Transform the given rectangle from this node's local coordinate system to the global coordinate system.
LocalToParent (inherited from PNode)Overloaded. Transform the given rectangle from this node's local coordinate system to its parent's local coordinate system.
MoveInBackOf (inherited from PNode) Change the order of this node in its parent's children list so that it will draw before the given sibling node.
MoveInFrontOf (inherited from PNode) Change the order of this node in its parent's children list so that it will draw after the given sibling node.
MoveToBack (inherited from PNode) Change the order of this node in its parent's children list so that it will draw in back of all of its other sibling nodes.
MoveToFront (inherited from PNode) Change the order of this node in its parent's children list so that it will draw in front of all of its other sibling nodes.
OffsetBy (inherited from PNode) Offset this node relative to the parent's coordinate system. This is NOT affected by this node's current scale or rotation.
OnClick (inherited from PNode) Raises the Click event.
OnDoubleClick (inherited from PNode) Raises the DoubleClick event.
OnDragDrop (inherited from PNode) Raises the DragDrop event.
OnDragEnter (inherited from PNode) Raises the DragEnter event.
OnDragLeave (inherited from PNode) Raises the DragLeave event.
OnDragOver (inherited from PNode) Raises the DragOver event.
OnGotFocus (inherited from PNode) Raises the GotFocus event.
OnKeyDown (inherited from PNode) Raises the KeyDown event.
OnKeyPress (inherited from PNode) Raises the KeyPress event.
OnKeyUp (inherited from PNode) Raises the KeyUp event.
OnLostFocus (inherited from PNode) Raises the LostFocus event.
OnMouseDown (inherited from PNode) Raises the MouseDown event.
OnMouseDrag (inherited from PNode) Raises the MouseDrag event.
OnMouseEnter (inherited from PNode) Raises the MouseEnter event.
OnMouseLeave (inherited from PNode) Raises the MouseLeave event.
OnMouseMove (inherited from PNode) Raises the MouseMove event.
OnMouseUp (inherited from PNode) Raises the MouseUp event.
OnMouseWheel (inherited from PNode) Raises the MouseWheel event.
ParentBoundsChanged (inherited from PNode) A notification that the bounds of this node's parent have changed.
ParentToLocal (inherited from PNode)Overloaded. Transform the given rectangle from this node's parent's local coordinate system to the local coordinate system of this node.
Position (inherited from PNode) Animate this node's matrix to one that will make this node appear at the specified position relative to the specified bounding box.
Print (inherited from PNode) Constructs a new PrintDocument, allows the user to select which printer to print to, and then prints the node.
ProcessInputs This is the heartbeat of the Piccolo framework, where all processing is done.
RemoveAllChildren (inherited from PNode) Remove all the children from this node.
RemoveChild (inherited from PNode)Overloaded. Remove the child at the specified position from this node's children.
RemoveChildren (inherited from PNode)Overloaded. Remove all the children in the given collection from this node’s list of children.
RemoveFromParent (inherited from PNode) Delete this node by removing it from its parent’s list of children.
RemoveInputEventListener (inherited from PNode) Removes the specified input event listener so that it no longer receives input events from this node.
RemoveInputSource Advanced. If you want to remove an input source from the root's UI process you can do that here.
Repaint (inherited from PNode) Mark the area on the screen represented by this node's full bounds as needing a repaint.
RepaintFrom (inherited from PNode) Pass the given repaint request up the tree, so that any cameras can invalidate that region on their associated canvas.
Reparent (inherited from PNode) Set the parent of this node, and transform the node in such a way that it doesn't move in global coordinates.
ReplaceWith (inherited from PNode) Swaps this node out of the scene graph tree, and replaces it with the specified replacement node.
ResetBounds (inherited from PNode) Set the bounds of this node back to an empty rectangle.
RotateBy (inherited from PNode)Overloaded. Rotates this node by theta (in degrees) about the given point.
RotateInPlace (inherited from PNode) Rotates this node by theta (in degrees), and then translates the node so that the x, y position of its fullBounds stays constant.
ScaleBy (inherited from PNode)Overloaded. Scale this node's matrix by the given amount about the specified point.
ScheduleProcessInputsIfNeeded If something in the scene graph needs to be updated, this method will schedule ProcessInputs run at a later time.
SetBounds (inherited from PNode) Set the bounds of this node to the given values.
SetOffset (inherited from PNode) Sets the offset applied to this node by it's matrix.
SignalBoundsChanged (inherited from PNode) This method should be called when the bounds of this node are changed.
StartResizeBounds (inherited from PNode) Notify this node that you will begin to repeatedly call SetBounds.
ToImage (inherited from PNode)Overloaded. Paint a representation of this node into the specified image. If backgroundBrush is null, then the image will not be filled with a color prior to rendering.
ToPickPath (inherited from PNode)Overloaded. Creates a pick path with the given Camera and pickbounds and adds this node.
ToString (inherited from PNode) Returns a string representation of this object for debugging purposes.
TransformBy (inherited from PNode) Transform this node's matrix by the given matrix.
TranslateBy (inherited from PNode) Translate this node's matrix by the given amount, using the standard matrix Translate method.
ValidateFullPaint (inherited from PNode) Repaint this node and any of its descendents if they have invalid paint.
WaitForActivities Wait for all scheduled activities to finish before returning from this method. This will freeze out user input, and so it is generally recommended that you use PActivity.StartTime and PActivity.StartAfter to offset activities instead of using this method.
WaitForActivity Wait for all the specified activity to finish before returning from this method. This will freeze out user input, and so it is generally recommended that you use PActivity.StartTime and PActivity.StartAfter to offset activities instead of using this method.

Protected Instance Methods

AddChildren (inherited from PNode)Overloaded. Add a collection of nodes to be children of this node.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
FireChildPropertyChangedEvent (inherited from PNode) Called by child node to forward property change events up the node tree so that property change listeners registered with this node will be notified of property changes of its children nodes.
FirePropertyChangedEvent (inherited from PNode) Raise the given property change event.
GetPropertyHandlers (inherited from PNode) Gets all property event handlers for this node, that are associated with the specified property key.
HandleEvent (inherited from PNode) Raise the given input event.
InternalUpdateBounds (inherited from PNode) Gives nodes a chance to update their internal structure before bounds changed notifications are sent. When this message is received, the node's bounds field will contain the new value.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnFullBoundsInvalidated (inherited from PNode) Raises the FullBoundsInvalidated event.
OnPaintInvalidated (inherited from PNode) Raises the PaintInvalidated event.
Paint (inherited from PNode) Paint this node behind any of its children nodes.
PaintAfterChildren (inherited from PNode) Subclasses that wish to do additional painting after their children are painted should override this method and do that painting here.
Pick (inherited from PNode) Try to pick this node before its children have had a chance to be picked.
PickAfterChildren (inherited from PNode) Try to pick this node after its children have had a chance to be picked.
printDocument_PrintPage (inherited from PNode) Prints the node into the given Graphics context.
ProcessActivitiesNow Step activities and update all associated canvases immediately.
ProcessScheduledInputs Processes currently scheduled inputs and resets processInputsScheduled flag.
RemoveChildren (inherited from PNode)Overloaded. Remove all the children in the given collection from this node’s list of children.
ScaleAndDraw (inherited from PNode) Scale the Graphics so that this node's full bounds fit in displayRect and then render into the given Graphics context.
ValidateFullBounds (inherited from PNode) This method is called to validate the bounds of this node and all of its descendents.

See Also

PRoot Class | UMD.HCIL.Piccolo Namespace


Web Accessibility