vlc_linux/vlc-3.0.16/modules/gui/qt/components/controller.cpp
/**
 * Hidding fullscreen controller slowly
 * Linux: need composite manager
 * Windows: it is blinking, so it can be enabled by define TRASPARENCY
 */
Hidding fullscreen controller slowly
Linux: need composite manager
Windows: it is blinking, so it can be enabled by define TRASPARENCY
Hidding fullscreen controller slowly Linux : need composite manager Windows : it is blinking so it can be enabled by define TRASPARENCY
void FullscreenControllerWidget::slowHideFSC()
{
#if HAVE_TRANSPARENCY
    if( b_slow_hide_begin )
    {
        b_slow_hide_begin = false;
        p_slowHideTimer->stop();
        p_slowHideTimer->start( (int)( i_slow_hide_timeout / 2 / ( windowOpacity() * 100 ) ) );
    }
    else
    {
         if ( windowOpacity() > 0.0 )
         {
             setWindowOpacity( windowOpacity() - 0.02 );
         }
         if ( windowOpacity() <= 0.0 )
             p_slowHideTimer->stop();
    }
#endif
}
void FullscreenControllerWidget :: slowHideFSC ( ) { #if HAVE_TRANSPARENCY if ( b_slow_hide_begin ) { b_slow_hide_begin = false ; p_slowHideTimer -> stop ( ) ; p_slowHideTimer -> start ( ( int ) ( i_slow_hide_timeout / 2 / ( windowOpacity ( ) * 100 ) ) ) ; } else { if ( windowOpacity ( ) > 0.0 ) { setWindowOpacity ( windowOpacity ( ) - 0.02 ) ; } if ( windowOpacity ( ) <= 0.0 ) p_slowHideTimer -> stop ( ) ; } #endif }
Hidding fullscreen controller slowly
 Linux: need composite manager
 Windows: it is blinking, so it can be enabled by define TRASPARENCY
Hidding fullscreen controller slowly Linux : need composite manager Windows : it is blinking so it can be enabled by define TRASPARENCY
/* the last part of time divided to 100 pieces */ /* we should use 0.01 because of 100 pieces ^^^
                but than it cannt be done in time */