28 #ifndef _NANO_OBJECT_H_ 29 #define _NANO_OBJECT_H_ 246 return static_cast<NanoObject<T>*
>(prev ? prev->m_next : m_first);
317 while (p && p != &
object)
335 object.m_next =
nullptr;
336 object.setTiler( this->
m_tiler );
343 getPrev()->
m_next = &object;
359 object.m_next = m_first;
360 object.m_tiler = this->
m_tiler;
372 if ( m_first ==
nullptr )
375 else if ( &
object == m_first )
378 m_first =
object.m_next;
379 object.m_next =
nullptr;
380 object.m_tiler =
nullptr;
387 if ( p->
m_next == &
object )
390 p->
m_next =
object.m_next;
391 object.m_next =
nullptr;
392 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)