Move ROSKY to a separate SVN module.

svn path=/trunk/; revision=16340
This commit is contained in:
Filip Navara 2005-06-30 12:21:30 +00:00
parent f5dfe7db02
commit f992a4e417
3 changed files with 0 additions and 306 deletions

View file

@ -1,57 +0,0 @@
#ifndef __RSK_DEFINES_H
#define __RSK_DEFINES_H
/* Messages */
#define MSG_MOUSE_BUT1_PRESSED 162
#define MSG_MOUSE_BUT2_PRESSED 163
#define MSG_MOUSE_BUT1_RELEASED 164
#define MSG_MOUSE_BUT2_RELEASED 165
#define MSG_MOUSE_MOVED 166
#define MSG_GUI_REDRAW 170
#define MSG_COMMAND 2505
#define MSG_QUIT 2600
#define MSG_DESTROY 2700
/* Window Styles */
#define WF_DONT_EREASE_BACKGROUND 0x00000010
#define WF_NO_FRAME 0x00000020
#define WF_MODAL 0x00000100
#define WF_HAS_MENU 0x00001000
#define WF_HAS_STATUSBAR 0x00002000
#define WF_NO_INITIAL_DRAW 0x00008000
#define WF_FOCUSABLE 0x00010000
#define WF_NOT_SIZEABLE 0x00040000
#define WF_SMALL_TITLE 0x00080000
#define WF_NOT_MOVEABLE 0x00100000
#define WF_NO_TITLE 0x00200000
#define WF_POPUP 0x00400000
#define WF_NO_BUTTONS 0x00800000
#define WF_FREEFORM 0x08000000
#define WF_USE_BACKGROUND 0x20000000
#define WF_USER 0x20000000
#define WF_HIDE 0x40000000
#define WF_DESKTOP 0x80000000
#define WF_TRANSPARENT 0x01000000
/* GC types */
#define GC_TYPE_WINDOW 0x00000002
#define GC_TYPE_DIB 0x00000004
/* Menu flags */
#define MENU_SEPERATOR 0x00000001
/* Message box flags */
#define WGF_MB_YESNO 0x00000001
#define WGF_MB_OK 0x00000010
#define WGF_MB_CANCEL 0x00000100
#define WGF_MB_ICON_INFO 0x00100000
#define WGF_MB_ICON_ASK 0x01000000
#define WGF_MB_ICON_STOP 0x10000000
/* Message box return values */
#define ID_OK 1
#define ID_YES 2
#define ID_NO 3
#define ID_CANCEL 4
#endif /* __RSK_DEFINES_H */

View file

@ -1,7 +0,0 @@
/*
* ReactOS SkyOS headers
*/
#include <rosky/structs.h>
#include <rosky/defines.h>

View file

