home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
CSAPE32.ARJ
/
INCLUDE
/
PMWINOBJ.H
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-18
|
2KB
|
72 lines
/*
pmwinobj.h 3/15/88
% Pmap window object header.
by Ted.
OWL 1.2
Copyright (c) 1988, by Oakland Group, Inc.
ALL RIGHTS RESERVED.
Revision History:
-----------------
8/09/88 jmd revised to use new object stuff
9/12/88 jmd Added in and out data to objects
3/24/89 ted Changed order of args to pmwin_Open and pmwin_PixOpen.
7/12/89 ted Converted '_func' prototypes from typedef to macro.
9/12/89 jmd added scroll message to set pmap
3/28/90 jmd ansi-fied
6/17/90 ted Moved xoffs, yoffs here from pmwin od; added get/set macros.
*/
/* #include "winobj.h" - already included via odisp.h */
/* -------------------------------------------------------------------------- */
/* The pmwin class */
#define PMWINM_LASTMSG (WINM_LASTMSG)
extern class_func (pmwin_Class);
extern classinit_func (pmwin_MouseInit);
typedef struct _pmwinxd {
win_xd wd; /* window super class */
pmap_type pmap;
opcoord xoffs; /* coords of win upper left within pmap */
opcoord yoffs;
} pmwin_xd;
#define pmwin_getxd(win) ((pmwin_xd *) win_getxd(win))
/* PMWINOPE.C */
extern win_type pmwin_Open(class_fptr pmwinclass, int row, int col, pmap_type pmap);
extern win_type pmwin_PixOpen(class_fptr pmwinclass, opcoord x, opcoord y, pmap_type pmap, ofont_type font);
/* Note included publicly like this because everyone has to include */
/* pmapdecl.h anyway. Having it public makes toon & paint win classes simpler */
#define pmwin_GetPmap(win) (pmwin_getxd(win)->pmap)
#define pmwin_SetPmap(win, pm) (pmwin_getxd(win)->pmap = (pm), bord_SendMsg(win, BDM_SCROLL, NULL, NULL))
#define pmwin_GetXoffs(win) (pmwin_getxd(win)->xoffs)
#define pmwin_GetYoffs(win) (pmwin_getxd(win)->yoffs)
#define pmwin_setxyoffs(win, xo, yo) (pmwin_getxd(win)->xoffs = (xo), pmwin_getxd(win)->yoffs = (yo))
/* -------------------------------------------------------------------------- */
/* The grwin class */
#define GRWINM_LASTMSG (PMWINM_LASTMSG)
extern class_func (grwin_Class);
typedef pmwin_xd grwin_xd;
#define grwin_getxd(win) ((grwin_xd *) pmwin_getxd(win))
#define grwin_ClassInit pmwin_ClassInit
#define grwin_GetPmap(win) pmwin_GetPmap(win)
#define grwin_SetPmap(win, pm) pmwin_SetPmap(win, pm)
#define grwin_GetXoffs(win) pmwin_GetXoffs(win)
#define grwin_GetYoffs(win) pmwin_GetYoffs(win)
/* -------------------------------------------------------------------------- */