QT-EMBEDDED图形引擎体系结构源代码分析

[QT-EMBEDDED图形引擎体系结构源代码分析]

[tan.zhenhua]

图形引擎部分

       QGfx 封装了对FrameBuffer的绘图操作,是低级别的QPainter.

       QScreenCursor QScreen 上绘制鼠标光标等

       QScreen Qt/Embeded里封装了FrameBuffer的显示设备.

       在其继承体系中:

       QScreen à QLinuxFbScreen àaccelerated screens,QTransformedScreen àQVfbScreen   

       QScreenCursor àaccelerated cursor à QVfbCursor

       QGfx à RasterBase à Raster à accelerated driver àQGfxVfb àQGfxTransformedRaster

 

       目录结构:

                     Src/Kernel/qgfx_qws.h

                     Src/Kernel/qgfx_qws.cpp

                     Src/Kernel/qgfxlinuxfb_qws.h

                     Src/Kernel/qgfxlinuxfb_qws.cpp

                     Src/Kernel/qgfxmach64defs_qws.h

                     Src/Kernel/qgfxmach64_qws.cpp

                     Src/Kernel/qgfxmatroxdefs_qws.h 

                     Src/Kernel/qgfxmatrox_qws.cpp 

                     Src/Kernel/qgfxraster_qws.h

                     Src/Kernel/qgfxraster_qws.cpp

                     Src/Kernel/qgfxvoodoodefs_qws.h

                     Src/Kernel/qgfxvoodoo_qws.cpp

                     Src/Kernel/qgfxvnc_qws.h

                     Src/Kernel/qgfxvnc_qws.cpp

                     Src/Kernel/qgfxvga16_qws.cpp

                     Src/Kernel/qgfxvfb_qws.cpp

                     Src/Kernel/qgfxtransformed_qws.cpp

上层图形类 

       QPaintDeviceMetrics 描述paint device 的信息

       QPaintDevice 封装 paint device

       QPainter 封装绘图操作

       目录结构:

              Src/Kernel/qpaintdevicemetrics.h

              Src/Kernel/qpaintdevicemetrics.cpp

              Src/Kernel/qpaintdevice.h

              Src/Kernel/qpaintdevice_qws.cpp

              Src/Kernel/qpaintdevicedefs.h

              Src/Kernel/qpainter.h

              Src/Kernel/qpainter.cpp

              Src/Kernel/qpainter_p.h

              Src/Kernel/qpainter_qws.cpp

 

 

 

 

上层控件类

       QWidget类是所有用户界面对象的基类,而QWidget继承QPainterDevice

 

你可能感兴趣的:(AppFrames,QT平台)