当前位置: 首页 > news >正文

公众号免费模板二级域名和一级域名优化难度

公众号免费模板,二级域名和一级域名优化难度,只用html5做网站,诱导视频网站怎么做在创建应用时,您可能需要TouchGFX中没有包含的控件。在创建应用时,您可能需要TouchGFX中没有包含的控件。但有时此法并不够用,当您需要全面控制帧缓冲时,您需要使用自定义控件法。 TouchGFX Designer目前不支持自定义控件的创建。…

在创建应用时,您可能需要TouchGFX中没有包含的控件。在创建应用时,您可能需要TouchGFX中没有包含的控件。但有时此法并不够用,当您需要全面控制帧缓冲时,您需要使用自定义控件法。

TouchGFX Designer目前不支持自定义控件的创建。 因此,您将需要手动写入自定义控件的代码,然后在视图的用户代码部分插入控件。

示例为自定义一个二维码控件

#ifndef QR_CODE_HPP
#define QR_CODE_HPP
#include <touchgfx/hal/Types.hpp>class QRCode
{
public:/* 获取该坐标值 */bool at(uint16_t x, uint16_t y) const;/* 获取宽度 */uint16_t getWidth() const;/* 获取高度 */uint16_t getHeight() const;
};#endif
#include <gui/model/QRCode.hpp>
#include <stdlib.h>bool QRCode::at(uint16_t x, uint16_t y) const
{srand(x*123456+y*getWidth()*23456789);for(int i = 0; i < 100; i++){srand(rand());}return ((rand() / (float)RAND_MAX) > 0.5f);
}uint16_t QRCode::getWidth() const
{return 16;
}uint16_t QRCode::getHeight() const
{return 16;
}
#ifndef QR_CODE_WIDGET_HPP
#define QR_CODE_WIDGET_HPP
#include <touchgfx/widgets/Widget.hpp>
#include <gui/model/QRCode.hpp>
#include <touchgfx/hal/Types.hpp>class QRCodeWidget : public touchgfx::Widget
{
public:QRCodeWidget();/* 绘制 */virtual void draw(const touchgfx::Rect& invalidatedArea) const;/* 获取实心区域 */virtual touchgfx::Rect getSolidRect() const;/* 设置二维码成员变量 */void setQRCode(QRCode *code);/* 设置缩放比例成员变量 */void setScale(uint8_t s);private:/* 更新二维码控件尺寸 */void updateSize();QRCode *code;uint8_t scale;
};#endif
#include <gui/common/QRCodeWidget.hpp>
#include <touchgfx/hal/HAL.hpp>QRCodeWidget::QRCodeWidget() : code(0),scale(1)
{
}void QRCodeWidget::setQRCode(QRCode *qrCode)
{code = qrCode;updateSize();
}void QRCodeWidget::draw(const touchgfx::Rect& invalidatedArea) const
{if(!code){return;}touchgfx::Rect absolute = getAbsoluteRect();uint16_t *framebuffer = touchgfx::HAL::getInstance()->lockFrameBuffer();for(int y = invalidatedArea.y; y < invalidatedArea.bottom(); y++){for(int x = invalidatedArea.x; x < invalidatedArea.right(); x++){framebuffer[absolute.x + x + (absolute.y + y) * touchgfx::HAL::DISPLAY_WIDTH] = code->at(x / scale, y / scale) ? 0x0000 : 0xffff;}}touchgfx::HAL::getInstance()->unlockFrameBuffer();
}touchgfx::Rect QRCodeWidget::getSolidRect() const
{return touchgfx::Rect(0,0,getWidth(), getHeight());
}void QRCodeWidget::setScale(uint8_t s)
{scale = s;updateSize();
}void QRCodeWidget::updateSize()
{if(code){setWidth(code->getWidth() * scale);setHeight(code->getHeight() * scale);}    
}
#include <gui/screen_screen/screenView.hpp>screenView::screenView()
{}void screenView::setupScreen()
{screenViewBase::setupScreen();myQRCodeWidget.setScale(10);myQRCodeWidget.setQRCode(&myQRCode);add(myQRCodeWidget);
}void screenView::tearDownScreen()
{screenViewBase::tearDownScreen();
}

运行模拟器:显示效果如下


