Example #1
0
File: Window.cpp Project: A600/xbmc
    Control* Window::getFocus() throw (WindowException)
    {
      TRACE;
      CSingleLock lock(g_graphicsContext);

      int iControlId = ref(window)->GetFocusedControlID();
      if(iControlId == -1)
        throw WindowException("No control in this window has focus");
      lock.Leave();
      return GetControlById(iControlId);
    }
Example #2
0
    Control* Window::getFocus()
    {
      XBMC_TRACE;
      SingleLockWithDelayGuard gslock(g_graphicsContext,languageHook);

      int iControlId = ref(window)->GetFocusedControlID();
      if(iControlId == -1)
        throw WindowException("No control in this window has focus");
      // Sine I'm already holding the lock theres no reason to give it to GetFocusedControlID
      return GetControlById(iControlId,NULL);
    }
Example #3
0
File: Window.cpp Project: A600/xbmc
 Control* Window::getControl(int iControlId) throw (WindowException)
 {
   TRACE;
   return GetControlById(iControlId);
 }
Example #4
0
 Control* Window::getControl(int iControlId)
 {
   XBMC_TRACE;
   DelayedCallGuard dg(languageHook);
   return GetControlById(iControlId,&g_graphicsContext);
 }