Files
milsko/src/backend/x11.h
NishiOwO 588d07d5c8 fix MwNx/MwNy
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@650 b9cfdab3-6d41-4d17-bbe4-086880011989
2025-11-09 08:36:57 +00:00

71 lines
1.1 KiB
C

/* $Id$ */
#ifndef __X11_H__
#define __X11_H__
#include <Mw/MachDep.h>
#include <Mw/TypeDefs.h>
#include <Mw/LowLevel.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#ifdef USE_XRENDER
#include <X11/extensions/Xrender.h>
#endif
struct _MwLL {
Display* display;
Window window;
Pixmap pixmap;
GC gc;
Colormap colormap;
void* user;
Atom wm_delete;
int copy_buffer;
XIM xim;
XIC xic;
unsigned int width;
unsigned int height;
MwLLHandler handler;
int top;
int grabbed;
unsigned long red_mask;
unsigned long red_max;
unsigned long red_shift;
unsigned long green_mask;
unsigned long green_max;
unsigned long green_shift;
unsigned long blue_mask;
unsigned long blue_max;
unsigned long blue_shift;
};
struct _MwLLColor {
unsigned long pixel;
int red;
int green;
int blue;
};
struct _MwLLPixmap {
int width;
int height;
unsigned char* raw;
int depth;
unsigned char* data;
MwLL handle;
int use_xrender;
Display* display;
XImage* image;
XImage* mask;
};
#endif