Rename pos to position in user facing methods and variables

Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:

* pos -> position
* rot -> rotation
* loc -> location

C++ variables are left as is.
This commit is contained in:
letheed 2017-09-10 15:37:49 +02:00
parent ecd226c6a7
commit 5ad9be4c24
247 changed files with 823 additions and 832 deletions

View file

@ -2368,7 +2368,7 @@ void PropertyEditor::_mark_drop_fields(TreeItem *p_at) {
Variant PropertyEditor::get_drag_data_fw(const Point2 &p_point, Control *p_from) {
TreeItem *item = tree->get_item_at_pos(p_point);
TreeItem *item = tree->get_item_at_position(p_point);
if (!item)
return Variant();
@ -2376,7 +2376,7 @@ Variant PropertyEditor::get_drag_data_fw(const Point2 &p_point, Control *p_from)
if (!d.has("name"))
return Variant();
int col = tree->get_column_at_pos(p_point);
int col = tree->get_column_at_position(p_point);
if (col == 0) {
Dictionary dp;
@ -2407,11 +2407,11 @@ Variant PropertyEditor::get_drag_data_fw(const Point2 &p_point, Control *p_from)
bool PropertyEditor::can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const {
TreeItem *item = tree->get_item_at_pos(p_point);
TreeItem *item = tree->get_item_at_position(p_point);
if (!item)
return false;
int col = tree->get_column_at_pos(p_point);
int col = tree->get_column_at_position(p_point);
if (col != 1)
return false;
@ -2419,11 +2419,11 @@ bool PropertyEditor::can_drop_data_fw(const Point2 &p_point, const Variant &p_da
}
void PropertyEditor::drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) {
TreeItem *item = tree->get_item_at_pos(p_point);
TreeItem *item = tree->get_item_at_position(p_point);
if (!item)
return;
int col = tree->get_column_at_pos(p_point);
int col = tree->get_column_at_position(p_point);
if (col != 1)
return;