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

Android编程权威指南(第3版)

Android编程权威指南(第3版)

比尔·菲利普斯 (Bill Phillips)、克里斯·斯图尔特 (Chris Stewart)、克莉丝汀·马西卡诺 (Kristin Marsicano) / 王明发 / 人民邮电出版社 / 2017-6 / 129.00元

Big Nerd Ranch 是美国一家专业的移动开发技术培训机构。本书主要以其Android 训练营教学课程为基础,融合了几位作者多年的心得体会,是一本完全面向实战的Android 编程权威指南。全书共36 章,详细介绍了8 个Android 应用的开发过程。通过这些精心设计的应用,读者可掌握很多重要的理论知识和开发技巧,获得宝贵的开发经验。 第3 版较之前版本增加了对数据绑定等新工具的介......一起来看看 《Android编程权威指南(第3版)》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具