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

南昌网站建设设计淘客网站难做吗

南昌网站建设设计,淘客网站难做吗,做店铺首页的网站,网站建设属于ITDebugPrinter类是一种在显示屏上打印调试消息的简单方法,无需向屏幕添加控件。 在使用DebugPrinter之前,需要分配一个实例并将其传递给Application类,且DebugPrinter实例必须兼容所使用的LCD类。 该表列出了DebugPrinter类名称: …

DebugPrinter类是一种在显示屏上打印调试消息的简单方法,无需向屏幕添加控件。

在使用DebugPrinter之前,需要分配一个实例并将其传递给Application类,且DebugPrinter实例必须兼容所使用的LCD类。 该表列出了DebugPrinter类名称:

LCD 类DebugPrinter类
LCD1bppLCD1DebugPrinter
LCD2bppLCD2DebugPrinter
LCD4bppLCD4DebugPrinter
LCD8bpp_ARGB2222LCD8ARGB2222DebugPrinter
LCD8bpp_ABGR2222LCD8ABGR2222DebugPrinter
LCD8bpp_RGBA2222LCD8RGBA2222DebugPrinter
LCD8bpp_BGRA2222LCD8BGRA2222DebugPrinter
LCD16bppLCD16DebugPrinter
LCD16bppSerialFlashLCD16DebugPrinter
LCD24bppLCD24DebugPrinter
LCD32bppLCD32DebugPrinter

 

例如,这可以在FrontendApplication的构造函数中实现。

#include <gui/common/FrontendApplication.hpp>
#include <touchgfx/lcd/LCD16DebugPrinter.hpp>LCD16DebugPrinter lcd16DebugPrinter;FrontendApplication::FrontendApplication(Model& m, FrontendHeap& heap): FrontendApplicationBase(m, heap)
{lcd16DebugPrinter.setPosition(0, 0, 240, 40);lcd16DebugPrinter.setScale(3);lcd16DebugPrinter.setColor(0x00); //blackApplication::setDebugPrinter(&lcd16DebugPrinter);
}

此时,我们已经将DebugPrinter配置为左上角240 x 40像素写入。 现在可以编写程序打印字符串:

#ifndef SCREENVIEW_HPP
#define SCREENVIEW_HPP#include <gui_generated/screen_screen/screenViewBase.hpp>
#include <gui/screen_screen/screenPresenter.hpp>class screenView : public screenViewBase
{
public:screenView();virtual ~screenView() {}virtual void setupScreen();virtual void tearDownScreen();virtual void handleTickEvent();
protected:private:int count;char debugStringBuffer[30];
};#endif // SCREENVIEW_HPP
#include <gui/screen_screen/screenView.hpp>
#include <stdio.h>screenView::screenView()
{count = 0;
}void screenView::setupScreen()
{screenViewBase::setupScreen();
}void screenView::tearDownScreen()
{screenViewBase::tearDownScreen();
}void screenView::handleTickEvent()
{count++;snprintf(debugStringBuffer, sizeof(debugStringBuffer), "tick: %d", count);Application::getDebugPrinter()->setString(debugStringBuffer);Application::invalidateDebugRegion();	
}

其实不必在应用程序中多次调用DebugPrinter::setString。 只需要更改缓存区的内容,但是请调用invalidateDebugRegion,这将使DebugPrinter绘制新内容。 

 

http://www.yayakq.cn/news/681130/

相关文章:

  • 做设计必须知道的几个网站吗阆中 网站建设
  • 网站建设a2345青岛做家纺的公司网站
  • 网站开发和软件开发房产网站建设接单
  • 如何做贷款网站河北seo人员
  • 网站项目设计流程案例爱站网是干嘛的
  • 西城企业网站建设东莞网站推广策划
  • 大连企业做网站公司排名排名网站优化培训
  • 茂名seo站内优化wordpress 条件筛选
  • 互联网招聘网站微信管理助手
  • 为什么网站建设比商场要贵库存管理软件单机版
  • 虫部落导航网站怎么做酒店 wordpress
  • 正能量网站免费进入无需下载有没有做生鲜配送的网站
  • 企业网站源码英文四川长昕建设工程有限公司网站
  • 药品招商网站大全信用渭南网站建设
  • 微网站如何建设东营信息港
  • 注册网站多少钱一年WordPress代码显示器
  • 怎么做足球网站做简历网站 知乎
  • 宿松网站建设推荐秒搜科技普通网站成微网站开发
  • 如何设置网站描述校园局域网站建设费用
  • 金华网站建设行业专业网站制作仪表多少钱
  • 绿色食品网站模板.htm有哪些vue做的网站
  • 落实网站建设管理南阳+网站建设
  • 怎么推广自己的网站链接摄影师网站推荐
  • 网站架构师的工作内容微信怎么建立小程序
  • 广州网站定制商家有哪些网站可以做淘宝客
  • 电网站建设用地赔偿在线网页视频提取
  • 哪些网站是用php编写的用vue做网站
  • 网站建设万首先金手指14网站做302重定向会怎么样
  • 网站开发源代码广告字制作哪家好
  • 百度上的网站怎么做办公室装修设计图片