
x11 windows 入门demo1
发布日期:2021-05-10 12:01:21
浏览次数:25
分类:精选文章
本文共 894 字,大约阅读时间需要 2 分钟。
// Written by Ch. Tronche (http://tronche.lri.fr:8000/)// Copyright by the author. This is unmaintained, no-warranty free software. // Please use freely. It is appreciated (but by no means mandatory) to// acknowledge the author's contribution. Thank you.// Started on Thu Jun 26 23:29:03 1997//// Xlib tutorial: 1st program// Make a window appear on the screen.//#include// Every Xlib program must include this#include // I include this to test return values the lazy way#include // So we got the profile for 10 seconds#define NIL (0) // A name for the void pointermain(){ Display *dpy = XOpenDisplay(NIL); assert(dpy); Window w = XCreateWindow(dpy, DefaultRootWindow(dpy), 0, 0, 200, 100, 0, CopyFromParent, CopyFromParent, CopyFromParent, NIL, 0); XMapWindow(dpy, w); XFlush(dpy); sleep(10);}
发表评论
最新留言
第一次来,支持一个
[***.219.124.196]2025年05月05日 06时45分55秒
关于作者

喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
MybatisPlus自定义Sql实现多表查询
2021-05-15
Java位运算,负数的二进制表示形式,int类型最大值为什么是2的31次方-1
2021-05-15
WIFI模块开发教程之W600网络篇3:STA模式下TCP Client通信
2021-05-15
PyQt5快速上手基础篇10-QSettings用法
2021-05-15
JQuery--手风琴,留言板
2021-05-15
vue--搜索,添加,删除小案例
2021-05-15
VUE框架应用包---------微信二维码应用
2021-05-15
MFC 自定义消息发送字符串
2021-05-15
goahead 下goaction测试与搭建
2021-05-15
Adding Powers
2021-05-15
不能将 "const char *" 类型的值分配到 "char *" 类型的实体
2021-05-15
PyTorch学习笔记——(6)数据加载Dataset和DataLoader的使用
2021-05-15
ideal 下创建springboot项目
2021-05-15
Linux操作系统的安装与使用
2021-05-15
ajax请求出现/[object%20Object]错误的解决办法
2021-05-15
01背包(小偷的概率)
2021-05-15
流体运动估计光流算法研究
2021-05-15
如何转载博客
2021-05-15
第三方库jieba的安装方法
2021-05-15
在PyCharm切换Python2和Python3
2021-05-15