What is Linux’s native GUI API?

前端 未结 12 1307
遇见更好的自我
遇见更好的自我 2020-12-02 03:05

Both Windows (Win32 API) and OS X (Cocoa) have their own APIs to handle windows, events and other OS stuff. I have never really got a clear answer as to what Linux’s equival

相关标签:
12条回答
  • 2020-12-02 03:47

    Wayland

    As you might hear, wayland is the featured choice of many distros these days, because of its protocol is simpler than the X.

    Toolkits of wayland

    Toolkits or gui libraries that wayland suggests are:

    • QT 5
    • GTK+
    • LSD
    • Clutter
    • EFL
    0 讨论(0)
  • 2020-12-02 03:49

    Wayland is also worth mentioning as it is mostly referred as a "future X11 killer".

    Also note that Android and some other mobile operating systems don't include X11 although they have a Linux kernel, so in that sense X11 is not native to all Linux systems.

    Being cross-platform has nothing to do with being native. Cocoa has also been ported to other platforms via GNUStep but it is still native to OS X / macOS.

    0 讨论(0)
  • 2020-12-02 03:49

    The linux kernel graphical operations are in /include/linux/fb.h as struct fb_ops. Eventually this is what add-ons like X11, Wayland, or DRM appear to reference. As these operations are only for video cards, not vector or raster hardcopy or tty oriented terminal devices, their usefulness as a GUI is limited; it's just not entirely true you need those add-ons to get graphical output if you don't mind using some assembler to bypass syscall as necessary.

    0 讨论(0)
  • 2020-12-02 03:51

    GUI is a high level abstraction of capability, so almost everything from XOrg server to OpenGL is ported cross-platform, including for Windows platform. But if by GUI API you mean *nix graphics API then you might be wandering around "Direct Rendering Infrastructure".

    0 讨论(0)
  • 2020-12-02 03:56

    Linux is a kernel, not a full operating system. There are different windowing systems and gui's that run on top of Linux to provide windowing. Typically X11 is the windowing system used by Linux distros.

    0 讨论(0)
  • 2020-12-02 04:02

    XWindows is probably the closest to what could be called 'native' :)

    0 讨论(0)
提交回复
热议问题