#include <Layer.h>
Inheritance diagram for Teddy::PhysicalComponents::Layer:
Public Methods | |
Layer (std::string name, View *view) | |
Constructor. More... | |
void | update (View *view) |
Set View. More... | |
virtual Area * | getHit (const Vector2 &pos) |
Area Input Interface - Get Hit Area, NULL if none. More... | |
virtual void | drawLayer () |
Draw area recursively - draw all areas in layer. More... | |
virtual void | drawSelf () |
Draw Layer Self; draw Projection component. More... | |
virtual void | place () |
Area Layout Interface. More... | |
void | addProjection (Projection *p) |
Set Projection. More... | |
Protected Attributes | |
list< Projection * > | projs |
Layer is link between View and Area. To add Area to View, there must be Layer between.
Views display Layers. Each Layer may contain a number of Areas.
Definition at line 53 of file Layer.h.
|
Constructor.
Definition at line 38 of file Layer.cpp. References Teddy::SysSupport::dmsg, Teddy::PhysicalComponents::Area::drawing_ordering, IntVector2, Teddy::SysSupport::M_WM, Teddy::PhysicalComponents::Area::parent, Teddy::PhysicalComponents::Area::post_self, Rect, Teddy::PhysicalComponents::Area::rect, Teddy::PhysicalComponents::Area::size, and Teddy::Graphics::ViewClient::view. |
|
Set Projection.
Definition at line 134 of file Layer.cpp. References Teddy::PhysicalComponents::Area::insert, and projs. |
|
Draw area recursively - draw all areas in layer.
Definition at line 167 of file Layer.cpp. References Teddy::PhysicalComponents::Area::Area, Teddy::PhysicalComponents::Area::areas, Teddy::SysSupport::dmsg, drawSelf, Teddy::MixIn::Named::getName, Teddy::SysSupport::M_WM, Teddy::MixIn::Named::name, Teddy::PhysicalComponents::Area::size, and Teddy::Graphics::ViewClient::view. |
|
Draw Layer Self; draw Projection component.
Reimplemented from Teddy::PhysicalComponents::Area. Definition at line 125 of file Layer.cpp. References projs. Referenced by drawLayer. |
|
Area Input Interface - Get Hit Area, NULL if none.
Reimplemented from Teddy::PhysicalComponents::Area. Definition at line 52 of file Layer.cpp. References Teddy::PhysicalComponents::Area::Area, Teddy::PhysicalComponents::Area::areas, Teddy::SysSupport::dmsg, Teddy::PhysicalComponents::Area::event_ordering, Teddy::MixIn::Named::getName, Teddy::SysSupport::M_WME, Teddy::MixIn::Named::name, Teddy::PhysicalComponents::Area::post_self, Teddy::PhysicalComponents::Area::pre_self, projs, and Teddy::PhysicalComponents::Area::rect. |
|
Area Layout Interface.
Definition at line 144 of file Layer.cpp. References Teddy::PhysicalComponents::Area::areas, projs, and Teddy::PhysicalComponents::Area::rect. Referenced by update. |
|
Set View.
Definition at line 112 of file Layer.cpp. References Teddy::SysSupport::dmsg, IntVector2, Teddy::SysSupport::M_WML, place, Rect, Teddy::PhysicalComponents::Area::rect, Teddy::PhysicalComponents::Area::size, and Teddy::Graphics::ViewClient::view. |
|
Definition at line 70 of file Layer.h. Referenced by addProjection, drawSelf, getHit, and place. |