[英]Is XCB ready for production use? Should I use Xlib instead?
You can use both of them. 您可以同时使用它们。 XCB is simpler to use, has a better response to a multithread environment but lacks documentation, while Xlib is a more dated/complex tool, better documented and fully implemented. XCB使用起来更简单,对多线程环境有更好的响应但缺乏文档,而Xlib是一个更加过时/复杂的工具,更好地记录和完全实现。
I'm currently studying the XCB API and the hardest thing to do is to find docs and good API references.. 我目前正在研究XCB API,最难的事情是找到文档和良好的API参考。
In the end: if you aim to faster development, you should use Xlib, otherwise XCB is meant to be the future (but it's still far from being such). 最后:如果你的目标是更快的开发,你应该使用Xlib,否则XCB意味着未来(但它仍然远没有这样)。
What helps when learning XCB is to look at X11 specification, for example here https://www.x.org/releases/X11R7.5/doc/x11proto/proto.pdf 学习XCB的有用之处在于查看X11规范,例如https://www.x.org/releases/X11R7.5/doc/x11proto/proto.pdf
Most XCB calls map directly to X11 requests. 大多数XCB调用直接映射到X11请求。 The same is true for extensions. 扩展也是如此。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.