Open main menu

CDOT Wiki β

Changes

Console UI Core Classes - OOP344 20111

1,207 bytes added, 08:12, 8 March 2011
Public Methods
====Public Methods====
 
<big><syntaxhighlight lang="cpp">
CFrame(int Row=-1, int Col=-1, int Width=-1,int Height=-1,
bool Visible = false,
const char* Border=C_BORDER_CHARS,
CFrame* Frame = (CFrame*)0);
</syntaxhighlight></big>
:Sets the corresponding attributes to the incoming values in the argument list and set _covered to null
 
 
virtual void draw(int fn=C_FULL_FRAME);
* First it will '''capture()''' the coordinates it is supposed to cover
* If frame is '''fullscreen()''' then it just clears the screen and exits. <br />
 
Otherwise:<br />
*If the _visible flag is true, it will draw a box at _row and _col, with size of _width and _height using the _border characters and fills it with spaces. Otherwise it will just draw a box using spaces at the same location and same size.
 
 
virtual void move(CDirection dir);
virtual void hide();
 
 
virtual ~CFrame();
/* setters and getters: */
 
 
bool fullscreen()const;
 
 
void visible(bool val);
bool visible()const;
 
 
void frame(CFrame* theContainer);
CFrame* frame();
void row(int val);
int row()const;
 
 
void col(int val);
int col()const;
 
 
void height(int val);
int height()const;
 
 
void width(int val);
int width()const;