MCPcopy Create free account
hub / github.com/axmolengine/axmol / __initCursor

Method __initCursor

core/ui/UITextFieldEx.cpp:888–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888void 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
902void TextFieldEx::__showCursor(void)
903{

Callers

nothing calls this directly

Calls 6

engine_inj_create_lumpFunction · 0.85
Color4BFunction · 0.85
PointClass · 0.50
addChildMethod · 0.45
setPositionMethod · 0.45
getContentSizeMethod · 0.45

Tested by

no test coverage detected