首页 > TAG信息列表 > weston

阅读他人代码学习到的一些好的设计(三)

c代码的一个结构体,比如weston_output, 然后我们平台有一个类叫 class EagleOutput,想把weston_output作为基类去继承,也就是在成员变量中声明一个struct weston_output的member class EagleOutput { public: weston_output m_base; ... }; 然后有这么一个static的成员函数: int

wayland详解

简单地说,Wayland是一套display server(Wayland compositor)与client间的通信协议,而Weston是Wayland compositor的参考实现。其官网为http://wayland.freedesktop.org/。它们定位于在Linux上替换X图形系统。在X系统中,X Server作为中心服务,连接clien和硬件以及compositor。但时至