Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
RT-Thread English
RT-GUI Macro Error
发布于 2014-07-30 10:09:28 浏览:4661
订阅该版
I'm trying to compile RT-GUI and I've got an erro in this line: application = RTGUI_APPLICATION(rtgui_widget_get_toplevel(widget)); Where was defined RTGUI_APPLICATION?
查看更多
4
个回答
默认排序
按发布时间排序
bernard
2014-07-30
这家伙很懒,什么也没写!
It's defined in rtgui_app.h You can include more RTGUI header file: #include
#include
#include
grissiom
2014-07-30
这家伙很懒,什么也没写!
>I'm trying to compile RT-GUI and I've got an erro in this line: > >application = RTGUI_APPLICATION(rtgui_widget_get_toplevel(widget)); > >Where was defined RTGUI_APPLICATION? --- The toplevel of a widget is not the app. It is the window that containing the widget. So your code is wrong. If you want to get the app, you could do: ``` application = rtgui_widget_get_toplevel(widget)->app; ``` And there is no need to type cast at all.
WGR7
2014-07-30
这家伙很懒,什么也没写!
I'm trying to compile the demo_listview_icon.c from the RTGUI demo folder. I've downloaded RTGUI 0.8 and I believe that the demo examples are outdated. There was some headers files that was not found in the source code, for example "toplevel.h". Do exist a new RTGUI version for download? Is correct the use of the code bellow in the demo_listview_icon.c? application = RTGUI_APPLICATION(rtgui_widget_get_toplevel(widget)); Is there some manual in english format for RTGUI or RTThread? Where can I configure my LCD driver and Touch driver to RTGUI use them? Regards.
撰写答案
登录
注册新账号
关注者
0
被浏览
4.7k
关于作者
WGR7
这家伙很懒,什么也没写!
提问
10
回答
9
被采纳
0
关注TA
发私信
相关问题
1
Welcome to RT-Thread RTOS English discussion
2
good!
3
The speed of external SRAM of STM32
4
RT-Thread on ST Forum
5
Splay Tree
6
More RTGUI screenshot
7
STM32 pimer2
8
mini2440 support
9
Howto Run RT-Thread 0.4.0 on QEMU/mini2440
10
RT-Gui : how can use it?
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
机器人操作系统 (ROS2) 和 RT-Thread 通信
4
五分钟玩转RT-Thread新社区
5
国产MCU移植系列教程汇总,欢迎查看!
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
关于使用CherryUSB时候使用外挂的usb phy 芯片配置的一点注意事项
2
【Vision Board 创客营】Vision Board上的ADC实践
3
FRDM-MCXN947 & RT-Thread的CAN实践——控制GM6020云台电机
4
[Vision Board创客营]WDT实践之配置、issue、PR一条龙
5
恩智浦FRDM-MCXN947上的RW007联网实践
热门标签
RT-Thread Studio
串口
LWIP
Env
SPI
Bootloader
AT
ART-Pi
CAN总线
Hardfault
FinSH
USB
文件系统
RT-Thread
DMA
SCons
线程
RT-Thread Nano
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
ota在线升级
WIZnet_W5500
I2C_IIC
UART
flash
cubemx
packages_软件包
freemodbus
潘多拉开发板_Pandora
PWM
定时器
ADC
BSP
中断
keil_MDK
编译报错
socket
MicroPython
GD32
msh
Debug
ulog
SDIO总线
SFUD
rt_mq_消息队列_msg_queue
C++_cpp
本月问答贡献
xiaorui
7
个答案
3
次被采纳
sakumisu
4
个答案
3
次被采纳
三世执戟
31
个答案
1
次被采纳
梦笑真美
18
个答案
1
次被采纳
踩姑娘的小蘑菇
14
个答案
1
次被采纳
本月文章贡献
Z_Y
2
篇文章
5
次点赞
Alipay
2
篇文章
2
次点赞
2345vor
2
篇文章
1
次点赞
比特饼干
1
篇文章
6
次点赞
Lu_盼盼
1
篇文章
3
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部