mirror of https://github.com/axmolengine/axmol.git
20 lines
566 B
C++
20 lines
566 B
C++
#include "CustomTableViewCell.h"
|
|
|
|
USING_NS_CC;
|
|
|
|
void CustomTableViewCell::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags)
|
|
{
|
|
TableViewCell::draw(renderer, transform, flags);
|
|
// draw bounding box
|
|
// auto pos = getPosition();
|
|
// auto size = Size(178, 200);
|
|
// Vec2 vertices[4]={
|
|
// Vec2(pos.x+1, pos.y+1),
|
|
// Vec2(pos.x+size.width-1, pos.y+1),
|
|
// Vec2(pos.x+size.width-1, pos.y+size.height-1),
|
|
// Vec2(pos.x+1, pos.y+size.height-1),
|
|
// };
|
|
// DrawPrimitives::drawColor4B(0, 0, 255, 255);
|
|
// DrawPrimitives::drawPoly(vertices, 4, true);
|
|
}
|