Symbian绘图库 Cairo for Symbian OS

码农软件 · 软件分类 · 手机开发包 · 2019-05-07 12:12:38

软件介绍

Cairo for Symbian OS 是绘图库 Cairo 在 Symbian 操作系统上的移植版本。

示例代码:

// CMyAppView derives from CCoeControl
//
void CMyAppView::ConstrucL(const TRect& aRect)
    {
    CreateWindowL();
    SetRect(aRect);
    ActivateL();

    iSurface = cairo_symbian_surface_create(&Window());
    iContext = cairo_create(iSurface);
    }

// implement CCoeControl::Draw method
//
void CMyAppView::Draw(const TRect&) const
    {
    // start drawing using Cairo here
    // please note that mixing Cairo and native rendering i.e. using CWindowGc API
    // is not supported and will produce undefined result
    ...
    cairo_t* cr = Context(); // shortcut to iContext
    cairo_set_source_rgb(cr, 1, 1, 1);
    cairo_paint(cr);
    ...
    }

// cleanup
//
CMyAppView::~CMyAppView()
    {
    ...
    cairo_destroy(iContext);
    cairo_surface_destroy(iSurface);
    }

本文地址:https://codercto.com/soft/d/5213.html

计算机网络

计算机网络

Andrew S. Tanenbaum / 潘爱民 / 清华大学出版社 / 2004-8-1 / 60.00元

《计算机网络(第4版)》全书按照网络协议模型(物理层、数据链路层、介质访问控制子层、网络层、传输层和应用层),自下而上系统地介绍了计算机网络的基本原理,并给出了大量实例。在讲述各网络层的同时,还融合进了近年来迅速发展起来的各种网络技术,如Internet、SONET、A DSL、CDMA、WLAN和蓝牙等。另外,针对当前计算机网络的发展现状以及计算机安全的重要性,本书用了一整章的篇幅对计算机安全进......一起来看看 《计算机网络》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

在线进制转换器
在线进制转换器

各进制数互转换器

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具