1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        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
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        評(píng)論
        圖片
        表情
        推薦
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            粉嫩av无码一区二区三区免费大全 | 军人高辣h文乱乳 | 国产精品久久久久久久妇女 | 九九热6 国产视频3 | 久艹人人艹视频 | 成人大香蕉电影 | 成人A片在线免费观看 | 国产在线小视频 | 操操操无码 | 国产精品丝袜久久久久久不卡 |