List of all members.
Detailed Description
Definition at line 14 of file ui.
Constructor & Destructor Documentation
inlib::sg::ui::ui |
( |
| ) |
[inline] |
Definition at line 19 of file ui.
virtual inlib::sg::ui::~ui |
( |
| ) |
[inline, virtual] |
Definition at line 20 of file ui.
inlib::sg::ui::ui |
( |
const ui & |
a_from | ) |
[inline, protected] |
Definition at line 22 of file ui.
:m_to_exit(a_from.m_to_exit){
copy_cbks(a_from);
}
Member Function Documentation
Definition at line 34 of file ui.
{
m_cbks.push_back(a_work);
}
const std::vector<inlib::sg::cbk*>& inlib::sg::ui::cbks |
( |
| ) |
const [inline] |
Definition at line 169 of file ui.
void inlib::sg::ui::do_works |
( |
| ) |
[inline] |
Definition at line 60 of file ui.
{
std::vector<inlib::sg::cbk*> to_do = m_cbks;
{std::vector<inlib::sg::cbk*>::iterator it;
for(it=to_do.begin();it!=to_do.end();++it) {
if(is_in_m_cbks(*it)) {
inlib::sg::cbk* cbk = (*it)->copy();
bool to_render = (cbk->action()==cbk::return_to_render?true:false);
if(cbk->is_single_shoot()) {
(*it)->set_single_shoot(true);
}
delete cbk;
if(to_render) win_render();
}
}}
{std::vector<inlib::sg::cbk*>::iterator it;
for(it=to_do.begin();it!=to_do.end();++it) {
if(is_in_m_cbks(*it)) {
inlib::sg::cbk* cbk = *it;
if(cbk->is_single_shoot()) {
delete cbk;
std::vector<inlib::sg::cbk*>::iterator it2;
for(it2=m_cbks.begin();it2!=m_cbks.end();) {
if(cbk==(*it2)) {
it2 = m_cbks.erase(it2);
} else {
it2++;
}
}
}
}
}}
}
bool inlib::sg::ui::has_work |
( |
const std::string & |
a_class | ) |
const [inline] |
Definition at line 50 of file ui.
{
std::vector<inlib::sg::cbk*>::const_iterator it;
for(it=m_cbks.begin();it!=m_cbks.end();++it) {
if((*it)->cast(a_class)) {
return true;
}
}
return false;
}
unsigned int inlib::sg::ui::num_cbks |
( |
| ) |
const [inline] |
Definition at line 168 of file ui.
ui& inlib::sg::ui::operator= |
( |
const ui & |
a_from | ) |
[inline, protected] |
Definition at line 25 of file ui.
{
m_to_exit = a_from.m_to_exit;
copy_cbks(a_from);
return *this;
}
bool inlib::sg::ui::remove_works |
( |
const std::string & |
a_class | ) |
[inline] |
Definition at line 37 of file ui.
{
std::vector<inlib::sg::cbk*>::iterator it;
for(it=m_cbks.begin();it!=m_cbks.end();) {
inlib::sg::cbk* cbk = *it;
if(cbk->cast(a_class)) {
it = m_cbks.erase(it);
delete cbk;
} else {
++it;
}
}
return true;
}
void inlib::sg::ui::set_to_exit |
( |
| ) |
[inline] |
Definition at line 32 of file ui.
virtual bool inlib::sg::ui::stop_works |
( |
| ) |
[inline, virtual] |
Definition at line 17 of file ui.
bool inlib::sg::ui::to_exit |
( |
| ) |
const [inline] |
Definition at line 31 of file ui.
virtual void inlib::sg::ui::win_render |
( |
| ) |
[pure virtual] |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/sg/ui