예제 #1
0
//-----------------------------------------------------------------------------
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;
}
예제 #2
0
//-----------------------------------------------------------------------------
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;
}