Open main menu

CDOT Wiki β

Changes

Project A2 20141 - OOP344

383 bytes added, 01:12, 8 March 2014
absRow, absCol: Updates
==== absRow, absCol ====
The The idea behind the abs functions is to return the position of the widget <u>on the screen</u>. To do this, these functions should start with the current widget's row or col value.* If the widget has no parent or the parent is fullscreen, these functions return the same values as row/col.* Otherwise, these functions should add their parent's '''abs'''row/'''abs'''col (note the '''abs''' version!)** Finally, if the parent is bordered, 1 should be added to the resultant value.
=== Recommendations ===