简体   繁体   English

XCB是否已准备好投入生产?我应该使用Xlib吗?

[英]Is XCB ready for production use? Should I use Xlib instead?

If one needs low level access to X11 events, windowing and input without using GTK, QT et al., should one use Xlib or XCB ? 如果需要对X11事件进行低级访问,不使用GTK进行窗口化和输入,QT等人应该使用Xlib还是XCB What are the pros and cons of each? 各自的优点和缺点是什么?

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.

相关问题 从Xlib转换为xcb - Convert from Xlib to xcb 为什么要在Bash中避免使用eval,我应该用什么来代替? - Why should eval be avoided in Bash, and what should I use instead? 如果“纯 XCB”OpenGL 是不可能的,那么 xcb/glx.h 中的 XCB/GLX API 有什么用? - If “pure XCB” OpenGL is impossible, then what's the use of the XCB/GLX API found in xcb/glx.h? Xlib 中的 xcb_shm_get_image 等效项 - xcb_shm_get_image equivalent in Xlib Xlib 和 XCB。 一个进程中有多个窗口。 Xlib 失败而 XCB 没有 - Xlib and XCB. Multiple windows in one process. Xlib fails whereas XCB do not 是否可以使用Windows平台开发RUBY项目? 还是应该改用Linux? - is it ok to use windows platform to develop RUBY project ? or should i use Linux instead? Wayland,Xlib,XCB,MIR窗口系统的预处理器符号 - Preprocessor symbol for Wayland, Xlib, XCB, MIR window systems X11 / XCB / Xlib:将根窗口复制到像素图 - X11/XCB/Xlib: Copy root window to pixmap 我应该为我的 docker 应用程序使用域名而不是 IP 地址吗? - Should I use domain name for my docker application instead of IP address? 警告:ISO C++ 不允许 C99 指定的初始值设定项,我应该改用什么? - warning: ISO C++ does not allow C99 designated initializers, what should i use instead?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM