Files
milsko/include/Mw/X11.h
NishiOwO db71376805 fix strange segfault
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@100 b9cfdab3-6d41-4d17-bbe4-086880011989
2025-10-01 07:00:28 +00:00

54 lines
808 B
C

/* $Id$ */
/*!
* %file Mw/X11.h
* %brief X11 backend
* %warning This is used internally
*/
#ifndef __MW_X11_H__
#define __MW_X11_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#include <Mw/LowLevel.h>
#include <X11/X.h>
#include <X11/Xutil.h>
#include <X11/extensions/XShm.h>
#include <X11/extensions/Xrender.h>
struct _MwLL {
Display* display;
Window window;
Pixmap pixmap;
GC gc;
Colormap colormap;
void* user;
Atom wm_delete;
int copy_buffer;
unsigned int width;
unsigned int height;
MwLLHandler handler;
};
struct _MwLLColor {
unsigned long pixel;
int red;
int green;
int blue;
};
struct _MwLLPixmap {
int width;
int height;
unsigned char* data;
int use_shm;
XShmSegmentInfo shm;
Display* display;
XImage* image;
};
#endif