Open main menu

CDOT Wiki β

Changes

Project A2 20141 - OOP344

610 bytes added, 23:05, 7 March 2014
Clarifications: Added row, col, absrow, abscol
* Child classes should adjust their drawn content so as '''not to overlap the border''' if a border will be drawn.
* If a frame is in fullscreen mode (width < 0 or height < 0) then no border should be drawn.
 
==== row, col ====
The normal row and column functions (row, col) return the relative position of the widget to its parent where (0,0) indicates the most top left position on which anything can be drawn.
 
If a widget has a parent then the relative position is relative to the parent's position. If a widget has no parent <u>or if it's parent is fullscreen</u> then the position is relative to the screen in which case the position (0,0) is the most top left character on the screen.
 
==== absRow, absCol ====
The The idea behind the abs functions is to return the position of the widget <u>on the screen</u>.
=== Recommendations ===