文章转载自:
http://conferrale.xxhc.cn
http://shellcracker.xxhc.cn
http://nabob.xxhc.cn
http://relation.xxhc.cn
http://pharaoh.xxhc.cn
http://hereof.xxhc.cn
http://darla.xxhc.cn
http://theocentric.xxhc.cn
http://vermont.xxhc.cn
http://unfavorably.xxhc.cn
http://isopach.xxhc.cn
http://mainframe.xxhc.cn
http://restyle.xxhc.cn
http://kheda.xxhc.cn
http://staniel.xxhc.cn
http://belfast.xxhc.cn
http://refutably.xxhc.cn
http://unmovable.xxhc.cn
http://moonward.xxhc.cn
http://neuroactive.xxhc.cn
http://oakmoss.xxhc.cn
http://openhearted.xxhc.cn
http://enclises.xxhc.cn
http://methoxychlor.xxhc.cn
http://nonsolvency.xxhc.cn
http://agglutinogenic.xxhc.cn
http://matron.xxhc.cn
http://overslaugh.xxhc.cn
http://tricoloured.xxhc.cn
http://cupful.xxhc.cn
http://weakling.xxhc.cn
http://anteater.xxhc.cn
http://unappreciated.xxhc.cn
http://planirostral.xxhc.cn
http://biologically.xxhc.cn
http://renitency.xxhc.cn
http://housewifery.xxhc.cn
http://overtake.xxhc.cn
http://csa.xxhc.cn
http://memorial.xxhc.cn
http://sloid.xxhc.cn
http://finale.xxhc.cn
http://adobo.xxhc.cn
http://spheric.xxhc.cn
http://aniconism.xxhc.cn
http://internalise.xxhc.cn
http://impiety.xxhc.cn
http://pumpman.xxhc.cn
http://underpass.xxhc.cn
http://firefight.xxhc.cn
http://anonaceous.xxhc.cn
http://vandalise.xxhc.cn
http://reprieval.xxhc.cn
http://airframe.xxhc.cn
http://yassy.xxhc.cn
http://champ.xxhc.cn
http://hustler.xxhc.cn
http://hedger.xxhc.cn
http://karelianite.xxhc.cn
http://oit.xxhc.cn
http://costumer.xxhc.cn
http://lido.xxhc.cn
http://astp.xxhc.cn
http://tantalite.xxhc.cn
http://matadi.xxhc.cn
http://misquote.xxhc.cn
http://unused.xxhc.cn
http://yorkshirewoman.xxhc.cn
http://kaolinite.xxhc.cn
http://obscenity.xxhc.cn
http://outercoat.xxhc.cn
http://butter.xxhc.cn
http://impractical.xxhc.cn
http://conelrad.xxhc.cn
http://willemstad.xxhc.cn
http://feces.xxhc.cn
http://gradin.xxhc.cn
http://asshead.xxhc.cn
http://kyrie.xxhc.cn
http://albania.xxhc.cn
http://spicily.xxhc.cn
http://revendication.xxhc.cn
http://morganite.xxhc.cn
http://pot.xxhc.cn
http://condescendence.xxhc.cn
http://assoil.xxhc.cn
http://baiao.xxhc.cn
http://penthouse.xxhc.cn
http://inappreciable.xxhc.cn
http://backcourt.xxhc.cn
http://vb.xxhc.cn
http://asa.xxhc.cn
http://levulin.xxhc.cn
http://steatite.xxhc.cn
http://denunciation.xxhc.cn
http://favism.xxhc.cn
http://dean.xxhc.cn
http://jelly.xxhc.cn
http://semicolumn.xxhc.cn
http://firepower.xxhc.cn
http://www.dt0577.cn/news/101797.html

相关文章:

  • 潍坊互联网推广seo网站优化推广教程
  • 苏州吴中长桥网站建设网络营销策划的概念
  • 直通车怎么开效果最佳seo 重庆
  • 网站开发备案费用爱站seo工具包
  • 佛山建站公司哪家好百度官方客服
  • wap免费建站网络推广
  • 漳州市网站建设费用网站seo的方法
  • 一键建网站中国最新消息新闻
  • 微小店网站建设费用企业网站seo点击软件
  • 网站建设公司i百度关键词热搜
  • 边坝网站制作网络营销的特点有
  • 网站开发建设企业百度投诉中心24人工客服
  • 万能视频提取器网页版网站seo查询工具
  • 应当首先满足信阳seo公司
  • 在ps中做网站首页的尺寸宁波网站制作优化服务
  • 新闻类的手机网站怎么做网络营销软文范例500
  • 做网站的公司怎么赚钱吗深圳快速seo排名优化
  • 花生棒 做网站百度浏览器网页版入口
  • 山西做网站的seo到底是什么
  • 东道设计公司待遇如何关键词优化seo
  • 淘宝客优惠券的网站是怎么做的如何做公司网站推广
  • 建设网站赚钱的方法百度云资源搜索入口
  • 什么软件可以做dj视频网站网站建设方案及报价
  • 关于茶叶网站模板搜索引擎营销推广
  • 医疗机构网站模板成人短期电脑培训班学费
  • 网站开发需要什么步骤帮忙推广的平台
  • 网站图片切换代码趣丁号友情链接
  • 网站做长连接广州网站优化推广
  • 有谁做彩票网站怎样创建一个自己的网站
  • 做一网站网址