javauis/lcdui_akn/lcdui/inc/CMIDCanvas.h
branchRCL_3
changeset 77 7cee158cb8cd
parent 66 2455ef1f5bbc
child 83 26b2b12093af
equal deleted inserted replaced
71:d5e927d5853b 77:7cee158cb8cd
   476      * Container will not allow painting in this region.
   476      * Container will not allow painting in this region.
   477      *
   477      *
   478      * @since  S60 v3.0
   478      * @since  S60 v3.0
   479       * @param  aRect Content bounds.
   479       * @param  aRect Content bounds.
   480      */
   480      */
   481     void MdcAddContentBounds(const TRect& aRect);
   481     void MdcAddMMAPIContentBounds(const TRect& aRect);
   482 
   482 
   483     /**
   483     /**
   484      * From MDirectContainer.
   484      * From MDirectContainer.
   485      * Removes one content bound from this direct container.
   485      * Removes one content bound from this direct container.
   486      *
   486      *
   487      * @since  S60 v3.2
   487      * @since  S60 v3.2
   488      * @param  aRect Content bound to be removed.
   488      * @param  aRect Content bound to be removed.
   489      */
   489      */
   490     void MdcRemoveContentBounds(const TRect& aRect);
   490     void MdcRemoveMMAPIContentBounds(const TRect& aRect);
   491 
   491 
   492     /**
   492     /**
   493      * From MDirectContainer.
   493      * From MDirectContainer.
   494      * Get rect of a window on which content of this direct container can be
   494      * Get rect of a window on which content of this direct container can be
   495      * displayed.
   495      * displayed.
  1209 
  1209 
  1210     /**
  1210     /**
  1211      * @see MMIDCanvas::MidletExiting()
  1211      * @see MMIDCanvas::MidletExiting()
  1212      */
  1212      */
  1213     void MidletExiting();
  1213     void MidletExiting();
       
  1214 
       
  1215     /**
       
  1216      * @see MMIDCanvas::IsVideoOverlayActive()
       
  1217      */
       
  1218     TBool IsVideoOverlayActive();
  1214 private:
  1219 private:
  1215     /**
  1220     /**
  1216      * Blits pbuffer surface scaled to window surface
  1221      * Blits pbuffer surface scaled to window surface
  1217      * @since S60 9.2
  1222      * @since S60 9.2
  1218      */
  1223      */
  1398      * Posts forced paint event to Java side. Forced paint causes Canvas.paint() to be
  1403      * Posts forced paint event to Java side. Forced paint causes Canvas.paint() to be
  1399      * called, event if Displayable.isShown() would return false in Java. See also Canvas.java.
  1404      * called, event if Displayable.isShown() would return false in Java. See also Canvas.java.
  1400      * @since S60 9.2
  1405      * @since S60 9.2
  1401      */
  1406      */
  1402     void PostForcedPaint();
  1407     void PostForcedPaint();
       
  1408     
       
  1409     /**
       
  1410      * Used only in video overlay case.
       
  1411      * Sets frame buffer alpha channel back to 0xFF after MMAPI content area have been
       
  1412      * removed from canvas. Must be called only in LCDUI thread.
       
  1413      * @since S60 9.2
       
  1414      */
       
  1415     void CheckDirectContentUpdated();
  1403 #endif // RD_JAVA_NGA_ENABLED
  1416 #endif // RD_JAVA_NGA_ENABLED
  1404 
  1417 
  1405 private: // data
  1418 private: // data
  1406 
  1419 
  1407     /** CMIDCanvas flags datatype */
  1420     /** CMIDCanvas flags datatype */
  1762      * Own.
  1775      * Own.
  1763      */
  1776      */
  1764     TUint8* iTexturePixels;
  1777     TUint8* iTexturePixels;
  1765 
  1778 
  1766     /**
  1779     /**
  1767      * OpenGL coordinate arrays used fo r rendering filled rectangles
  1780      * OpenGL coordinate arrays used for rendering filled rectangles
  1768      */
  1781      */
  1769     GLshort* iVertexArray;
  1782     GLshort* iVertexArray;
  1770     GLubyte* iTriangleStrip;
  1783     GLubyte* iTriangleStrip;
  1771 
  1784 
  1772     /**
  1785     /**
  1773      * ETrue, when midlet is exiting and this canvas is the current displayable
  1786      * ETrue, when midlet is exiting and this canvas is the current displayable
  1774      */
  1787      */
  1775     TBool iExiting;
  1788     TBool iExiting;
       
  1789     
       
  1790     /**
       
  1791      * Indicates if MMAPI content areas have been updated.
       
  1792      * This flag is accessed from MMAPI and LCDUI threads.
       
  1793      */
       
  1794     TBool iMMAPIAreaUpdated;
       
  1795 
  1776 #endif // RD_JAVA_NGA_ENABLED
  1796 #endif // RD_JAVA_NGA_ENABLED
  1777 
  1797 
  1778     /**
  1798     /**
  1779      * If dragging was started (by pointer down) inside the canvas,
  1799      * If dragging was started (by pointer down) inside the canvas,
  1780      * all drag events and release event should go to canvas
  1800      * all drag events and release event should go to canvas