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

网站备案作用申请网站多少钱

网站备案作用,申请网站多少钱,网站让女友做网站模特,肇庆做网站设计公司在创建应用时#xff0c;您可能需要TouchGFX中没有包含的控件。在创建应用时#xff0c;您可能需要TouchGFX中没有包含的控件。但有时此法并不够用#xff0c;当您需要全面控制帧缓冲时#xff0c;您需要使用自定义控件法。 TouchGFX Designer目前不支持自定义控件的创建。…在创建应用时您可能需要TouchGFX中没有包含的控件。在创建应用时您可能需要TouchGFX中没有包含的控件。但有时此法并不够用当您需要全面控制帧缓冲时您需要使用自定义控件法。 TouchGFX Designer目前不支持自定义控件的创建。 因此您将需要手动写入自定义控件的代码然后在视图的用户代码部分插入控件。 示例为自定义一个二维码控件 #ifndef QR_CODE_HPP #define QR_CODE_HPP #include touchgfx/hal/Types.hppclass 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.hbool QRCode::at(uint16_t x, uint16_t y) const {srand(x*123456y*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.hppclass 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.hppQRCodeWidget::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.hppscreenView::screenView() {}void screenView::setupScreen() {screenViewBase::setupScreen();myQRCodeWidget.setScale(10);myQRCodeWidget.setQRCode(myQRCode);add(myQRCodeWidget); }void screenView::tearDownScreen() {screenViewBase::tearDownScreen(); } 运行模拟器显示效果如下
http://www.hkea.cn/news/14347398/

相关文章:

  • 长治市城乡建设局网站智能云建站
  • 湖南企业建网站中企动力做的网站好吗
  • 网站开发有几个阶段美团网站开发形式
  • 长沙网站建设工作室重庆有专业做网站的吗
  • 学网站开发工作好找吗做公司的网站有哪些
  • 网站建设 协议书信阳做网站 汉狮网络
  • 收到网站代码后怎么做怎么建设一个购物网站
  • 怎么给企业制作网站免费的编程自学软件
  • 灵感中心素材网站海口网站网站建设
  • 淘宝有WordPress网站搭建吗iis7.5怎么做网站
  • 网站上的动态图怎么做网店装修的意义
  • 亚马逊企业网站建设大中小网站的区分
  • 企业网页与网站区别iis更改默认网站
  • 重庆企业网站制作哪家好全面的网站建设
  • 百度推广网站一年多少钱wordpress切换背景
  • 网站建设制作设计推广男男床做第一次视频网站
  • 江苏安宜建设工程有限公司网站做58同城网站花了多少钱
  • 2018年靖边建设项目招投标网站福清营销型网站建设方案
  • 网站做外链怎么样crm系统功能模块
  • 建立网站的英文php招聘网站建设
  • wordpress 建站视频网站多服务器建设
  • 从化市网站建设互联网门户是什么意思
  • 教育类网站如何做国家企业信用公示系统官方网站
  • 关于网站建设实验报告wordpress如何发表新文章
  • 公司网站建设找哪家wordpress 敏感字
  • 中山网站建设制作 .超凡科技wordpress jquery插件
  • 做那个免费视频网站营销型网站公司名称
  • 怎样自己做刷赞网站wordpress调用oss
  • 南宁住房和城乡建设部网站成都中方互动科技有限公司
  • 上线了建站价格为什么做电商网站