Changeset 266 for trunk/src/gui


Ignore:
Timestamp:
06/19/14 03:49:49 (11 years ago)
Author:
epyon
Message:
  • decoupling - uid_store independent of nv::object
  • decoupling - nv::object no longer linked with lua in any way
  • decoupling - gui::element related object methods moved to element
  • uid_store can operate on void* or specialized base class
  • root class no longer carries uid store nor lua state (will be removed later)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/gui_element.cc

    r257 r266  
    8181}
    8282
     83
     84bool element::move_to_top( element* child )
     85{
     86        list::iterator it = std::find( m_children.begin(), m_children.end(), (object*)child );
     87        if ( it != m_children.end() )
     88        {
     89                m_children.erase( it );
     90                m_children.push_back( child );
     91                return true;
     92        }       
     93        return false;
     94}
     95
     96bool element::move_to_bottom( element* child )
     97{
     98        list::iterator it = std::find( m_children.begin(), m_children.end(), (object*)child );
     99        if ( it != m_children.end() )
     100        {
     101                m_children.erase( it );
     102                m_children.push_front( child );
     103                return true;
     104        }       
     105        return false;
     106}
     107
    83108element::~element()
    84109{
Note: See TracChangeset for help on using the changeset viewer.