MCPcopy Create free account
hub / github.com/DISTRHO/DPF / giveKeyboardEventForSubWidgets

Method giveKeyboardEventForSubWidgets

dgl/src/WidgetPrivateData.cpp:75–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73// -----------------------------------------------------------------------
74
75bool Widget::PrivateData::giveKeyboardEventForSubWidgets(const KeyboardEvent& ev)
76{
77 if (! visible)
78 return false;
79 if (subWidgets.size() == 0)
80 return false;
81
82 FOR_EACH_SUBWIDGET_INV(rit)
83 {
84 SubWidget* const widget(*rit);
85
86 if (widget->isVisible() && widget->onKeyboard(ev))
87 return true;
88 }
89
90 return false;
91}
92
93bool Widget::PrivateData::giveCharacterInputEventForSubWidgets(const CharacterInputEvent& ev)
94{

Callers 2

keyboardEventMethod · 0.80
onKeyboardMethod · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected