#include <base_control.h>
Inheritance diagram for crs::base_control:

Public Types | |
| typedef std::list< base_control * > | controllist |
Public Methods | |
| void | flush (chtype *parentWin, const unsigned int parentWidth, const unsigned int parentHeight) |
| base_control (base_control *Parent, window_events *Events=0, const unsigned int Left=0, const unsigned int Top=0, const unsigned int Width=0, const unsigned int Height=0) | |
| virtual | ~base_control () |
| virtual controllist::iterator | registerControl (base_control *control) |
| virtual void | deregisterControl (controllist::iterator &i) |
| virtual void | freeRegistration () |
| virtual void | draw () |
| virtual void | draw_on_screen () |
| virtual bool | keyPress (const int) |
| int | getAbsTop () const |
| int | getAbsLeft () const |
| const bounds & | getBounds () |
Public Attributes | |
| std::string | name |
| property< base_control, read_write, int > | top |
| property< base_control, read_write, int > | left |
| property< base_control, read_write, unsigned int > | width |
| property< base_control, read_write, unsigned int > | height |
| property< base_control, read_write, const base_control > | parent |
| property< base_control, read_write, bool > | visible |
| property< base_control, read_write, position > | curpos |
| property< base_control, read_only, controllist > | controls |
Protected Methods | |
| void | resize () |
| void | updateParentCoord () |
| void | fill (const char ch) |
| void | putPixel (const char ch, const unsigned int x, const unsigned int y) |
| virtual void | doMove (const position &old_pos, const position &new_pos) |
| virtual void | doResize (const bounds &old_bounds, const bounds &new_bounds) |
| virtual void | doShow () |
| virtual void | doHide () |
| void | setText (const std::string &text, const unsigned int x=0, const unsigned int y=0) |
Protected Attributes | |
| position | mCursorpos |
| window_events * | events |
| base_control * | mParent |
| controllist | mControls |
| drawing_area | buffer |
| int | mLeft |
| int | mTop |
| unsigned int | mWidth |
| unsigned int | mHeight |
| unsigned int | parentTop |
| unsigned int | parentLeft |
| unsigned int | parentWidth |
| unsigned int | parentHeight |
| bool | mVisible |
Private Methods | |
| void | init () |
| const int & | getTop () |
| void | setTop (const int &val) |
| const int & | getLeft () |
| void | setLeft (const int &val) |
| const unsigned int & | getWidth () |
| void | setWidth (const unsigned int &val) |
| const unsigned int & | getHeight () |
| void | setHeight (const unsigned int &val) |
| const base_control & | getParent () |
| void | setParent (const base_control &win) |
| const controllist & | getControls () |
| const bool & | getVisible () |
| void | setVisible (const bool &is) |
| const position & | getCurPos () |
| void | setCurPos (const position &new_pos) |
Private Attributes | |
| controllist::iterator | parentHandle |
Definition at line 17 of file base_control.h.
|
|
Definition at line 19 of file base_control.h. |
|
||||||||||||||||||||||||||||
|
Definition at line 15 of file base_control.cpp. References init(). |
|
|
Definition at line 38 of file base_control.cpp. References deregisterControl(), mControls, mParent, and parentHandle. |
|
|
Definition at line 52 of file base_control.cpp. References mControls. Referenced by ~base_control(). |
|
|
Definition at line 124 of file base_control.cpp. References events, and crs::window_events::onHide(). Referenced by setVisible(). |
|
||||||||||||
|
Reimplemented in crs::debug_ctrl. Definition at line 207 of file base_control.cpp. References events, and crs::window_events::onMove(). |
|
||||||||||||
|
Definition at line 212 of file base_control.cpp. References events, and crs::window_events::onResize(). Referenced by setHeight(), and setWidth(). |
|
|
Definition at line 129 of file base_control.cpp. References events, and crs::window_events::onShow(). Referenced by setVisible(). |
|
|
Reimplemented in crs::check_box, crs::choice_box< T >, crs::debug_ctrl, crs::edit_ctrl< T >, crs::group_box, crs::list_box< T >, crs::push_button, and crs::static_text. Definition at line 73 of file base_control.cpp. References buffer, crs::drawing_area::fill(), and mControls. Referenced by draw_on_screen(), crs::cursive::screen_ctrl::drawall(), crs::cursive::screen_ctrl::finalflush(), and resize(). |
|
|
Definition at line 65 of file base_control.cpp. References buffer, draw(), mHeight, mLeft, mTop, mWidth, parentLeft, and parentTop. |
|
|
Definition at line 223 of file base_control.cpp. References mHeight, mLeft, mTop, mWidth, parentLeft, and parentTop. |
|
||||||||||||||||
|
Definition at line 80 of file base_control.cpp. References buffer, mControls, mHeight, mLeft, mTop, mWidth, parentHeight, and parentWidth. |
|
|
Definition at line 56 of file base_control.cpp. References mParent. |
|
|
Definition at line 149 of file base_control.cpp. References mLeft, and mParent. Referenced by crs::cursive::screen_ctrl::finalflush(). |
|
|
Definition at line 145 of file base_control.cpp. Referenced by crs::cursive::screen_ctrl::finalflush(). |
|
|
Definition at line 203 of file base_control.cpp. References mHeight, mLeft, mTop, and mWidth. Referenced by setHeight(), and setWidth(). |
|
|
Definition at line 94 of file base_control.cpp. References mControls. |
|
|
Definition at line 134 of file base_control.cpp. References mCursorpos. |
|
|
Definition at line 193 of file base_control.cpp. References mHeight. |
|
|
Definition at line 164 of file base_control.cpp. References mLeft. |
|
|
Definition at line 175 of file base_control.cpp. References mParent. |
|
|
Definition at line 153 of file base_control.cpp. References mTop. |
|
|
Definition at line 109 of file base_control.cpp. References mVisible. |
|
|
Definition at line 183 of file base_control.cpp. References mWidth. |
|
|
Definition at line 7 of file base_control.cpp. References mParent, parentHandle, registerControl(), resize(), and updateParentCoord(). Referenced by base_control(). |
|
|
Reimplemented in crs::check_box, crs::choice_box< T >, crs::debug_ctrl, crs::edit_ctrl< T >, crs::list_box< T >, and crs::push_button. Definition at line 77 of file base_control.h. Referenced by crs::cursive::mainloop(). |
|
||||||||||||||||
|
Definition at line 217 of file base_control.cpp. |
|
|
Definition at line 48 of file base_control.cpp. References mControls. Referenced by init(). |
|
|
Definition at line 60 of file base_control.cpp. References buffer, draw(), mHeight, mWidth, and crs::drawing_area::resize(). Referenced by init(), crs::cursive::screen_ctrl::screen_ctrl(), setHeight(), and setWidth(). |
|
|
Definition at line 138 of file base_control.cpp. References mCursorpos, mHeight, mWidth, crs::position::x, and crs::position::y. |
|
|
Definition at line 197 of file base_control.cpp. References doResize(), getBounds(), mHeight, mLeft, mTop, mWidth, and resize(). |
|
|
Definition at line 168 of file base_control.cpp. References doMove(), mLeft, mTop, mWidth, and parentWidth. |
|
|
Definition at line 179 of file base_control.cpp. References mParent. |
|
||||||||||||||||
|
Definition at line 231 of file base_control.cpp. References buffer, and crs::drawing_area::setText(). Referenced by crs::static_text::draw(), and crs::debug_ctrl::draw(). |
|
|
Definition at line 157 of file base_control.cpp. References doMove(), mHeight, mLeft, mTop, and parentHeight. |
|
|
Definition at line 113 of file base_control.cpp. |
|
|
Definition at line 187 of file base_control.cpp. References doResize(), getBounds(), mHeight, mLeft, mTop, mWidth, and resize(). |
|
|
Definition at line 98 of file base_control.cpp. References height, left, mParent, parentHeight, parentLeft, parentTop, parentWidth, top, and width. Referenced by init(). |
|
|
Definition at line 53 of file base_control.h. Referenced by crs::static_text::draw(), crs::push_button::draw(), crs::list_box< T >::draw(), crs::group_box::draw(), crs::edit_ctrl< T >::draw(), crs::debug_ctrl::draw(), crs::choice_box< T >::draw(), crs::check_box::draw(), draw(), draw_on_screen(), crs::cursive::screen_ctrl::finalflush(), flush(), putPixel(), resize(), and setText(). |
|
|
Definition at line 86 of file base_control.h. |
|
|
Definition at line 85 of file base_control.h. Referenced by crs::cursive::screen_ctrl::finalflush(). |
|
|
Definition at line 49 of file base_control.h. Referenced by doHide(), doMove(), doResize(), doShow(), and crs::push_button::keyPress(). |
|
|
Definition at line 82 of file base_control.h. Referenced by crs::cursive::screen_ctrl::finalflush(), and updateParentCoord(). |
|
|
Definition at line 80 of file base_control.h. Referenced by updateParentCoord(). |
|
|
Definition at line 51 of file base_control.h. Referenced by deregisterControl(), draw(), crs::cursive::screen_ctrl::drawall(), crs::cursive::screen_ctrl::finalflush(), flush(), getControls(), registerControl(), and ~base_control(). |
|
|
Definition at line 48 of file base_control.h. Referenced by crs::edit_ctrl< T >::doChange(), getCurPos(), setCurPos(), and crs::text_ctrl::setText_(). |
|
|
Definition at line 55 of file base_control.h. Referenced by crs::list_box< T >::draw(), crs::group_box::draw(), crs::debug_ctrl::draw(), draw_on_screen(), fill(), crs::cursive::screen_ctrl::finalflush(), flush(), getBounds(), getHeight(), putPixel(), resize(), crs::cursive::screen_ctrl::screen_ctrl(), setCurPos(), setHeight(), setTop(), and setWidth(). |
|
|
Definition at line 54 of file base_control.h. Referenced by draw_on_screen(), fill(), flush(), getAbsLeft(), getBounds(), getLeft(), setHeight(), setLeft(), setTop(), and setWidth(). |
|
|
Definition at line 50 of file base_control.h. Referenced by freeRegistration(), getAbsLeft(), getAbsTop(), getParent(), init(), setParent(), updateParentCoord(), and ~base_control(). |
|
|
Definition at line 54 of file base_control.h. Referenced by draw_on_screen(), fill(), flush(), getAbsTop(), getBounds(), getTop(), setHeight(), setLeft(), setTop(), and setWidth(). |
|
|
Definition at line 57 of file base_control.h. Referenced by getVisible(), setVisible(), and crs::static_text::static_text(). |
|
|
|
Definition at line 20 of file base_control.h. |
|
|
Definition at line 83 of file base_control.h. |
|
|
Definition at line 22 of file base_control.h. Referenced by init(), and ~base_control(). |
|
|
Definition at line 56 of file base_control.h. Referenced by flush(), setTop(), and updateParentCoord(). |
|
|
Definition at line 56 of file base_control.h. Referenced by draw_on_screen(), fill(), and updateParentCoord(). |
|
|
Definition at line 56 of file base_control.h. Referenced by draw_on_screen(), fill(), and updateParentCoord(). |
|
|
Definition at line 56 of file base_control.h. Referenced by flush(), setLeft(), and updateParentCoord(). |
|
|
Definition at line 79 of file base_control.h. Referenced by updateParentCoord(). |
|
|
Definition at line 84 of file base_control.h. Referenced by crs::debug_ctrl::keyPress(). |
|
|
Definition at line 81 of file base_control.h. Referenced by crs::cursive::screen_ctrl::finalflush(), and updateParentCoord(). |
1.2.18