CreateEmbeddedFacet
TheCreateEmbeddedFacetmethod creates a facet for the specified frame embedded in this facet.
ODFacet CreateEmbeddedFacet ( in ODFrame frame, in ODShape clipShape, in ODTransform externalTransform, in ODCanvas canvas, in ODCanvas biasCanvas, in ODFacet siblingFacet, in ODFramePosition position);
frame- A reference to a frame for this facet.
clipShape- A reference to an initial clip shape for this facet.
externalTransform- A reference to an initial external transform for this facet.
canvas- A reference to a canvas this facet should draw to, or
kODNULLif identical to the canvas associated with the containing facet.biasCanvaskODNULLif the geometry is in platform-normal coordinates, otherwise a reference to the canvas object to whose coordinate space the geometry is biased.siblingFacet- A reference to an existing embedded facet of this facet, or
kODNULLif the embedded facet does not exist.position- The desired position of the new facet relative to the sibling facet. The value of
positionmust be one of the following:kODFrameInFrontorkODFrameBehind. If the sibling facet is set tokODNULL, the new facet is placed in front of (kODFrameInFront) or behind all (kODFrameBehind) its sibling facets.- return value
- A reference to a new facet object.
DISCUSSION
This facet's part calls this method to create a facet for one of its embedded frames. This method in turn calls its frame'sFacetAddedmethod, which in turn calls theFacetAddedmethod associated with the frame's part to notify the part that a facet has been added to one of its display frames.EXCEPTIONS
kODErrCanvasHasNoOwner- The offscreen canvas has no owner.
kODErrInvalidFacet- The specified sibling facet is not an embedded facet of this facet.
kODErrUnsupportedFramePositionCode- The specified position is not a valid position code.
SEE ALSO
TheODFramePositiontype (page 882).
TheODFrame::FacetAddedmethod (page 319).
TheODPart::FacetAddedmethod (page 514).
"Adding a Facet" on page 122 in OpenDoc Programmer's Guide.
"Drawing When a Window is Scrolled" on page 160 in OpenDoc Programmer's Guide.
Table 11-1 on page 466 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help