| 886 | } |
| 887 | |
| 888 | void TextFieldEx::__initCursor(int height, int width, const Color4B& color) |
| 889 | { |
| 890 | _cursor = engine_inj_create_lump(Color4B(color), height, width); |
| 891 | |
| 892 | this->addChild(_cursor); |
| 893 | |
| 894 | _cursor->setPosition(Point(0, this->getContentSize().height / 2)); |
| 895 | // nodes_layout::setNodeLB(_cursor, ax::Point::ZERO); |
| 896 | |
| 897 | __hideCursor(); |
| 898 | |
| 899 | __updateCursorPosition(); |
| 900 | } |
| 901 | |
| 902 | void TextFieldEx::__showCursor(void) |
| 903 | { |
nothing calls this directly
no test coverage detected