//----------------------------------------------------------------------------- bool PluginGUIEditor::onWheel (float distance) { if (frame) { CDrawContext context (frame, NULL, systemWindow); CPoint where; context.getMouseLocation (where); return frame->onWheel (&context, where, distance); } return false; }
//----------------------------------------------------------------------------- bool AEffGUIEditor::onWheel (float distance) { #if VSTGUI_ENABLE_DEPRECATED_METHODS if (frame) { CDrawContext* context = frame->createDrawContext (); CPoint where; context->getMouseLocation (where); long buttons = context->getMouseButtons (); bool result = frame->onWheel (where, distance, buttons); context->forget (); return result; } #endif return false; }