CPart.h
IntroductionUse the links in the table of contents to the left to access the documentation. ClassesFunctionsSaveAssociatedResourcesToElementvirtual void SaveAssociatedResourcesToElement( tinyxml2::XMLElement *inElement ); DiscussionIf a part has associated resources, this is how we copy them when this part is copied. You'd likely call SaveMediaToElement() for whatever media you depend on, on your document's media cache. UpdateMediaIDsvirtual void UpdateMediaIDs( std::map<ObjectID,ObjectID> changedIDMappings ); DiscussionWhen a part is pasted its associated media are pasted as well. If media uses an ID that already exists for a different item, it gets re-numbered. This function gets called in that case to let you fix up any IDs that may have changed. As the new number may collide with a later one, you get a list of all changed IDs at once, so subsequent ID changes don't cause your ID to be re-mapped again. TypedefsTGuidelineCallbackActiontypedef enum { EGuidelineCallbackActionAddHorizontal, EGuidelineCallbackActionAddVertical, EGuidelineCallbackActionAddHorizontalSpacer, EGuidelineCallbackActionAddVerticalSpacer, EGuidelineCallbackActionClearAllForFilling, EGuidelineCallbackActionClearAllDone } TGuidelineCallbackAction; Fields
DiscussionIndicate to the callback block how to display this coordinate. THitPartenum { ENothingHitPart = 0, ELeftGrabberHitPart = ( 1 << 0), ETopGrabberHitPart = ( 1 << 1), ERightGrabberHitPart = ( 1 << 2), EBottomGrabberHitPart = ( 1 << 3), EContentHitPart = ( ELeftGrabberHitPart | ETopGrabberHitPart | ERightGrabberHitPart | EBottomGrabberHitPart), EHorizontalMoveHitPart = ( ELeftGrabberHitPart | ERightGrabberHitPart), EVerticalMoveHitPart = ( ETopGrabberHitPart | EBottomGrabberHitPart), ECustomGrabberHitPart = ( 1 << 4) }; typedef uint32_t THitPart; Constants
DiscussionIndicate which of the "resize handles" (aka "grabbers") have been clicked or are being moved right now. |