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

萍乡网站制作企业网站制作流程

萍乡网站制作,企业网站制作流程,ps怎么做网站页面,旅游景区网站建设DebugPrinter类是一种在显示屏上打印调试消息的简单方法,无需向屏幕添加控件。 在使用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.hkea.cn/news/9338/

相关文章:

  • 网站目录结构模板培训机构学校
  • 网站建设实训课seo信息查询
  • 医院网站建设系统在哪里可以免费自学seo课程
  • 百度给做网站吗整合营销案例举例说明
  • 网站建设 网站创建网站的基本流程
  • 新网站推广方法南宁seo团队哪家好
  • 手机网站活动策划方案广告网络推广怎么做
  • 免费空间已经注册 怎么做网站seo策划
  • 免费推广网站2024太原百度公司地址
  • 想学做网站学什么教程seo博客网址
  • 做网站需要看什么书sem和seo是什么职业岗位
  • 怎样做幼儿园网站手机端百度收录入口
  • 王爷不敢当网站关键字优化
  • 哪些网站可以医生做兼职网站策划是做什么的
  • 网站开发也需要源码吗谷歌官方app下载
  • 新闻热点事件及评论seo咨询河北
  • 门户网站建设工作的自查报告品牌营销策划公司哪家好
  • wordpress参数传递的函数德州seo优化
  • 国外做的比较好的展台网站怎么开通百度推广账号
  • 如何做单页网站seo概念的理解
  • 文化传媒公司起名字大全免费长春seo代理
  • 有哪些站内推广的方式app有哪些推广方式
  • wordpress 3.7.1 漏洞湖北seo网站推广
  • 炒股网站怎么做广州百度竞价开户
  • 如何去国外网站看内容短视频精准获客系统
  • 做网站的公司赚钱吗高清视频网络服务器
  • 群站wordpress百度网页版主页网址
  • 做国外网站汇款用途是什么移动营销
  • 简约创意情人节海报设计上海高端seo公司
  • 杭州个人做网站优化新十条