@ -1,242 +0,0 @@
#ifndef __RSK_STRUCTS_H
#define __RSK_STRUCTS_H
typedef unsigned int COLOR;
typedef struct region
{
int x1;
int y1;
int x2;
int y2;
} s_region;
typedef struct s_gi_msg
{
HANDLE win;
unsigned int type;
unsigned int para1;
unsigned int para2;
s_region rect;
struct s_gi_msg *next;
struct s_gi_msg *prev;
unsigned long long timestamp;
} s_gi_msg;
typedef struct DDB
{
unsigned int color;
unsigned int width;
unsigned int height;
unsigned char *data;
unsigned int palette_size;
unsigned int transcolor;
unsigned char trans;
unsigned char *bAndMask;
unsigned char bUseAndMask;
unsigned int uiAndMaskWidth;
unsigned int uiAndMaskHeight;
COLOR *palette;
} DDB;
typedef struct DIB
{
unsigned int color;
unsigned int width;
unsigned int height;
unsigned char *data;
unsigned int palette_size;
unsigned int transcolor;
unsigned char trans;
unsigned char *bAndMask;
unsigned char bUseAndMask;
unsigned int uiAndMaskWidth;
unsigned int uiAndMaskHeight;
unsigned int uiFlags;
COLOR *palette;
} DIB;
typedef struct GC
{
unsigned int type;
HANDLE window;
DIB *hDIB;
unsigned int width;
unsigned int height;
s_region *clip;
COLOR fg_color;
COLOR bg_color;
COLOR trans_color;
unsigned int uiTransparentLevel;
unsigned int flags;
unsigned int fontIndex;
unsigned int fontSize;
unsigned int fontFlags;
} GC;
typedef struct sBlit
{
DIB *hDIB;
DDB *hDDB;
int iDestX;
int iDestY;
int iSrcX;
int iSrcY;
int iWidth;
int iHeight;
unsigned int uiFlags;
unsigned int uiReserved0;
unsigned int uiReserved1;
unsigned int uiReserved2;
unsigned int uiReserved3;
unsigned int uiReserved4;
unsigned int uiReserved5;
unsigned int uiReserved6;
unsigned int uiReserved7;
unsigned int uiReserved8;
unsigned int uiReserved9;
} sBlit;
typedef struct widget_dynbmp_item
{
DIB *hDib;
unsigned char *rawData;
struct widget_dynbmp_item *next;
} widget_dynbmp_item;
typedef struct widget_dynbmp
{
unsigned int state;
unsigned int trans;
unsigned int transcolor;
unsigned int thread_id;
unsigned int timer_id;
widget_dynbmp_item *first;
widget_dynbmp_item *selected;
} widget_dynbmp;
typedef struct widget_popup
{
unsigned int uiItemHeight;
unsigned int uiFlags;
HANDLE hFont;
unsigned int uiFontFlags;
unsigned int uiFontSize;
unsigned int uiColorSelectedBack;
unsigned int uiColorSelectedFore;
unsigned int uiColorBack;
unsigned int uiColorFore;
unsigned int uiWindowBackColor;
unsigned int uiSpacingX;
} widget_popup;
typedef struct widget_menu_item
{
unsigned char text[255];
unsigned int ID;
unsigned int flags;
struct widget_menu_item *next;
struct widget_menu *child;
unsigned int focus;
unsigned int enabled;
unsigned int x;
HANDLE icon;
DIB *hDIB;
unsigned int has_icon;
/* sub items */
unsigned int width;
unsigned int count;
} widget_menu_item;
typedef struct widget_menu
{
unsigned char focus;
unsigned int count;
unsigned int width;
unsigned int has_icons;
widget_menu_item *items;
widget_dynbmp *animation;
widget_popup *pPopUpData;
unsigned int uiLineColor;
unsigned int uiBackGroundColor;
} widget_menu;
typedef struct app_para
{
unsigned char cpName[255];
unsigned int ulX;
unsigned int ulY;
unsigned int ulWidth;
unsigned int ulHeight;
void *win_func;
unsigned int ulStyle;
unsigned int ulBackGround;
unsigned int ulAppIcon;
widget_menu *pMenu;
} app_para;
typedef struct s_window
{
unsigned char name[255];
unsigned int x;
unsigned int y;
unsigned int height;
unsigned int width;
unsigned int orgx;
unsigned int orgy;
unsigned long (__cdecl *win_func)(struct s_window *win, s_gi_msg *m);
HANDLE handle;
struct s_window *parent;
struct s_window *child;
struct s_window *next;
unsigned char focus;
struct s_window *focus_win;
void *windowData;
unsigned int windowDataSize;
unsigned int flags;
int origin_x;
int origin_y;
} s_window;
typedef struct sCreateApplication
{
unsigned char ucApplicationName[255];
unsigned int uiX;
unsigned int uiY;
unsigned int uiWidth;
unsigned int uiHeight;
void *fwndClient;
unsigned int uiStyleApplication;
unsigned int uiStyleFrame;
unsigned int uiStyleTitle;
unsigned int uiStyleMenu;
unsigned int uiStyleBar;
unsigned int uiStyleClient;
unsigned int uiBackGroundColor;
unsigned int uiApplicationIcon;
widget_menu *pFrameMenu;
unsigned int uiReserved[128];
void (__cdecl *PostCreateWindowBitmap)(HANDLE hWnd, void *pGCBuf);
} sCreateApplication;
typedef struct s_resolution
{
unsigned int width;
unsigned int height;
unsigned int bpp;
} s_resolution;
#endif /* __RSK_STRUCTS_H */