Definition at line 40 of file svpaint.cpp.
◆ SVPaint()
tesseract::SVPaint::SVPaint |
( |
const char * |
server_name | ) |
|
|
explicit |
Definition at line 188 of file svpaint.cpp.
188 {
189 window_ = new ScrollView("ScrollView Paint Example",
190 0, 0,
191 500, 500,
192 500, 500,
193 false,
194
195
196
197
198 server_name);
199
200
201 click_mode_ = 1;
202 drag_mode_ = 4;
203 has_start_point_ = false;
204
205
206
207 SVMenuNode *popup_menu = BuildPopupMenu();
208 popup_menu->BuildMenu(window_, false);
209
210 SVMenuNode *bar_menu = BuildMenuBar();
211 bar_menu->BuildMenu(window_, true);
212
213
214
217
218
219
221
222
223
224
226
227
228
229
231
232
233
234
235}
std::unique_ptr< SVEvent > AwaitEvent(SVEventType type)
void SetVisible(bool visible)
void AddEventHandler(SVEventHandler *listener)
Add an Event Listener to this ScrollView Window.
◆ Notify()
void tesseract::SVPaint::Notify |
( |
const SVEvent * |
sv_event | ) |
|
|
overridevirtual |
Reimplemented from tesseract::SVEventHandler.
Definition at line 173 of file svpaint.cpp.
173 {
175 ClickHandler(sv_event);
177 SelectionHandler(sv_event);
178 }
else if (sv_event->type ==
SVET_MENU) {
179 MenuBarHandler(sv_event);
181 PopupHandler(sv_event);
182 }
183
184}
The documentation for this class was generated from the following file:
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/svpaint.cpp