2012-09-09 22:34:32 +08:00
|
|
|
#include "CustomTableViewCell.h"
|
|
|
|
|
|
|
|
USING_NS_CC;
|
|
|
|
|
2014-04-08 22:07:35 +08:00
|
|
|
void CustomTableViewCell::draw(Renderer *renderer, const Matrix &transform, bool transformUpdated)
|
2012-09-09 22:34:32 +08:00
|
|
|
{
|
2014-03-01 08:10:48 +08:00
|
|
|
TableViewCell::draw(renderer, transform, transformUpdated);
|
2012-09-09 22:34:32 +08:00
|
|
|
// draw bounding box
|
2013-08-16 16:05:27 +08:00
|
|
|
// auto pos = getPosition();
|
|
|
|
// auto size = Size(178, 200);
|
2014-04-15 18:23:40 +08:00
|
|
|
// Vector2 vertices[4]={
|
|
|
|
// Vector2(pos.x+1, pos.y+1),
|
|
|
|
// Vector2(pos.x+size.width-1, pos.y+1),
|
|
|
|
// Vector2(pos.x+size.width-1, pos.y+size.height-1),
|
|
|
|
// Vector2(pos.x+1, pos.y+size.height-1),
|
2012-09-09 22:34:32 +08:00
|
|
|
// };
|
2013-07-26 05:49:43 +08:00
|
|
|
// DrawPrimitives::drawColor4B(0, 0, 255, 255);
|
|
|
|
// DrawPrimitives::drawPoly(vertices, 4, true);
|
2012-09-09 22:34:32 +08:00
|
|
|
}
|