Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

crs::cursive::screen_ctrl Class Reference

#include <cursive.h>

Inheritance diagram for crs::cursive::screen_ctrl:

crs::base_control List of all members.

Public Methods

 screen_ctrl (cursive *Crs)
virtual void deregisterControl (base_control::controllist::iterator &i)
 deregisters a child control


Public Attributes

debug_ctrldbgctrl

Private Methods

void finalflush ()
 this function flushes every subcontrol and highlights the focused one.

void drawall ()
 forces a draw of all controls (not used yet)


Private Attributes

cursivecrs
 pointer to the global cursive instance


Friends

class cursive
 let crs::cursive call finalflush() and drawall()


Detailed Description

The mighty mighty screen control

This control is instantiated by crs::cursive. As it's declared private, it should be the only instance. At least as long as cursive supports only one screen. :) It draws the controls it owns. And they draw the control they own. So every control that has an owner gets drawed. That's the reason why you should not supply 0 in the owner parameter in the control's ctor. If you do so, it won't be drawn on screen (aka crs::cursive::mScreen).

Definition at line 100 of file cursive.h.


Constructor & Destructor Documentation

crs::cursive::screen_ctrl::screen_ctrl cursive   Crs
 

Definition at line 44 of file cursive.cpp.

References crs::base_control::mHeight, crs::base_control::mWidth, and crs::base_control::resize().


Member Function Documentation

void crs::cursive::screen_ctrl::deregisterControl base_control::controllist::iterator &    i [virtual]
 

deregisters a child control

also takes care that the focused control is valid

Definition at line 133 of file cursive.cpp.

References crs, crs::cursive::focusable, and crs::cursive::focused.

void crs::cursive::screen_ctrl::drawall   [private]
 

forces a draw of all controls (not used yet)

Definition at line 106 of file cursive.cpp.

References crs::base_control::draw(), and crs::base_control::mControls.

void crs::cursive::screen_ctrl::finalflush   [private]
 

this function flushes every subcontrol and highlights the focused one.

It is the only function that actually draws on the screen.

Definition at line 113 of file cursive.cpp.

References crs::base_control::buffer, crs::base_control::curpos, crs::base_control::draw(), crs::cursive::focused, crs::base_control::getAbsLeft(), crs::base_control::getAbsTop(), crs::cursive::getFocused(), crs::base_control::height, crs::base_control::mControls, crs::base_control::mHeight, crs::base_control::mWidth, and crs::base_control::width.

Referenced by crs::cursive::mainloop().


Friends And Related Function Documentation

friend class cursive [friend]
 

let crs::cursive call finalflush() and drawall()

Definition at line 105 of file cursive.h.


Member Data Documentation

cursive* crs::cursive::screen_ctrl::crs [private]
 

pointer to the global cursive instance

Definition at line 103 of file cursive.h.

Referenced by deregisterControl().

debug_ctrl* crs::cursive::screen_ctrl::dbgctrl
 

Definition at line 113 of file cursive.h.


The documentation for this class was generated from the following files:
Generated on Mon May 19 20:36:04 2003 for cursive by doxygen1.2.18