随笔分类 - UI 用户操作界面
UI 点滴 积累
摘要:1. 30min、60、90 change:draw is not called when update,dialog.text 的赋值如果是在draw中做,那么是不会改变的。应是:在update中改变,text内容。然后 draw dialog , 非 依赖draw。2. ui 一般能实现 所想要的功能,除非 该 UI 设计 的有问题,类似于 结构体 定义时候 考虑不全。但这种情况一般是不会的。就相当于说该UI 不成熟。3. 头文件:#include "pvr/ui_state_recording_list.h"因为 ui_state_recording_list.h 不
阅读全文
printf 打印 指定长度 字符串
摘要:原样输出字符串: printf("%s", str);2. 输出指定长度的字符串, 超长时不截断, 不足时右对齐: printf("%Ns", str); --N 为指定长度的10进制数值3. 输出指定长度的字符串, 超长时不截断, 不足时左对齐: printf("%-Ns", str); --N 为指定长度的10进制数值4. 输出指定长度的字符串, 超长时截断, 不足时右对齐: printf("%N.Ms", str); --N 为最终的字符串输出长度 --M 为从参数字符串中取出的子串长度5. 输出指定长度的字
阅读全文
浙公网安备 33010602011771号