MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / keyboardCaptureArea

Method keyboardCaptureArea

source/windowing/StarTextBoxWidget.cpp:275–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275Maybe<pair<RectI, int>> TextBoxWidget::keyboardCaptureArea() const {
276 if (active() && hasFocus()) {
277 return make_pair(screenBoundRect().scaled(context()->interfaceScale()), getCursorDrawOffset());
278 }
279 return {};
280}
281
282bool TextBoxWidget::sendEvent(InputEvent const& event) {
283 if (!hasFocus())

Callers

nothing calls this directly

Calls 2

scaledMethod · 0.80
interfaceScaleMethod · 0.45

Tested by

no test coverage detected