【问题标题】:How to get a string from an xcb_atom_t?如何从 xcb_atom_t 获取字符串?
【发布时间】:2018-06-14 14:09:12
【问题描述】:

我想知道xcb_randr_monitor_info_t 的名称。它有一个name 字段,但它属于xcb_atom_t 类型,而不是char [255] 或类似的简单类型。我怎样才能把它变成一个(最好是 UTF-8)字符串?

【问题讨论】:

    标签: x11 xrandr xcb


    【解决方案1】:

    您正在寻找xcb_get_atom_name_name

    xcb_get_atom_name_reply_t *reply=xcb_get_atom_name_reply( dis, xcb_get_atom_name(dis, atom), NULL); char*name=xcb_get_atom_name_name(reply);

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-04-15
      • 2016-11-23
      • 1970-01-01
      • 1970-01-01
      • 2011-11-30
      • 2017-07-28
      • 2012-07-23
      • 1970-01-01
      相关资源
      最近更新 更多