#include <cursive.h>
Inheritance diagram for crs::cursive::screen_ctrl:
Public Methods | |
screen_ctrl (cursive *Crs) | |
virtual void | deregisterControl (base_control::controllist::iterator &i) |
deregisters a child control | |
Public Attributes | |
debug_ctrl * | dbgctrl |
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 | |
cursive * | crs |
pointer to the global cursive instance | |
Friends | |
class | cursive |
let crs::cursive call finalflush() and drawall() |
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.
|
Definition at line 44 of file cursive.cpp. References crs::base_control::mHeight, crs::base_control::mWidth, and crs::base_control::resize(). |
|
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. |
|
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. |
|
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(). |
|
let crs::cursive call finalflush() and drawall()
|
|
pointer to the global cursive instance
Definition at line 103 of file cursive.h. Referenced by deregisterControl(). |
|
|