Changes

Jump to: navigation, search

Project A2 20141 - OOP344

832 bytes added, 17:55, 7 March 2014
CFrame: Responsibilities
== CFrame ==
CFrame is inherits from iFrame's child and implements iFrame's core responsibilities. The "C" in CFrame stands for "concrete" (even though it is technically abstract! More on this later).In this system, CFrame is the parent class of all other deriving classes (CDialog, CField) and the ancestor of the other three (CLabel, CLine, CButton). === Responsibilities ===CFrame is responsible for common communication with the underlying console including:* Clearing a portion of the screen (draw)** Optionally drawing a border/frame while doing this* Restoring a section of a cleared portion of the screen or in its entirety (hide)* Storing attributes and providing functionality for retrieving the basic state of the frame including:** Whether it is in fullscreen mode** Whether it is bordered** Relative top left row/top left column** Absolute top left row/top left column** Width/height of the frame, including the frame/border*** This should be the width/height of the screen if the frame is in fullscreen

Navigation menu