<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Cairo for Symbian OSSymbian繪圖庫

          聯(lián)合創(chuàng)作 · 2023-09-25 06:02

          Cairo for Symbian OS 是繪圖庫 CairoSymbian 操作系統(tǒng)上的移植版本。

          示例代碼:

          // 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);
              }

          瀏覽 17
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  91久久综合 | 国产乱伦无码高清 | 男女直接拍拍 | 色色亚洲婷婷 | 午夜激情网 |