MCPcopy Create free account
hub / github.com/creatale/node-dv / window_wait

Function window_wait

deps/tesseract/cutil/callcpp.cpp:111–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109
110
111char window_wait(ScrollView* win) {
112 SVEvent* ev;
113 // Wait till an input or click event (all others are thrown away)
114 char ret = '\0';
115 SVEventType ev_type = SVET_ANY;
116 do {
117 ev = win->AwaitEvent(SVET_ANY);
118 ev_type = ev->type;
119 if (ev_type == SVET_INPUT)
120 ret = ev->parameter[0];
121 delete ev;
122 } while (ev_type != SVET_INPUT && ev_type != SVET_CLICK);
123 return ret;
124}
125#endif
126
127void reverse32(void *ptr) {

Callers 5

LearnWordMethod · 0.85
LearnPiecesMethod · 0.85
classify_blobMethod · 0.85
DisplaySegmentationMethod · 0.85
DisplayMethod · 0.85

Calls 1

AwaitEventMethod · 0.80

Tested by

no test coverage detected