var searchIndex = {}; searchIndex["editor"] = {"doc":"Editor interface.","items":[[3,"Type","editor","The type of an object.\nThis does not have be unique for Rust types.\nDynamically typed objects should use same id.",null,null],[12,"0","","",0,null],[3,"Object","","The object id.",null,null],[12,"0","","",1,null],[3,"Reference","","Stores information about a reference.",null,null],[12,"from_ty","","The type of the from object.",2,null],[12,"from_obj","","The id of the from object.",2,null],[12,"to_type","","The type of the to object.",2,null],[12,"to_obj","","The id of the to object.",2,null],[12,"cascade","","Whether to delete objects using this reference.\nWhen `false`, deletion will be cancelled with an error.",2,null],[3,"Field","","Field information.",null,null],[12,"name","","The name of field.",3,null],[12,"ty","","The type of the field.",3,null],[12,"index","","The index within array, 0 for normal fields.",3,null],[12,"array","","0 for a normal named field, length for array.",3,null],[5,"delete","","A helper function for `Editor::delete` implementation.",null,{"inputs":[{"name":"vec"},{"name":"object"}],"output":{"name":"result"}}],[5,"update","","A helper function for `Editor::update` implementation.",null,{"inputs":[{"name":"vec"},{"name":"object"},{"name":"any"}],"output":{"name":"result"}}],[5,"all","","A helper function for `Editor::all` implementation.",null,{"inputs":[{"name":"vec"}],"output":{"name":"vec"}}],[5,"get","","A helper function for `Editor::get` implementation.",null,{"inputs":[{"name":"vec"},{"name":"object"}],"output":{"name":"result"}}],[8,"Editor","","A generic interface for editors, implemented on controllers.",null,null],[10,"cursor_2d","","Gets the current cursor position in 2D.",4,null],[10,"cursor_3d","","Gets the current cursor position in 3D world coordinates.",4,null],[10,"hit_2d","","Try to hit objects at 2D position.",4,null],[10,"hit_3d","","Try to hit objects at 3D position.",4,null],[10,"select","","Select a single object.",4,null],[10,"select_multiple","","Select multiple objects.\nAdds to the current selection.",4,null],[10,"deselect_multiple","","Deselect multiple objects.\nRemoves from the current selection.",4,null],[10,"select_none","","Deselect everything of a type.",4,null],[10,"insert","","Inserts a new object.",4,null],[10,"delete","","Returns an object which references must be updated when\nusing swap-remove by replacing object with last one in same table.",4,null],[10,"update","","Updates an object with new values.",4,null],[10,"replace","","Replaces an object with another.\nKeeps references pointing to the old object, but deletes\nreferences pointing from the old object.",4,null],[10,"get","","Get the field of an object.",4,null],[10,"references_to","","Get references pointing to an object.",4,null],[10,"references_from","","Get references pointing from an object to other objects.",4,null],[10,"visible","","Get the visible objects of a type.",4,null],[10,"selected","","Gets the selected object of a type.\nIf the editor supports multiple selection,\nthe selected object is usually the last in the selected list.",4,null],[10,"multiple_selected","","Gets the multiple selected objects of a type.\nThe order of the selected objects matter.",4,null],[10,"all","","Get all objects of a type.",4,null],[10,"navigate_to","","Navigate to an object such that it becomes visible.",4,null],[10,"types","","Gets the types in the editor.",4,null],[10,"fields_of","","Get the fields of an object.\nThis requires an object because it can be dynamically typed.\nFields of statically types are known at compile time.",4,null],[10,"update_field","","Updates a field. This is used by property widgets.",4,null],[10,"refresh_views","","Refreshes the views.\nThis is called at the end of each action to update cached data.",4,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"fmt","","",1,null],[11,"clone","","",1,null]],"paths":[[3,"Type"],[3,"Object"],[3,"Reference"],[3,"Field"],[8,"Editor"]]}; initSearch(searchIndex);