// The event handling function from ScrollView which we have to overwrite. // We handle CLICK, SELECTION, MENU and POPUP and throw away all other events. void SVPaint::Notify(const SVEvent* sv_event) { if (sv_event->type == SVET_CLICK) { ClickHandler(sv_event); } else if (sv_event->type == SVET_SELECTION) { SelectionHandler(sv_event); } else if (sv_event->type == SVET_MENU) { MenuBarHandler(sv_event); } else if (sv_event->type == SVET_POPUP) { PopupHandler(sv_event); } else {} //throw other events away }
SelectionHandler createSelectionHandler() { return SelectionHandler(Cmiss_rendition_create_selection_handler(id)); }