既然Gtk把x客户端和xserver直接通信封装成为咯Gdk::Atom。
比如你可能关心这些:
代码: 全选
PRIMARY
A Gdk::Atom representing the PRIMARY selection.
SECONDARY
A Gdk::Atom representing the SECONDARY selection.
CLIPBOARD
A Gdk::Atom representing the CLIPBOARD selection.
TARGET_BITMAP
A Gdk::Atom representing the BITMAP selection target.
TARGET_COLORMAP
A Gdk::Atom representing the COLORMAP selection target.
TARGET_DRAWABLE
A Gdk::Atom representing the DRAWABLE selection target.
TARGET_PIXMAP
A Gdk::Atom representing the PIXMAP selection target.
TARGET_STRING
A Gdk::Atom representing the STRING selection target.
TYPE_ATOM
A Gdk::Atom representing the ATOM selection type.
TYPE_BITMAP
A Gdk::Atom representing the BITMAP selection type.
TYPE_COLORMAP
A Gdk::Atom representing the COLORMAP selection type.
TYPE_DRAWABLE
A Gdk::Atom representing the DRAWABLE selection type.
TYPE_INTEGER
A Gdk::Atom representing the INTEGER selection type.
TYPE_PIXMAP
A Gdk::Atom representing the PIXMAP selection type.
TYPE_WINDOW
A Gdk::Atom representing the WINDOW selection type.
TYPE_STRING
A Gdk::Atom representing the STRING selection type.
怎么难道不更好上手,和win32api类似的msg loop
实现一个像scrot的功能就差不多咯。如果选择的时候需要画边框用xosd阿。
截图软件没有干过。
不过我记得以前在linux下字典的划词或是选择取词的话用的就是上面说的这些
在GDK的话用PRIMARY也可以实现取词。
GDK我很少用,应该是这些
此外我觉得linux下面开发客户端应用的话,mozilla最好