- 授权协议: LGPL
- 开发语言: C/C++
- 操作系统: Symbian
- 软件首页: http://code.google.com/p/cairo-for-symbian/
软件介绍
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);
}
51单片机应用从零开始
杨欣、王玉凤、刘湘黔 / 清华大学 / 2008-1 / 39.80元
《51单片机应用与实践丛书•51单片机应用从零开始》在分析初学者认知规律的基础上,结合国内重点大学一线教师的教学经验以及借鉴国外经典教材的写作手法,对51单片机的应用基础知识进行系统而翔实的介绍。读者学习每一章之后,"实例点拨"环节除了可以巩固所学的内容外,还开辟了单片机应用的视野;再加上"器件介绍"环节,又充实了对单片机从基础到应用所需要的知识。8051单片机不仅是国内用得最多的单片机之一,同时......一起来看看 《51单片机应用从零开始》 这本书的介绍吧!
