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

类别:编程语言 点击:0 评论:0 推荐:

[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。

 

本文地址:http://com.8s8s.com/it/it23695.htm