예제 #1
0
void ofxUISuperCanvas::touchDoubleTap(float x, float y, int id)
{
    if(rect->inside(x, y) && canvasTitle->isHit(x, y))
    {
        toggleMinified();
        return;
    }
    canvasTouchDoubleTap(x, y, id);
}
예제 #2
0
void ofxUISuperCanvas::touchDoubleTap(float x, float y, int id)
{
    if(rect->inside(x, y) && didHitHeaderWidgets(x, y))
    {
        if(isMinified())
        {
            setMinified(false);
            if(getTriggerType() & OFX_UI_TRIGGER_BEGIN)
            {
                triggerEvent(this);
            }
        }
        else
        {
            setMinified(true);
            if(getTriggerType() & OFX_UI_TRIGGER_END)
            {
                triggerEvent(this);
            }
        }
        return;
    }
    canvasTouchDoubleTap(x, y, id);
}