mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
move
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@754 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
40
include/Mw/LowLevel/GDI.h
Normal file
40
include/Mw/LowLevel/GDI.h
Normal file
@@ -0,0 +1,40 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* @file Mw/LowLevel/GDI.h
|
||||
* @brief GDI Backend
|
||||
* @warning This is used internally
|
||||
*/
|
||||
#ifndef __MW_LOWLEVEL_GDI_H__
|
||||
#define __MW_LOWLEVEL_GDI_H__
|
||||
|
||||
#include <Mw/MachDep.h>
|
||||
#include <Mw/TypeDefs.h>
|
||||
#include <Mw/LowLevel.h>
|
||||
|
||||
struct _MwLLGDI {
|
||||
struct _MwLLCommon common;
|
||||
|
||||
HINSTANCE hInstance;
|
||||
HWND hWnd;
|
||||
HDC hDC;
|
||||
HCURSOR cursor;
|
||||
|
||||
int grabbed;
|
||||
};
|
||||
|
||||
struct _MwLLGDIColor {
|
||||
struct _MwLLCommonColor common;
|
||||
|
||||
HBRUSH brush;
|
||||
};
|
||||
|
||||
struct _MwLLGDIPixmap {
|
||||
struct _MwLLCommonPixmap common;
|
||||
|
||||
RGBQUAD* quad;
|
||||
HBITMAP hBitmap;
|
||||
HBITMAP hMask;
|
||||
HBITMAP hMask2;
|
||||
};
|
||||
|
||||
#endif
|
||||
70
include/Mw/LowLevel/X11.h
Normal file
70
include/Mw/LowLevel/X11.h
Normal file
@@ -0,0 +1,70 @@
|
||||
/* $Id$ */
|
||||
/*!
|
||||
* @file Mw/LowLevel/X11.h
|
||||
* @brief X11 Backend
|
||||
* @warning This is used internally
|
||||
*/
|
||||
#ifndef __MW_LOWLEVEL_X11_H__
|
||||
#define __MW_LOWLEVEL_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 _MwLLX11 {
|
||||
struct _MwLLCommon common;
|
||||
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
|
||||
Display* display;
|
||||
Window window;
|
||||
Pixmap pixmap;
|
||||
GC gc;
|
||||
Colormap colormap;
|
||||
Atom wm_delete;
|
||||
XIM xim;
|
||||
XIC xic;
|
||||
|
||||
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 _MwLLX11Color {
|
||||
struct _MwLLCommonColor common;
|
||||
|
||||
unsigned long pixel;
|
||||
};
|
||||
|
||||
struct _MwLLX11Pixmap {
|
||||
struct _MwLLCommonPixmap common;
|
||||
|
||||
int depth;
|
||||
unsigned char* data;
|
||||
MwLL handle;
|
||||
int use_xrender;
|
||||
Display* display;
|
||||
XImage* image;
|
||||
XImage* mask;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user