makepad-reference
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMakepad Reference
Makepad参考资料
This category provides reference materials for debugging, code quality, and advanced layout patterns.
本分类提供调试、代码质量和高级布局模式相关的参考资料。
Quick Navigation
快速导航
| Topic | File | Use When |
|---|---|---|
| API Documentation | Official docs index, quick API reference | Finding detailed API info |
| Troubleshooting | Common errors and fixes | Build fails, runtime errors |
| Code Quality | Makepad-aware refactoring | Simplifying code safely |
| Adaptive Layout | Desktop/mobile responsive | Cross-platform layouts |
| 主题 | 文件 | 使用场景 |
|---|---|---|
| API文档 | 官方文档索引,快速API参考 | 查找详细API信息 |
| 故障排查 | 常见错误与修复方案 | 构建失败、运行时错误 |
| 代码质量 | 针对Makepad的重构指南 | 安全简化代码 |
| 自适应布局 | 桌面/移动端响应式布局 | 跨平台布局开发 |
Common Issues Quick Reference
常见问题速查
| Error | Quick Fix |
|---|---|
| Use |
Color parse error (ends in | Change last digit (e.g., |
| Add |
| UI not updating | Call |
| Widget not found | Check ID spelling, use |
| 错误 | 快速修复方案 |
|---|---|
| 使用 |
颜色解析错误(以 | 修改最后一位数字(例如: |
| 添加 |
| UI未更新 | 修改后调用 |
| Widget未找到 | 检查ID拼写,使用 |
Debug Tips
调试技巧
bash
undefinedbash
undefinedRun with line info for better error messages
运行时启用行信息以获取更清晰的错误提示
MAKEPAD=lines cargo +nightly run
```rust
// Add logging
log!("Value: {:?}", my_value);
log!("State: {} / {}", self.counter, self.is_loading);MAKEPAD=lines cargo +nightly run
```rust
// 添加日志
log!("值: {:?}", my_value);
log!("状态: {} / {}", self.counter, self.is_loading);Resources
资源
- Makepad Official Docs - Obsidian-based documentation
- Makepad Repository
- Robrix - Production reference
- Moly - Production reference
- Makepad官方文档 - 基于Obsidian的文档
- Makepad代码仓库
- Robrix - 生产环境参考项目
- Moly - 生产环境参考项目