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

Method requestFocus

core/ui/UIWidget.cpp:1525–1533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1523}
1524
1525void Widget::requestFocus()
1526{
1527 if (this == _focusedWidget)
1528 {
1529 return;
1530 }
1531
1532 this->dispatchFocusEvent(_focusedWidget, this);
1533}
1534
1535void Widget::onFocusChange(Widget* widgetLostFocus, Widget* widgetGetFocus)
1536{

Callers 8

onKeyDownMethod · 0.80
handleMessageMethod · 0.80
setEditTextMethod · 0.80
onTouchEventMethod · 0.80
onEditorActionMethod · 0.80

Calls 1

dispatchFocusEventMethod · 0.95

Tested by

no test coverage detected