28 #ifndef _NANO_OBJECT_H_ 29 #define _NANO_OBJECT_H_ 255 return static_cast<NanoObject<T> *
>(prev ? prev->m_next : m_first);
326 while ( p && p != &
object )
344 object.m_next =
nullptr;
345 object.setTiler(this->
m_tiler);
352 getPrev()->
m_next = &object;
368 object.m_next = m_first;
369 object.m_tiler = this->
m_tiler;
381 if ( m_first ==
nullptr )
384 else if ( &
object == m_first )
387 m_first =
object.m_next;
388 object.m_next =
nullptr;
389 object.m_tiler =
nullptr;
396 if ( p->
m_next == &
object )
399 p->
m_next =
object.m_next;
400 object.m_next =
nullptr;
401 object.m_tiler =
nullptr;
NanoObject< T > * getNext(NanoObject< T > *prev=nullptr)
bool has(NanoObject< T > &object)
void moveBy(const NanoPoint &p)
struct _NanoPoint NanoPoint
T * m_tiler
Active tiler, assigned to the NanoEngineObject.
void setSize(const NanoPoint &size)
const NanoPoint bottom() const
NanoObject(const NanoPoint &pos, const NanoPoint &size)
const NanoRect & getRect() const
const NanoPoint right() const
const NanoPoint left() const
const NanoPoint & getPosition() const
const NanoPoint top() const
void insert(NanoObject< T > &object)
void resize(const NanoPoint &size)
struct _NanoRect NanoRect
void moveTo(const NanoPoint &p)
NanoObject< T > * getPrev(NanoObject< T > *curr=nullptr)
NanoObject(const NanoPoint &pos)
void add(NanoObject< T > &object)
NanoEngineObject< T > * m_next
Next NanoEngineObject in the list.
const NanoPoint center() const
void setPos(const NanoPoint &p)