internal static DisplayObject CreateAndPlace(ButtonPart buttonPart, StageObject parent) { var obj = new DisplayObject(buttonPart.Depth); if (!obj.SetPlacement(buttonPart, parent)) return null; return obj; }
internal static DisplayObject CreateAndPlace(PlaceObject2Tag tag, StageObject parent) { var obj = new DisplayObject(tag.Depth); if (!obj.SetPlacement(tag, parent)) return null; return obj; }