BB2 C port
API reference: Blitz libraries in C and the shared code
Loading...
Searching...
No Matches
windowslib.c File Reference
#include "blitzlib.h"
#include "blitzobj.h"
#include "blitzexec.h"
#include <intuition/intuition.h>
#include <intuition/screens.h>
#include <graphics/rastport.h>
#include <graphics/text.h>
#include <graphics/gfx.h>
#include <stddef.h>
#include <dos/dosextens.h>
#include <proto/intuition.h>
#include <proto/graphics.h>
#include <proto/layers.h>

Data Structures

struct  bwin
struct  wuserdata
struct  evnode
struct  gaduserdata
struct  gadtext
struct  ed

Macros

#define __NOLIBBASE__
#define INTUITION_BASE_NAME   intbase
#define GRAPHICS_BASE_NAME   gfxbase
#define LAYERS_BASE_NAME   layersbase
#define WUD(w)
#define W42   (BL_PUSH | BL_WORD)
#define SIMPLE_FN(type, code, name)
#define GFX_STMT(code, chk, name, help, ...)
#define USED_FN(code, name)
#define LONGAT(field)
#define THISPROC   ((struct Process *)SysBase->ThisTask)
#define WORD_FN(entry, cfunc)
#define V_EVCODE   8
#define V_EVQUALIFIER   10
#define V_EVENTGNUM   12
#define V_MENUNUM   18
#define V_ITEMNUM   20
#define V_SUBNUM   22
#define V_EVMOUSEX   98
#define V_EVMOUSEY   100
#define GUD(g)
#define MAXWAIT   50

Functions

void dogadgethit (void)
 GadgetHit - the gadget id of the last gadget event (-1 at init).
void doeventwindow (void)
void dowindowidcmp (void)
void domenuhit (void)
 MenuHit - the menu number of the last menu event, -1 for none.
void doitemhit (void)
 ItemHit - the item number of the last menu event, -1 for none.
void dosubhit (void)
 SubHit - the subitem number of the last menu event, -1 for none.
void dowlocate (void)
void doinwindow (void)
void dooutwindow (void)
void doqual (void)
void dorawkey (void)
void docursor (void)
void doeditat (void)
void doeditfrom (void)
void doeditfrom2 (void)
void doeditexit (void)
void dowmousex (void)
void dowmousey (void)
void dosetpens (void)
void dosetpens2 (void)
void dosetjam (void)
void dowindowx (void)
void dowindowy (void)
void dowcursx (void)
void dowcursy (void)
void dowindowwidth (void)
void dowindowheight (void)
void dogzzwidth (void)
void dogzzheight (void)
void dowtopoff (void)
void dowleftoff (void)
void doslimits (void)
void doslimits2 (void)
void doemousex (void)
 EMouseX - the mouse x position of the last event.
void doemousey (void)
 EMouseY - the mouse y position of the last event.
void doaddidcmp (void)
void dosubidcmp (void)
void doflushevents (void)
void docatchdoserrs (void)
void dowrport (void)
 RastPort(Window#) - the RastPort of a window (inline).
void dosetevfilter (void)
void doeventcode (void)
 EventCode - the IDCMP code of the last event.
void doeventqualifier (void)
 EventQualifier - the qualifier of the last event.
void dousewindow (void)
void idcmpchk (void)
void wfontchk (void)
void windowslib_wchk (void)
void wlinechk (void)
void wpointerchk (void)
void wmovechk (void)
void wsizechk (void)
void wblitchk (void)
void wbtowchk (void)
void wtagschk (void)
void doactivate (struct bwin *w, struct Library *intbase)
 Activate Window# - activate a window (ActivateWindow).
ULONG doevent (void)
 Event - the next event, without waiting.
ULONG dowaitevent (void)
 WaitEvent - wait for the next event (statement or function).
ULONG buttons (void)
 MButtons - the next mouse button event of the input window.
void dowplot (WORD x, WORD y, UWORD c, struct bwin *w, struct Library *gfxbase)
 WPlot X,Y,Colour - a point in the used window.
void dowbox (ULONG x0, ULONG y0, ULONG x1, ULONG y1, UWORD c, struct bwin *w, struct Library *gfxbase)
 WBox X1,Y1,X2,Y2,Colour - a filled box in the used window.
void dowcls (struct bwin *w, struct Library *gfxbase)
 WCls - clear the used window with colour 0 (see dowcls2, #314).
void dowcls2 (UWORD c, struct bwin *w, struct Library *gfxbase)
 WCls Colour - clear the used window with a colour.
void doinnercls (struct bwin *w, struct Library *gfxbase)
 InnerCls - clear the inside of the used window's borders with colour 0.
void doinnercls2 (UWORD c, struct bwin *w, struct Library *gfxbase)
 InnerCls Colour - clear the inside of the used window's borders.
void dowellipse (WORD x, WORD y, ULONG rx, ULONG ry, UWORD c, struct bwin *w, struct Library *gfxbase)
 WEllipse X,Y,X Radius,Y Radius,Colour - an ellipse in the used window (DrawEllipse).
void dowcircle (WORD x, WORD y, ULONG r, UWORD c, struct bwin *w, struct Library *gfxbase)
 WCircle X,Y,Radius,Colour - a circle in the used window (an ellipse with both radii r).
void dowscroll (ULONG x0, ULONG y0, ULONG x1, ULONG y1, WORD dx, WORD dy, struct bwin *w, struct Library *gfxbase)
 WScroll X1,Y1,X2,Y2,Delta X,Delta Y - scroll an area of the used window (ScrollRaster).
void dowprintscroll (struct bwin *w, struct Library *gfxbase)
 WPrintScroll - scroll the used window if the text cursor is below its inner height.
void dowline (UWORD c, UWORD n, UBYTE *args, struct bwin *w, struct Library *gfxbase)
 WLine X1,Y1,X2,Y2[,Xn,Yn...],Colour - lines through the points in the used window (Move + PolyDraw).
void doflushevents2 (ULONG class)
 FlushEvents IDCMP_Flag - drop all events of one class.
void dowtitle (const UBYTE *wt, const UBYTE *st, const ULONG *lens, struct bwin *w, struct Library *intbase)
 WTitle windowtitle$,screentitle$ - the titles of the used window and its screen (SetWindowTitles).
void dowmove (ULONG x, ULONG y, struct bwin *w, struct Library *intbase)
 WMove X,Y - move the used window (MoveWindow by the difference).
void dowsize (ULONG x, ULONG y, struct bwin *w, struct Library *intbase)
 WSize Width,Height - resize the used window (SizeWindow by the difference).
void domenuson (UBYTE *objs, UWORD max, struct Library *intbase)
 MenusOn - the menus of all windows work again.
void domenusoff (UBYTE *objs, UWORD max, struct Library *intbase)
 MenusOff - switch the menus of all windows off.
void domenusok (UWORD on, UBYTE *objs, UWORD max, struct Library *intbase)
 Menus On|Off - MenusOn or MenusOff.
void dowpointer (const struct bb_shape *shape, ULONG xoff_reg, ULONG yoff_reg, struct Library *intbase)
 WPointer Shape# - a shape as the mouse pointer of the used window.
void dowfont (const struct bb_intuifont *font, struct bwin *w, struct Library *gfxbase)
 WindowFont IntuiFont# - the font of the used window (SetFont).
void dowfont2 (ULONG style, const struct bb_intuifont *font, struct bwin *w, struct Library *gfxbase)
 WindowFont IntuiFont#,SoftStyle - font and soft style of the used window (SetFont, SetSoftStyle with all style bits enabled).
void dobtow1 (struct bwin *w, struct BitMap *bm, struct Library *gfxbase)
 BitMaptoWindow Bitmap#,Window# - copy a whole bitmap into a window at 0,0 (BltBitMapRastPort, minterm $C0).
void dobtow2 (ULONG sx_reg, ULONG sy_reg, ULONG sx, ULONG sy, ULONG dx, ULONG dy, const UWORD *args, struct bwin *w, struct BitMap *bm, struct Library *gfxbase)
 BitMaptoWindow Bitmap#,Window#,srcx,srcy,destx,desty,wid,height - copy an area of a bitmap into a window.
void dowblit (ULONG xpos, ULONG ypos, ULONG y_reg, struct bwin *w, const struct bb_shape *shape, struct Library *gfxbase)
 WBlit Shape#,x,y - draw a shape into the used window.
void _showsuper (WORD x, WORD y, struct bwin *w, struct Library *layersbase)
 PositionSuperBitMap x,y - the view of a super bitmap window.
void _windowtobitmap (struct bwin *w, struct Library *gfxbase)
 GetSuperBitMap - copy the window's contents into its super bitmap (SyncSBitMap).
void _bitmaptowindow (struct bwin *w, struct Library *gfxbase)
 PutSuperBitMap - copy the super bitmap into the window (CopySBitMap).
void freewindow (struct Library *intbase)
 CloseWindow Window# (and _free) - close a window.
void dowindow (UWORD objoff, ULONG flags, const UBYTE *title, UBYTE dpen, UBYTE bpen, ULONG *glist, struct Screen **scr, WORD usedoff, const ULONG *lens, struct Library *intbase)
 Window Window#,X,Y,Width,Height,Flags,Title$,Dpen,Bpen,GadgetList# - open a window with a gadget list.
void dowindow2 (UWORD objoff, ULONG flags, const UBYTE *title, UBYTE dpen, UBYTE bpen, struct Screen **scr, WORD usedoff, const ULONG *lens, struct Library *intbase)
 Window Window#,X,Y,Width,Height,Flags,Title$,Dpen,Bpen - open a window without gadgets.
void dowindow3 (UWORD objoff, ULONG flags, const UBYTE *title, ULONG *glist, struct Screen **scr, WORD usedoff, const ULONG *lens, struct Library *intbase)
 Window Window#,X,Y,Width,Height,Flags,Title$,Dpen,Bpen,GadgetList#,BitMap# - open a window with a gadget list and a super bitmap.
void dowindowtags1 (UWORD objoff, ULONG flags, const UBYTE *title, struct Screen **scr, WORD usedoff, const ULONG *lens, struct Library *intbase)
 WindowTags Window#,Flags,Title$ - open a window with OpenWindowTagList.
void dowindowtags2 (UWORD objoff, ULONG flags, const UBYTE *title, UWORD n, struct Screen **scr, WORD usedoff, const ULONG *lens, struct Library *intbase)
 WindowTags Window#,Flags,Title$,Tag,Data[,Tag,Data...] - open a window with tag pairs.
void dowindowtags3 (UWORD objoff, ULONG flags, const UBYTE *title, const ULONG *tl, struct Screen **scr, WORD usedoff, const ULONG *lens, struct Library *intbase)
 WindowTags Window#,Flags,Title$,&TagList - open a window with a tag list of the program.
static ULONG codeinit (struct Library *gfx, struct Library *intb)
 init - the shared message port and the defaults.
static void codefinit (void)
 finit - free the port's signal, restore the old pr_WindowPtr.
 SIMPLE_FN (BL_LONG, BLITZ_AMIGAONLY(doevent), "Event")
 SIMPLE_FN (BL_WORD, dogadgethit, "GadgetHit")
 SIMPLE_FN (BL_WORD, doeventwindow, "EventWindow")
 SIMPLE_FN (BL_WORD, domenuhit, "MenuHit")
 SIMPLE_FN (BL_WORD, doitemhit, "ItemHit")
 SIMPLE_FN (BL_WORD, dosubhit, "SubHit")
 GFX_STMT (dowplot, windowslib_wchk, "WPlot", "X,Y,Colour", BL_WORD, BL_WORD, BL_WORD)
 GFX_STMT (dowbox, windowslib_wchk, "WBox", "X1,Y1,X2,Y2,Colour", BL_WORD, BL_WORD, BL_WORD, BL_WORD, BL_WORD)
 GFX_STMT (dowcircle, windowslib_wchk, "WCircle", "X,Y,Radius,Colour", BL_WORD, BL_WORD, BL_WORD, BL_WORD)
 GFX_STMT (dowellipse, windowslib_wchk, "WEllipse", "X,Y,X Radius,Y Radius,Colour", BL_WORD, BL_WORD, BL_WORD, BL_WORD, BL_WORD)
 SIMPLE_FN (BL_LONG, doqual, "Qualifier")
 SIMPLE_FN (BL_WORD, dorawkey, "RawKey")
 SIMPLE_FN (BL_WORD, doeditat, "Editat")
 SIMPLE_FN (BL_WORD, doeditexit, "EditExit")
 GFX_STMT (dowscroll, windowslib_wchk, "WScroll", "X1,Y1,X2,Y2,Delta X,Delta Y", BL_WORD, BL_WORD, BL_WORD, BL_WORD, BL_WORD, BL_WORD)
 USED_FN (dowmousex, "WMouseX")
 USED_FN (dowmousey, "WMouseY")
 USED_FN (dowindowx, "WindowX")
 USED_FN (dowindowy, "WindowY")
 SIMPLE_FN (BL_WORD, BLITZ_AMIGAONLY(buttons), "MButtons")
 USED_FN (dowcursx, "WCursX")
 USED_FN (dowcursy, "WCursY")
 USED_FN (dowindowwidth, "WindowWidth")
 USED_FN (dowindowheight, "WindowHeight")
 USED_FN (dogzzwidth, "InnerWidth")
 USED_FN (dogzzheight, "InnerHeight")
 USED_FN (dowtopoff, "WTopOff")
 USED_FN (dowleftoff, "WLeftOff")
 SIMPLE_FN (BL_WORD, doemousex, "EMouseX")
 SIMPLE_FN (BL_WORD, doemousey, "EMouseY")
 SIMPLE_FN (BL_WORD, BLITZ_AMIGAONLY(doeventcode), "EventCode")
 SIMPLE_FN (BL_WORD, BLITZ_AMIGAONLY(doeventqualifier), "EventQualifier")
static APTR globalloc (ULONG size, ULONG flags)
static void globfree (APTR mem, ULONG size)
static UBYTE * allocst (const UBYTE *s, ULONG len)
static void freest (UBYTE *s)
static UWORD rawkey (UWORD code, UWORD qual)
static void dosetevfilter_c (ULONG pre, ULONG post)
 SetEventFilter preprocess,postprocess - routines around every message.
 BLITZ_ALIAS (dosetevfilter, dosetevfilter_c)
static void docatchdoserrs_c (struct bwin *w)
 CatchDosErrs - DOS requesters appear on the used window.
 BLITZ_ALIAS (docatchdoserrs, docatchdoserrs_c)
static void doaddidcmp_c (ULONG f)
 AddIDCMP IDCMP_Flags - add flags to the IDCMP of the next windows.
 BLITZ_ALIAS (doaddidcmp, doaddidcmp_c)
static ULONG dosubidcmp_c (ULONG f)
 SubIDCMP IDCMP_Flags - remove flags from the IDCMP of the next windows.
 BLITZ_ALIAS (dosubidcmp, dosubidcmp_c)
static void dowindowidcmp_c (ULONG f)
 DefaultIDCMP IDCMP_Flags - the IDCMP of the windows opened next.
 BLITZ_ALIAS (dowindowidcmp, dowindowidcmp_c)
static void doslimits_c (WORD a, WORD b, WORD c, WORD d)
 SizeLimits Min Width,Min Height,Max Width,Max Height - the size limits of the windows opened next.
 BLITZ_ALIAS (doslimits, doslimits_c)
static void doslimits2_c (WORD on)
 SizeLimits Flag (the one argument form) - whether the next windows get the SizeLimits.
 BLITZ_ALIAS (doslimits2, doslimits2_c)
static ULONG dowtopoff_c (struct bwin *w)
 WTopOff - the height of the used window's top border.
 BLITZ_ALIAS (dowtopoff, dowtopoff_c)
static ULONG dowleftoff_c (struct bwin *w)
 WLeftOff - the width of the used window's left border.
 BLITZ_ALIAS (dowleftoff, dowleftoff_c)
static UWORD dowindowwidth_c (struct bwin *w)
 WindowWidth - the width of the used window.
 WORD_FN (dowindowwidth, dowindowwidth_c)
static UWORD dowindowheight_c (struct bwin *w)
 WindowHeight - the height of the used window.
 WORD_FN (dowindowheight, dowindowheight_c)
static UWORD dogzzwidth_c (struct bwin *w)
 InnerWidth - the inner width of the used window (GZZWidth).
 WORD_FN (dogzzwidth, dogzzwidth_c)
static UWORD dogzzheight_c (struct bwin *w)
 InnerHeight - the inner height of the used window (GZZHeight).
 WORD_FN (dogzzheight, dogzzheight_c)
static void dosetpens2_c (UWORD f, UWORD b)
 WColour Foreground Colour,Background Colour - the text pens of the window output.
 BLITZ_ALIAS (dosetpens2, dosetpens2_c)
static void dosetpens_c (UWORD f)
 WColour Foreground Colour - the foreground pen of the window output.
 BLITZ_ALIAS (dosetpens, dosetpens_c)
static void dosetjam_c (UWORD j)
 WJam Jammode - the drawing mode of the window output and drawing.
 BLITZ_ALIAS (dosetjam, dosetjam_c)
static UWORD dowindowx_c (struct bwin *w)
 WindowX - the x position of the used window.
 WORD_FN (dowindowx, dowindowx_c)
static UWORD dowmousex_c (struct bwin *w)
 WMouseX - the mouse x position in the used window.
 WORD_FN (dowmousex, dowmousex_c)
static UWORD dowindowy_c (struct bwin *w)
 WindowY - the y position of the used window.
 WORD_FN (dowindowy, dowindowy_c)
static UWORD dowmousey_c (struct bwin *w)
 WMouseY - the mouse y position in the used window.
 WORD_FN (dowmousey, dowmousey_c)
static UWORD doeditat_c (void)
 Editat - where the last Edit$ in a window ended (cursor position).
static UWORD doeditexit_c (void)
 EditExit - the character that ended the last Edit$ in a window ($FFFF: another event in EditFrom mode).
static UWORD dorawkey_c (void)
 RawKey - the raw key code of the last key read from a window.
static ULONG doqual_c (void)
 Qualifier - the qualifier of the last key read from a window. Fixed (#313): a long function, d0 is set as a long; the original set only its low word.
 WORD_FN (doeditat, doeditat_c)
 WORD_FN (doeditexit, doeditexit_c)
 WORD_FN (dorawkey, dorawkey_c)
 BLITZ_ALIAS (doqual, doqual_c)
static void doeditfrom_c (void)
 EditFrom - the next Edit$ in a window starts at position 0 and ends only with Return.
 BLITZ_ALIAS (doeditfrom, doeditfrom_c)
static void doeditfrom2_c (UWORD at)
 EditFrom Characterpos - the next Edit$ in a window starts at that position and also ends on any other event (EditExit $FFFF).
 BLITZ_ALIAS (doeditfrom2, doeditfrom2_c)
static void docursor_c (WORD u)
 Cursor Thickness - the cursor of Edit$ in a window.
 BLITZ_ALIAS (docursor, docursor_c)
static ULONG doeventwindow_c (void)
 EventWindow - the window number of the last event.
 BLITZ_ALIAS (doeventwindow, doeventwindow_c)
static UWORD dowcursx_c (struct bwin *w)
 WCursX - the text cursor x of the used window.
 WORD_FN (dowcursx, dowcursx_c)
static UWORD dowcursy_c (struct bwin *w)
 WCursY - the text cursor y of the used window.
 WORD_FN (dowcursy, dowcursy_c)
static void dowlocate_c (WORD x, WORD y, struct bwin *w)
 WLocate Cursor x,Cursor y - place the text cursor of the used window.
 BLITZ_ALIAS (dowlocate, dowlocate_c)
static struct RastPort * setpcursor (struct bwin *pw)
static void printtext (struct bwin *pw, struct RastPort *rp, const UBYTE *s, UWORD n)
static struct bwin * outwin (void)
static ULONG windowprint (ULONG c)
static void windowprint2 (const UBYTE *s, ULONG n)
static void windowprint3 (const UBYTE *s)
static ULONG windowprint_c (ULONG c)
static void windowprint2_c (const UBYTE *s, ULONG n)
static void windowprint3_c (const UBYTE *s)
static ULONG callfilter (ULONG code, ULONG msg)
static int readevent (void)
static void updateevents (void)
static void unlinkmess (struct evnode **prev, struct evnode *e)
static void unlinkwin (struct Window *win)
static void unlinkall (void)
static void doflushevents_c (void)
 FlushEvents - drop all events.
 BLITZ_ALIAS (doflushevents, doflushevents_c)
static void redrawgad (struct Gadget *g, struct evnode *e)
static void refgada3 (struct Gadget *g, struct evnode *e)
static void notbuttongad (struct Gadget *g, struct evnode *e)
static void gadgetevent (struct evnode *e)
static struct MenuItem * findmenuitem (struct Menu *m, UWORD code)
static WORD menupart (UWORD v, UWORD all)
static ULONG doevent2 (void)
static ULONG windowinp (void)
static ULONG windowinp_c (void)
static WORD calcwidth (struct TextFont *f, UBYTE c)
static void zcursor (struct ed *ed)
static void update (struct ed *ed)
static UWORD calclen (struct ed *ed)
static void blankfrom (UBYTE *buf, WORD from)
static ULONG inputstr (UBYTE *buf, UWORD max)
static ULONG inputstr_c (UBYTE *buf, UWORD max)
void inputstr_h (void)
void windowprint2_h (void)
void windowprint3_h (void)
void handlers (void)
void windowinp_h (void)
void windowprint_h (void)
static void doinwindow_c (void)
 WindowInput Window# - Inkey$/Edit$ etc. read from a window.
 BLITZ_ALIAS (doinwindow, doinwindow_c)
static void dooutwindow_c (void)
 WindowOutput Window# - Print/NPrint write to a window.
 BLITZ_ALIAS (dooutwindow, dooutwindow_c)
static void dousewindow2 (void)
static void dousewindow_c (void)
 _use (Use Window) - WindowOutput and WindowInput of a window.
static struct RastPort * setpen2 (struct bwin *w, UWORD pen, struct Library *gfxbase)
static struct RastPort * scrollpen (struct bwin *w, struct Library *gfxbase)
static void dowbox2 (struct bwin *w, UWORD c, WORD x0, WORD y0, ULONG x1, ULONG y1, struct Library *gfxbase)
static void waitwin (volatile WORD *a, volatile WORD *b, ULONG x, ULONG y, WORD ox, WORD oy)
static void newidcmp (UBYTE *objs, UWORD max, UWORD verify, UWORD rmbtrap, struct Library *intbase)
static void windowopened (struct bwin *w, struct Window *win, UWORD num, struct Library *intbase)
static void openwindow (struct bwin *w, UWORD objoff, ULONG flags, const UBYTE *title, UBYTE dpen, UBYTE bpen, ULONG *glist, struct Screen **scr, WORD usedoff, const ULONG *lens, struct BitMap *sbm, struct Library *intbase)
static void opentags (struct bwin *w, UWORD objoff, ULONG flags, const UBYTE *title, ULONG len, struct Screen **scr, WORD usedoff, struct Library *intbase)
static void wchk_c (const ULONG *w)
static void wfontchk_c (const ULONG *w, const struct bb_intuifont *font)
static void wlinechk_c (UWORD n, const ULONG *w)
static void wpointerchk_c (const struct bb_shape *shape)
static void wmovechk_c (UWORD x, UWORD y, struct Window **w)
static void wsizechk_c (UWORD x, UWORD y, struct Window **w)
static void idcmpchk_c (ULONG f)
static void wblitchk_c (const ULONG *w, const struct bb_shape *shape)
static void wbtowchk_c (const ULONG *w, const UBYTE *bm)
static void wtagschk_c (UWORD n)

Variables

static ULONG prefilter
static ULONG postfilter
struct { 
   ULONG   zero 
   ULONG   idcmp 
   UWORD   evcode 
   UWORD   evqualifier 
   WORD   eventgnum 
   struct Window *   eventwin 
   WORD   menunum 
   WORD   itemnum 
   WORD   subnum 
   UWORD   charbuf 
   struct Library *   gfxbase 
   struct bwin *   prwindow 
   UWORD   outkey 
   struct Window *   outwindow 
   UWORD   outq 
   UWORD   outr 
   UWORD   kqualifier 
   UWORD   lrawkey 
   UWORD   msgon 
   ULONG   oldexcode 
   ULONG   oldexbits 
   struct evnode *   firstmess 
   struct evnode **   nextmess 
   struct bwin *   inwindow 
   WORD   underline 
   UWORD   efrom 
   UWORD   eat 
   WORD   emode 
   UWORD   eexit 
   UWORD   fpen 
   UWORD   bpen 
   UWORD   tjam 
   UWORD   outmouse 
   struct Window *   outmwin 
   ULONG   linw 
   UWORD   lflgs 
   WORD   evmousex 
   WORD   evmousey 
} V
static struct MsgPort myport
struct { 
   WORD   minw 
   WORD   minh 
   WORD   maxw 
   WORD   maxh 
} sizelimits = { 128, 64, 0, 0 }
static WORD sizelimitsok = -1
static APTR oldwptr
static struct Library * intbase_g
static UWORD kludgegnum
static struct Gadget * kludgegad
static struct Gadget * swallowgad
static UWORD maxchars
static ULONG origxy
static struct NewWindow anewwindow
struct { 
   struct TagItem flags title screen   newlook 
   struct TagItem   user [16] 
} tags
static struct BitMap mybmap
static const char mess1 [] = "Couldn't Open Window"
static const char mess6 [] = "Invalid Input Window"
static const char mess7 [] = "Invalid Output Window"

Macro Definition Documentation

◆ __NOLIBBASE__

#define __NOLIBBASE__

◆ GFX_STMT

#define GFX_STMT ( code,
chk,
name,
help,
... )
Value:
BLITZ_ARGS(__VA_ARGS__); \
BLITZ_LIBS(LIB_windowslib, BL_UA1, LIB_graphicslib, BL_LA6); \
BLITZ_SUBS(BLITZ_AMIGAONLY(code), chk, 0); \
BLITZ_NAME(name, help)
char * name
Definition asllib.c:150
#define BLITZ_ASTATEMENT()
Definition blitzlib.h:342
#define BL_UA1
Definition blitzlib.h:212
#define BL_LA6
Definition blitzlib.h:201
#define BLITZ_AMIGAONLY(code)
Definition blitzlib.h:510
UBYTE code[4]
Definition ridisasmlib.c:375

◆ GRAPHICS_BASE_NAME

#define GRAPHICS_BASE_NAME   gfxbase

◆ GUD

#define GUD ( g)
Value:
((struct gaduserdata *)&(g)->UserData)
static struct @033160051350056333240351231042361375027317344102 g
Definition windowslib.c:1658

◆ INTUITION_BASE_NAME

#define INTUITION_BASE_NAME   intbase

◆ LAYERS_BASE_NAME

#define LAYERS_BASE_NAME   layersbase

◆ LONGAT

#define LONGAT ( field)
Value:
(*(ULONG *)&V.field)
static struct @356220351140141130033317335230155361275127374235 V

◆ MAXWAIT

#define MAXWAIT   50

◆ SIMPLE_FN

#define SIMPLE_FN ( type,
code,
name )
Value:
BLITZ_ARGS0(); \
BLITZ_LIBS0(); \
BLITZ_SUBS(code, 0, 0); \
BLITZ_NAME(name, "")
#define BLITZ_AFUNCTION(t)
Definition blitzlib.h:344
UWORD type
Definition editlib.c:263

◆ THISPROC

#define THISPROC   ((struct Process *)SysBase->ThisTask)

◆ USED_FN

#define USED_FN ( code,
name )
Value:
BLITZ_ARGS0(); \
BLITZ_LIBS(LIB_windowslib, BL_UA1); \
BLITZ_SUBS(code, windowslib_wchk, 0); \
BLITZ_NAME(name, "")
#define BL_WORD
Definition blitzlib.h:91
void windowslib_wchk(void)

◆ V_EVCODE

#define V_EVCODE   8

◆ V_EVENTGNUM

#define V_EVENTGNUM   12

◆ V_EVMOUSEX

#define V_EVMOUSEX   98

◆ V_EVMOUSEY

#define V_EVMOUSEY   100

◆ V_EVQUALIFIER

#define V_EVQUALIFIER   10

◆ V_ITEMNUM

#define V_ITEMNUM   20

◆ V_MENUNUM

#define V_MENUNUM   18

◆ V_SUBNUM

#define V_SUBNUM   22

◆ W42

#define W42   (BL_PUSH | BL_WORD)

◆ WORD_FN

#define WORD_FN ( entry,
cfunc )
Value:
#define BLITZ_ALIAS(entry, cfunc)
Definition blitzlib.h:816
static struct snowfield * entry(ULONG n)
Definition risnowlib.c:205

◆ WUD

#define WUD ( w)
Value:
((struct wuserdata *)&((struct Window *)(w))->UserData)
struct TagItem w
Definition asllib.c:192
Definition windowslib.c:171

Function Documentation

◆ _bitmaptowindow()

void _bitmaptowindow ( struct bwin * w,
struct Library * gfxbase )

PutSuperBitMap - copy the super bitmap into the window (CopySBitMap).

Parameters
wa0: the used window object
gfxbasea6: the graphics base

◆ _showsuper()

void _showsuper ( WORD x,
WORD y,
struct bwin * w,
struct Library * layersbase )

PositionSuperBitMap x,y - the view of a super bitmap window.

ScrollLayer by the difference to the last position (kept in the window object).

Parameters
xd0: x
yd1: y
wa1: the used window object
layersbasea6: the layers base

◆ _windowtobitmap()

void _windowtobitmap ( struct bwin * w,
struct Library * gfxbase )

GetSuperBitMap - copy the window's contents into its super bitmap (SyncSBitMap).

Parameters
wa0: the used window object
gfxbasea6: the graphics base

◆ allocst()

UBYTE * allocst ( const UBYTE * s,
ULONG len )
static

◆ blankfrom()

void blankfrom ( UBYTE * buf,
WORD from )
static

◆ BLITZ_ALIAS() [1/21]

BLITZ_ALIAS ( doaddidcmp ,
doaddidcmp_c  )

◆ BLITZ_ALIAS() [2/21]

BLITZ_ALIAS ( docatchdoserrs ,
docatchdoserrs_c  )

◆ BLITZ_ALIAS() [3/21]

BLITZ_ALIAS ( docursor ,
docursor_c  )

◆ BLITZ_ALIAS() [4/21]

BLITZ_ALIAS ( doeditfrom ,
doeditfrom_c  )

◆ BLITZ_ALIAS() [5/21]

BLITZ_ALIAS ( doeditfrom2 ,
doeditfrom2_c  )

◆ BLITZ_ALIAS() [6/21]

BLITZ_ALIAS ( doeventwindow ,
doeventwindow_c  )

◆ BLITZ_ALIAS() [7/21]

BLITZ_ALIAS ( doflushevents ,
doflushevents_c  )

◆ BLITZ_ALIAS() [8/21]

BLITZ_ALIAS ( doinwindow ,
doinwindow_c  )

◆ BLITZ_ALIAS() [9/21]

BLITZ_ALIAS ( dooutwindow ,
dooutwindow_c  )

◆ BLITZ_ALIAS() [10/21]

BLITZ_ALIAS ( doqual ,
doqual_c  )

◆ BLITZ_ALIAS() [11/21]

BLITZ_ALIAS ( dosetevfilter ,
dosetevfilter_c  )

◆ BLITZ_ALIAS() [12/21]

BLITZ_ALIAS ( dosetjam ,
dosetjam_c  )

◆ BLITZ_ALIAS() [13/21]

BLITZ_ALIAS ( dosetpens ,
dosetpens_c  )

◆ BLITZ_ALIAS() [14/21]

BLITZ_ALIAS ( dosetpens2 ,
dosetpens2_c  )

◆ BLITZ_ALIAS() [15/21]

BLITZ_ALIAS ( doslimits ,
doslimits_c  )

◆ BLITZ_ALIAS() [16/21]

BLITZ_ALIAS ( doslimits2 ,
doslimits2_c  )

◆ BLITZ_ALIAS() [17/21]

BLITZ_ALIAS ( dosubidcmp ,
dosubidcmp_c  )

◆ BLITZ_ALIAS() [18/21]

BLITZ_ALIAS ( dowindowidcmp ,
dowindowidcmp_c  )

◆ BLITZ_ALIAS() [19/21]

BLITZ_ALIAS ( dowleftoff ,
dowleftoff_c  )

◆ BLITZ_ALIAS() [20/21]

BLITZ_ALIAS ( dowlocate ,
dowlocate_c  )

◆ BLITZ_ALIAS() [21/21]

BLITZ_ALIAS ( dowtopoff ,
dowtopoff_c  )

◆ buttons()

ULONG buttons ( void )

MButtons - the next mouse button event of the input window.

EventWindow etc. are above. Takes the outstanding button of Event or the next MOUSEBUTTONS event of the input window; those of other windows are dropped. Amiga mode only.

Errors: no input window -> "Invalid Input Window" (err6, DIFF: raised from the normal code).

Returns
d0: 0 = nothing, 1 left down, 2 right down, 5 left up, 6 right up

◆ calclen()

UWORD calclen ( struct ed * ed)
static

◆ calcwidth()

WORD calcwidth ( struct TextFont * f,
UBYTE c )
static

◆ callfilter()

ULONG callfilter ( ULONG code,
ULONG msg )
static

◆ codefinit()

void codefinit ( void )
static

finit - free the port's signal, restore the old pr_WindowPtr.

◆ codeinit()

ULONG codeinit ( struct Library * gfx,
struct Library * intb )
static

init - the shared message port and the defaults.

One message port for all windows (signal of the program's task), the empty event list, the default IDCMP, pens, cursor and size limits; keeps the old pr_WindowPtr for finit.

Parameters
gfxa0: the graphics base
intba1: the intuition base
Returns
d0: the port's address (the init value, long)

◆ doactivate()

void doactivate ( struct bwin * w,
struct Library * intbase )

Activate Window# - activate a window (ActivateWindow).

Amiga mode only. Errors (debugger only, wchk): "Uninitialized Window".

Parameters
wa1: the window object
intbasea6: the intuition base

◆ doaddidcmp()

void doaddidcmp ( void )

◆ doaddidcmp_c()

void doaddidcmp_c ( ULONG f)
static

AddIDCMP IDCMP_Flags - add flags to the IDCMP of the next windows.

Parameters
fd0: the IDCMP flags

◆ dobtow1()

void dobtow1 ( struct bwin * w,
struct BitMap * bm,
struct Library * gfxbase )

BitMaptoWindow Bitmap#,Window# - copy a whole bitmap into a window at 0,0 (BltBitMapRastPort, minterm $C0).

Errors (debugger only, wbtowchk): "Uninitialized Window", "Ininitialised BitMap".

Parameters
wa0: the window object
bma1: the bitmap object
gfxbasea6: the graphics base

◆ dobtow2()

void dobtow2 ( ULONG sx_reg,
ULONG sy_reg,
ULONG sx,
ULONG sy,
ULONG dx,
ULONG dy,
const UWORD * args,
struct bwin * w,
struct BitMap * bm,
struct Library * gfxbase )

BitMaptoWindow Bitmap#,Window#,srcx,srcy,destx,desty,wid,height - copy an area of a bitmap into a window.

The coordinates come in d2-d5, width and height from the argument stack; MOVE.w: the upper words of the registers stay (each value keeps the upper word of the register it is moved into). Errors as the short form.

Parameters
sx_regd0: the bitmap number register (upper word of srcx)
sy_regd1: the window number register (upper word of srcy)
sxd2: srcx
syd3: srcy
dxd4: destx
dyd5: desty
argsa2: the argument stack: width, height below it
wa0: the window object
bma1: the bitmap object
gfxbasea6: the graphics base

◆ docatchdoserrs()

void docatchdoserrs ( void )

◆ docatchdoserrs_c()

void docatchdoserrs_c ( struct bwin * w)
static

CatchDosErrs - DOS requesters appear on the used window.

Sets pr_WindowPtr of the program's process; finit restores the old one.

Errors (debugger only, wchk): "Uninitialized Window".

Parameters
wa1: the used window object

◆ docursor()

void docursor ( void )

◆ docursor_c()

void docursor_c ( WORD u)
static

Cursor Thickness - the cursor of Edit$ in a window.

Parameters
ud0: < 0 a block, >= 0 an underline of that thickness

◆ doeditat()

void doeditat ( void )

◆ doeditat_c()

UWORD doeditat_c ( void )
static

Editat - where the last Edit$ in a window ended (cursor position).

Returns
d0: the position (low word)

◆ doeditexit()

void doeditexit ( void )

◆ doeditexit_c()

UWORD doeditexit_c ( void )
static

EditExit - the character that ended the last Edit$ in a window ($FFFF: another event in EditFrom mode).

Returns
d0: the character (low word)

◆ doeditfrom()

void doeditfrom ( void )

◆ doeditfrom2()

void doeditfrom2 ( void )

◆ doeditfrom2_c()

void doeditfrom2_c ( UWORD at)
static

EditFrom Characterpos - the next Edit$ in a window starts at that position and also ends on any other event (EditExit $FFFF).

Parameters
atd0: the cursor position in the text

◆ doeditfrom_c()

void doeditfrom_c ( void )
static

EditFrom - the next Edit$ in a window starts at position 0 and ends only with Return.

◆ doemousex()

void doemousex ( void )

EMouseX - the mouse x position of the last event.

Result
d0.w: the position; every other register (and the upper word of d0) kept

◆ doemousey()

void doemousey ( void )

EMouseY - the mouse y position of the last event.

Result
d0.w: the position; every other register (and the upper word of d0) kept

◆ doevent()

ULONG doevent ( void )

Event - the next event, without waiting.

Takes the first event node (doevent2): sets the data of EventWindow, EventCode, EventQualifier, EMouseX/Y, GadgetHit (gadget up/down, gadgetslib's button groups and cycle texts), MenuHit/ItemHit/SubHit, the outstanding key (Inkey$) and mouse button (MButtons). Amiga mode only.

A gadget down of a string gadget gives an artificial "gadget up" ($40) on the next Event unless that is the real one; Fixed (#311): the real gadget up that comes after an artificial one is taken without a report (0; the original reported it a second time). MENUPICK appends one more MENUPICK node for the item's NextSelect, with the qualifier and iaddress of the picked event (Fixed (#312): the original left them unset).

Returns
d0: the IDCMP class, 0 = no event (or one with nothing to report)

◆ doevent2()

ULONG doevent2 ( void )
static

◆ doeventcode()

void doeventcode ( void )

EventCode - the IDCMP code of the last event.

Result
d0.w: the code; every other register (and the upper word of d0) kept

◆ doeventqualifier()

void doeventqualifier ( void )

EventQualifier - the qualifier of the last event.

Result
d0.w: the qualifier; every other register kept

◆ doeventwindow()

void doeventwindow ( void )

◆ doeventwindow_c()

ULONG doeventwindow_c ( void )
static

EventWindow - the window number of the last event.

MOVE.w into d0 after MOVE.l eventwin,d0: upper word = upper word of the pointer. Keeps a1, which wzlib holds across it (WZGadHelp, WZMenuHelp, WZGadName, WZMenuName): the C function uses only d0 and a0 (checked in the disassembly; KEEPS a1 in libs/tests/systest_cmdlibs.c).

Returns
d0: the window number (low word), -1 if there was no event

◆ doflushevents()

void doflushevents ( void )

◆ doflushevents2()

void doflushevents2 ( ULONG class)

FlushEvents IDCMP_Flag - drop all events of one class.

Long compare of the class. RAWKEY ($400) also drops the outstanding key, MOUSEBUTTONS (8) the outstanding mouse button.

Parameters
classd0: the IDCMP class

◆ doflushevents_c()

void doflushevents_c ( void )
static

FlushEvents - drop all events.

Takes the outstanding messages of the port into the list and frees the whole list; no outstanding key or mouse button any more.

◆ dogadgethit()

void dogadgethit ( void )

GadgetHit - the gadget id of the last gadget event (-1 at init).

Result
d0.w: the id; every other register kept

◆ dogzzheight()

void dogzzheight ( void )

◆ dogzzheight_c()

UWORD dogzzheight_c ( struct bwin * w)
static

InnerHeight - the inner height of the used window (GZZHeight).

Errors (debugger only, wchk): "Uninitialized Window".

Parameters
wa1: the used window object
Returns
d0: GZZHeight (low word)

◆ dogzzwidth()

void dogzzwidth ( void )

◆ dogzzwidth_c()

UWORD dogzzwidth_c ( struct bwin * w)
static

InnerWidth - the inner width of the used window (GZZWidth).

Errors (debugger only, wchk): "Uninitialized Window".

Parameters
wa1: the used window object
Returns
d0: GZZWidth (low word)

◆ doinnercls()

void doinnercls ( struct bwin * w,
struct Library * gfxbase )

InnerCls - clear the inside of the used window's borders with colour 0.

Parameters
wa1: the used window object
gfxbasea6: the graphics base

◆ doinnercls2()

void doinnercls2 ( UWORD c,
struct bwin * w,
struct Library * gfxbase )

InnerCls Colour - clear the inside of the used window's borders.

Parameters
cd0: the colour (pen)
wa1: the used window object
gfxbasea6: the graphics base

◆ doinwindow()

void doinwindow ( void )

◆ doinwindow_c()

void doinwindow_c ( void )
static

WindowInput Window# - Inkey$/Edit$ etc. read from a window.

Hands windowinp_h (inputoutputlib's input handler, -4 = the line editor) to inputoutputlib (setin).

a3: the window object (blitz_string)

◆ doitemhit()

void doitemhit ( void )

ItemHit - the item number of the last menu event, -1 for none.

Result
d0.w: the number; every other register kept

◆ domenuhit()

void domenuhit ( void )

MenuHit - the menu number of the last menu event, -1 for none.

Result
d0.w: the number; every other register kept

◆ domenusoff()

void domenusoff ( UBYTE * objs,
UWORD max,
struct Library * intbase )

MenusOff - switch the menus of all windows off.

Sets RMBTRAP and MENUVERIFY of every window (newidcmp; the event reader answers MENUVERIFY with MENUCANCEL). Amiga mode only.

Fixed (#310): the original reached only half of the windows (16 byte steps).

Parameters
objsa2: the window objects (base)
maxd2: the maximum of window objects
intbasea6: the intuition base

◆ domenusok()

void domenusok ( UWORD on,
UBYTE * objs,
UWORD max,
struct Library * intbase )

Menus On|Off - MenusOn or MenusOff.

Fixed (#310): the original reached only half of the windows (16 byte steps).

Parameters
ond0: <>0 = on (a word)
objsa2: the window objects (base)
maxd2: the maximum of window objects
intbasea6: the intuition base

◆ domenuson()

void domenuson ( UBYTE * objs,
UWORD max,
struct Library * intbase )

MenusOn - the menus of all windows work again.

Clears RMBTRAP and MENUVERIFY of every window (newidcmp). Amiga mode only.

Fixed (#310): the original stepped through the window objects with 16 bytes and only maximum slots: half of the windows were not reached.

Parameters
objsa2: the window objects (base)
maxd2: the maximum of window objects
intbasea6: the intuition base

◆ dooutwindow()

void dooutwindow ( void )

◆ dooutwindow_c()

void dooutwindow_c ( void )
static

WindowOutput Window# - Print/NPrint write to a window.

Hands windowprint_h (-8 = 0-terminated string, -4 = string with length, 0 = one character) to inputoutputlib (setout).

a3: the window object (blitz_string)

◆ doqual()

void doqual ( void )

◆ doqual_c()

ULONG doqual_c ( void )
static

Qualifier - the qualifier of the last key read from a window. Fixed (#313): a long function, d0 is set as a long; the original set only its low word.

Returns
d0: the qualifier & 255 (a long)

◆ dorawkey()

void dorawkey ( void )

◆ dorawkey_c()

UWORD dorawkey_c ( void )
static

RawKey - the raw key code of the last key read from a window.

Returns
d0: the code (low word)

◆ dosetevfilter()

void dosetevfilter ( void )

◆ dosetevfilter_c()

void dosetevfilter_c ( ULONG pre,
ULONG post )
static

SetEventFilter preprocess,postprocess - routines around every message.

The pre routine runs before a message is taken into the event list (d0 = message, 0 back = drop it), the post routine after it (d0 = message or 0); see callfilter. 0 = none.

Parameters
pred0: the preprocess routine
postd1: the postprocess routine

◆ dosetjam()

void dosetjam ( void )

◆ dosetjam_c()

void dosetjam_c ( UWORD j)
static

WJam Jammode - the drawing mode of the window output and drawing.

Parameters
jd0: the draw mode (SetDrMd)

◆ dosetpens()

void dosetpens ( void )

◆ dosetpens2()

void dosetpens2 ( void )

◆ dosetpens2_c()

void dosetpens2_c ( UWORD f,
UWORD b )
static

WColour Foreground Colour,Background Colour - the text pens of the window output.

Parameters
fd0: the foreground pen
bd1: the background pen

◆ dosetpens_c()

void dosetpens_c ( UWORD f)
static

WColour Foreground Colour - the foreground pen of the window output.

Parameters
fd0: the foreground pen

◆ doslimits()

void doslimits ( void )

◆ doslimits2()

void doslimits2 ( void )

◆ doslimits2_c()

void doslimits2_c ( WORD on)
static

SizeLimits Flag (the one argument form) - whether the next windows get the SizeLimits.

0: Window opens with all limits 0.

Parameters
ond0: <>0 = use the limits (a word)

◆ doslimits_c()

void doslimits_c ( WORD a,
WORD b,
WORD c,
WORD d )
static

SizeLimits Min Width,Min Height,Max Width,Max Height - the size limits of the windows opened next.

Parameters
ad0: minimum width
bd1: minimum height
cd2: maximum width
dd3: maximum height

◆ dosubhit()

void dosubhit ( void )

SubHit - the subitem number of the last menu event, -1 for none.

Result
d0.w: the number; every other register kept

◆ dosubidcmp()

void dosubidcmp ( void )

◆ dosubidcmp_c()

ULONG dosubidcmp_c ( ULONG f)
static

SubIDCMP IDCMP_Flags - remove flags from the IDCMP of the next windows.

NOT.l d0 - d0 comes back inverted.

Parameters
fd0: the IDCMP flags
Returns
d0: ~f (no result for Blitz)

◆ dousewindow()

void dousewindow ( void )

◆ dousewindow2()

void dousewindow2 ( void )
static

◆ dousewindow_c()

void dousewindow_c ( void )
static

_use (Use Window) - WindowOutput and WindowInput of a window.

a3: the window object (blitz_string)

◆ dowaitevent()

ULONG dowaitevent ( void )

WaitEvent - wait for the next event (statement or function).

As Event, but waits on the port until an event with a class <> 0 comes. Amiga mode only.

Returns
d0: the IDCMP class

◆ dowblit()

void dowblit ( ULONG xpos,
ULONG ypos,
ULONG y_reg,
struct bwin * w,
const struct bb_shape * shape,
struct Library * gfxbase )

WBlit Shape#,x,y - draw a shape into the used window.

The shape's planes as a BitMap (mybmap), with the cookie as mask if there is one (BltMaskBitMapRastPort minterm $E0, else BltBitMapRastPort $C0); the position is minus the shape's handle.

Errors (debugger only, wblitchk): "Uninitialized Window", "Ininitialised Shape".

Parameters
xposd1: x
yposd2: y (its upper word also becomes that of x)
y_regd3: the caller's d3 (its upper word becomes that of y)
wa0: the used window object
shapea2: the shape object
gfxbasea6: the graphics base

◆ dowbox()

void dowbox ( ULONG x0,
ULONG y0,
ULONG x1,
ULONG y1,
UWORD c,
struct bwin * w,
struct Library * gfxbase )

WBox X1,Y1,X2,Y2,Colour - a filled box in the used window.

The corners are sorted (unsigned word compare), then RectFill.

Parameters
x0d0: x1
y0d1: y1
x1d2: x2
y1d3: y2
cd4: the colour (pen)
wa1: the used window object
gfxbasea6: the graphics base

◆ dowbox2()

void dowbox2 ( struct bwin * w,
UWORD c,
WORD x0,
WORD y0,
ULONG x1,
ULONG y1,
struct Library * gfxbase )
static

◆ dowcircle()

void dowcircle ( WORD x,
WORD y,
ULONG r,
UWORD c,
struct bwin * w,
struct Library * gfxbase )

WCircle X,Y,Radius,Colour - a circle in the used window (an ellipse with both radii r).

Parameters
xd0: centre x
yd1: centre y
rd2: the radius
cd3: the colour (pen)
wa1: the used window object
gfxbasea6: the graphics base

◆ dowcls()

void dowcls ( struct bwin * w,
struct Library * gfxbase )

WCls - clear the used window with colour 0 (see dowcls2, #314).

Parameters
wa1: the used window object
gfxbasea6: the graphics base

◆ dowcls2()

void dowcls2 ( UWORD c,
struct bwin * w,
struct Library * gfxbase )

WCls Colour - clear the used window with a colour.

RectFill 0,0,Width-1,Height-1. Fixed (#314): the original filled from y = 1.

Parameters
cd0: the colour (pen)
wa1: the used window object
gfxbasea6: the graphics base

◆ dowcursx()

void dowcursx ( void )

◆ dowcursx_c()

UWORD dowcursx_c ( struct bwin * w)
static

WCursX - the text cursor x of the used window.

The cursor minus the origin of the window (the left border, 0 for GIMMEZEROZERO). Errors (debugger only, wchk): "Uninitialized Window".

Parameters
wa1: the used window object
Returns
d0: the cursor x (low word)

◆ dowcursy()

void dowcursy ( void )

◆ dowcursy_c()

UWORD dowcursy_c ( struct bwin * w)
static

WCursY - the text cursor y of the used window.

The cursor minus the origin of the window (the top border, 0 for GIMMEZEROZERO). Errors (debugger only, wchk): "Uninitialized Window".

Parameters
wa1: the used window object
Returns
d0: the cursor y (low word)

◆ dowellipse()

void dowellipse ( WORD x,
WORD y,
ULONG rx,
ULONG ry,
UWORD c,
struct bwin * w,
struct Library * gfxbase )

WEllipse X,Y,X Radius,Y Radius,Colour - an ellipse in the used window (DrawEllipse).

Parameters
xd0: centre x
yd1: centre y
rxd2: x radius
ryd3: y radius
cd4: the colour (pen)
wa1: the used window object
gfxbasea6: the graphics base

◆ dowfont()

void dowfont ( const struct bb_intuifont * font,
struct bwin * w,
struct Library * gfxbase )

WindowFont IntuiFont# - the font of the used window (SetFont).

Amiga mode only. Errors (debugger only, wfontchk): "Uninitialized Window", an IntuiFont without font -> "Uninitialized IntuiFont".

Parameters
fonta0: the IntuiFont object (+8 = TextFont)
wa1: the used window object
gfxbasea6: the graphics base

◆ dowfont2()

void dowfont2 ( ULONG style,
const struct bb_intuifont * font,
struct bwin * w,
struct Library * gfxbase )

WindowFont IntuiFont#,SoftStyle - font and soft style of the used window (SetFont, SetSoftStyle with all style bits enabled).

Amiga mode only. Errors as WindowFont IntuiFont#.

Parameters
styled1: the soft style
fonta0: the IntuiFont object (+8 = TextFont)
wa1: the used window object
gfxbasea6: the graphics base

◆ dowindow()

void dowindow ( UWORD objoff,
ULONG flags,
const UBYTE * title,
UBYTE dpen,
UBYTE bpen,
ULONG * glist,
struct Screen ** scr,
WORD usedoff,
const ULONG * lens,
struct Library * intbase )

Window Window#,X,Y,Width,Height,Flags,Title$,Dpen,Bpen,GadgetList# - open a window with a gadget list.

Closes the window object first, then opens the window on the used screen with the static NewWindow (SizeLimits if on, flag $80 = super bitmap, REPORTMOUSE if the IDCMP has MOUSEMOVE), gives it the shared port and the DefaultIDCMP, and makes it the used, input and output window. X, Y, Width and Height come from the argument stack. a3 = the window object (blitz_string). Amiga mode only.

Errors: OpenWindow fails -> "Couldn't Open Window" (err1).

The title is copied (allocst) and freed when the window is closed (fixed, intended deviation, #318: the original never frees it). Fixed (#319): flag $80 gets no bitmap in this form; the original used the bitmap of the last Window with BitMap#.

Parameters
objoffd0: the object offset (window number << 5)
flagsd1: the window flags
titled2: the title
dpend3: the detail pen
bpend4: the block pen
glista0: the gadget list object
scra1: the used screen object
usedoffd6: the offset of the used window in the globals
lensa2: the argument stack (position, size, title length)
intbasea6: the intuition base

◆ dowindow2()

void dowindow2 ( UWORD objoff,
ULONG flags,
const UBYTE * title,
UBYTE dpen,
UBYTE bpen,
struct Screen ** scr,
WORD usedoff,
const ULONG * lens,
struct Library * intbase )

Window Window#,X,Y,Width,Height,Flags,Title$,Dpen,Bpen - open a window without gadgets.

As the form with GadgetList#, with the empty gadget list (V.zero). Fixed (#319): flag $80 gets no bitmap in this form; the original used the bitmap of the last Window with BitMap#.

Parameters
objoffd0: the object offset (window number << 5)
flagsd1: the window flags
titled2: the title
dpend3: the detail pen
bpend4: the block pen
scra1: the used screen object
usedoffd6: the offset of the used window in the globals
lensa2: the argument stack (position, size, title length)
intbasea6: the intuition base

◆ dowindow3()

void dowindow3 ( UWORD objoff,
ULONG flags,
const UBYTE * title,
ULONG * glist,
struct Screen ** scr,
WORD usedoff,
const ULONG * lens,
struct Library * intbase )

Window Window#,X,Y,Width,Height,Flags,Title$,Dpen,Bpen,GadgetList#,BitMap# - open a window with a gadget list and a super bitmap.

As the form with GadgetList#; the pens come from the stack (-10/-12(a2)), a4 = the bitmap object, the super bitmap of flag $80 of this window only (fixed #319: the original kept it in bmapbase for the later windows too).

Parameters
objoffd0: the object offset (window number << 5)
flagsd1: the window flags
titled2: the title
glista0: the gadget list object
scra1: the used screen object
usedoffd6: the offset of the used window in the globals
lensa2: the argument stack (position, size, pens, title length)
intbasea6: the intuition base

◆ dowindowheight()

void dowindowheight ( void )

◆ dowindowheight_c()

UWORD dowindowheight_c ( struct bwin * w)
static

WindowHeight - the height of the used window.

Errors (debugger only, wchk): "Uninitialized Window".

Parameters
wa1: the used window object
Returns
d0: Height (low word)

◆ dowindowidcmp()

void dowindowidcmp ( void )

◆ dowindowidcmp_c()

void dowindowidcmp_c ( ULONG f)
static

DefaultIDCMP IDCMP_Flags - the IDCMP of the windows opened next.

Errors (debugger only, idcmpchk): 0 -> "IDCMP must not be 0".

Parameters
fd0: the IDCMP flags

◆ dowindowtags1()

void dowindowtags1 ( UWORD objoff,
ULONG flags,
const UBYTE * title,
struct Screen ** scr,
WORD usedoff,
const ULONG * lens,
struct Library * intbase )

WindowTags Window#,Flags,Title$ - open a window with OpenWindowTagList.

Closes the window object first; the tags are WA_Flags, WA_Title (a copy of the title), WA_CustomScreen (the used screen), WA_NewLookMenus, then the user tags. The window gets the shared port and the DefaultIDCMP and becomes the used, input and output window. a3 = the window object (blitz_string). Amiga mode only.

Errors: OpenWindowTagList fails -> "Couldn't Open Window" (err1).

Fixed (#316): the user tags are ended with TAG_DONE; the original wrote none and took over the user tags of the last WindowTags. The title copy is freed when the window is closed (fixed, #318: the original never frees it).

Parameters
objoffd0: the object offset (window number << 5)
flagsd1: the window flags
titled2: the title
scra1: the used screen object
usedoffd6: the offset of the used window in the globals
lensa2: the argument stack, -4 = the title length
intbasea6: the intuition base

◆ dowindowtags2()

void dowindowtags2 ( UWORD objoff,
ULONG flags,
const UBYTE * title,
UWORD n,
struct Screen ** scr,
WORD usedoff,
const ULONG * lens,
struct Library * intbase )

WindowTags Window#,Flags,Title$,Tag,Data[,Tag,Data...] - open a window with tag pairs.

As WindowTags Window#,Flags,Title$; the pairs come from the argument stack, then TAG_DONE (its data not set).

No limit for the 16 user tags in the command (the pairs come from the argument stack in reverse order and cannot be linked with TAG_MORE as in the &TagList form, #317). Errors (debugger only, wtagschk): more than 15 pairs -> "Too Many Tags" (Fixed (#961): the original has no check and writes behind the user tags).

Parameters
objoffd0: the object offset (window number << 5)
flagsd1: the window flags
titled2: the title
nd7: the number of tag pairs
scra1: the used screen object
usedoffd6: the offset of the used window in the globals
lensa2: the argument stack: the title length, then the pairs
intbasea6: the intuition base

◆ dowindowtags3()

void dowindowtags3 ( UWORD objoff,
ULONG flags,
const UBYTE * title,
const ULONG * tl,
struct Screen ** scr,
WORD usedoff,
const ULONG * lens,
struct Library * intbase )

WindowTags Window#,Flags,Title$,&TagList - open a window with a tag list of the program.

As WindowTags Window#,Flags,Title$; the list is copied up to and including TAG_DONE behind the fixed tags, at most 16 entries: a longer list gets TAG_MORE to its 16th pair as the 16th entry.

Fixed (intended deviation, #317): the original copies without a limit into the 32 longs of usertags.

Parameters
objoffd0: the object offset (window number << 5)
flagsd1: the window flags
titled2: the title
tld3: the tag list
scra1: the used screen object
usedoffd6: the offset of the used window in the globals
lensa2: the argument stack, -4 = the title length
intbasea6: the intuition base

◆ dowindowwidth()

void dowindowwidth ( void )

◆ dowindowwidth_c()

UWORD dowindowwidth_c ( struct bwin * w)
static

WindowWidth - the width of the used window.

Word functions (WORD_FN): MOVE.w into d0 in the original. Errors (debugger only, wchk): "Uninitialized Window".

Parameters
wa1: the used window object
Returns
d0: Width (low word)

◆ dowindowx()

void dowindowx ( void )

◆ dowindowx_c()

UWORD dowindowx_c ( struct bwin * w)
static

WindowX - the x position of the used window.

  • BorderLeft for a GIMMEZEROZERO window. Errors (debugger only, wchk): "Uninitialized Window".
Parameters
wa1: the used window object
Returns
d0: the x position (low word)

◆ dowindowy()

void dowindowy ( void )

◆ dowindowy_c()

UWORD dowindowy_c ( struct bwin * w)
static

WindowY - the y position of the used window.

  • BorderTop for a GIMMEZEROZERO window. Errors (debugger only, wchk): "Uninitialized Window".
Parameters
wa1: the used window object
Returns
d0: the y position (low word)

◆ dowleftoff()

void dowleftoff ( void )

◆ dowleftoff_c()

ULONG dowleftoff_c ( struct bwin * w)
static

WLeftOff - the width of the used window's left border.

MOVEQ #0,d0:MOVE.b border,d0.

Errors (debugger only, wchk): "Uninitialized Window".

Parameters
wa1: the used window object
Returns
d0: BorderLeft (unsigned byte)

◆ dowline()

void dowline ( UWORD c,
UWORD n,
UBYTE * args,
struct bwin * w,
struct Library * gfxbase )

WLine X1,Y1,X2,Y2[,Xn,Yn...],Colour - lines through the points in the used window (Move + PolyDraw).

The point pairs are on the argument stack and are swapped in place to x,y. Errors (debugger only, wlinechk): fewer than 2 points -> "Not Enough Coordinates", "Uninitialized Window".

Parameters
cd0: the colour (pen)
nd7: the number of points
argsa2: the argument stack (the points below it)
wa1: the used window object
gfxbasea6: the graphics base

◆ dowlocate()

void dowlocate ( void )

◆ dowlocate_c()

void dowlocate_c ( WORD x,
WORD y,
struct bwin * w )
static

WLocate Cursor x,Cursor y - place the text cursor of the used window.

Relative to the origin of the window. Errors (debugger only, wchk): "Uninitialized Window".

Parameters
xd0: the cursor x
yd1: the cursor y
wa1: the used window object

◆ dowmousex()

void dowmousex ( void )

◆ dowmousex_c()

UWORD dowmousex_c ( struct bwin * w)
static

WMouseX - the mouse x position in the used window.

  • BorderLeft for a GIMMEZEROZERO window. Errors (debugger only, wchk): "Uninitialized Window".
Parameters
wa1: the used window object
Returns
d0: MouseX (low word)

◆ dowmousey()

void dowmousey ( void )

◆ dowmousey_c()

UWORD dowmousey_c ( struct bwin * w)
static

WMouseY - the mouse y position in the used window.

  • BorderTop for a GIMMEZEROZERO window. Errors (debugger only, wchk): "Uninitialized Window".
Parameters
wa1: the used window object
Returns
d0: MouseY (low word)

◆ dowmove()

void dowmove ( ULONG x,
ULONG y,
struct bwin * w,
struct Library * intbase )

WMove X,Y - move the used window (MoveWindow by the difference).

Errors (debugger only, wmovechk): "Uninitialized Window"; a negative position or the window outside its screen -> "Can't move Window".

Waits until Intuition has moved the window: until it has the new position or another one than before (Intuition limits the move), at most MAXWAIT frames. Fixed (#320): the original waits only for the new position, without an end if Intuition limits it.

Parameters
xd0: the new x (the upper word goes to MoveWindow)
yd1: the new y
wa0: the used window object
intbasea6: the intuition base

◆ dowplot()

void dowplot ( WORD x,
WORD y,
UWORD c,
struct bwin * w,
struct Library * gfxbase )

WPlot X,Y,Colour - a point in the used window.

Parameters
xd0: x
yd1: y
cd2: the colour (pen)
wa1: the used window object
gfxbasea6: the graphics base

◆ dowpointer()

void dowpointer ( const struct bb_shape * shape,
ULONG xoff_reg,
ULONG yoff_reg,
struct Library * intbase )

WPointer Shape# - a shape as the mouse pointer of the used window.

A sprite pointer from the first two planes of the shape (one word wide), in chip memory (memlib globalloc, kept in the window object; an old one is cleared and freed first); SetPointer with the shape's handle as offset. a3 = the used window object (blitz_string). Amiga mode only.

Errors (debugger only, wpointerchk): "Uninitialized Shape", "Uninitialized Window".

Parameters
shapea2: the shape object
xoff_regd2: the caller's d2 (its upper word goes to SetPointer)
yoff_regd3: the caller's d3 (its upper word goes to SetPointer)
intbasea6: the intuition base

◆ dowprintscroll()

void dowprintscroll ( struct bwin * w,
struct Library * gfxbase )

WPrintScroll - scroll the used window if the text cursor is below its inner height.

Scrolls the inner area up so that the cursor line fits, and moves the cursor up by the same amount. Not Amiga mode only. Errors (debugger only, wchk): "Uninitialized Window".

Fixed (#315): sets the B pen and the draw mode only (scrollpen); the original set the A pen to 0 as well.

Parameters
wa1: the used window object
gfxbasea6: the graphics base

◆ dowrport()

void dowrport ( void )

RastPort(Window#) - the RastPort of a window (inline).

MOVE.l (a1),a1:MOVE.l 50(a1),d0 (Window->RPort).

Errors (debugger only, wchk): "Uninitialized Window".

  • w a1: the window object
    Result
    d0: the RastPort

◆ dowscroll()

void dowscroll ( ULONG x0,
ULONG y0,
ULONG x1,
ULONG y1,
WORD dx,
WORD dy,
struct bwin * w,
struct Library * gfxbase )

WScroll X1,Y1,X2,Y2,Delta X,Delta Y - scroll an area of the used window (ScrollRaster).

Fixed (#315): sets the B pen and the draw mode only (scrollpen); the original set the A pen to 0 as well.

Parameters
x0d0: x1
y0d1: y1
x1d2: x2
y1d3: y2
dxd4: delta x
dyd5: delta y
wa1: the used window object
gfxbasea6: the graphics base

◆ dowsize()

void dowsize ( ULONG x,
ULONG y,
struct bwin * w,
struct Library * intbase )

WSize Width,Height - resize the used window (SizeWindow by the difference).

Errors (debugger only, wsizechk): "Uninitialized Window"; a size <= 0, the window outside its screen or (fixed, #320: not in the original) a window with a sizing gadget sized beyond its size limits -> "Can't Size Window".

Waits until Intuition has sized the window: until it has the new size or another one than before (Intuition limits the size), at most MAXWAIT frames. Fixed (#320): the original waits only for the new size, without an end if Intuition limits it.

Parameters
xd0: the new width (the upper word goes to SizeWindow)
yd1: the new height
wa0: the used window object
intbasea6: the intuition base

◆ dowtitle()

void dowtitle ( const UBYTE * wt,
const UBYTE * st,
const ULONG * lens,
struct bwin * w,
struct Library * intbase )

WTitle windowtitle$,screentitle$ - the titles of the used window and its screen (SetWindowTitles).

Errors (debugger only, wchk): "Uninitialized Window".

Copies of both strings (allocst), kept in the object; the old copies are freed after SetWindowTitles. Fixed (intended deviation, #318): the original never frees them.

Parameters
wtd0: the window title
std1: the screen title
lensa2: the argument stack, the string lengths below it
wa1: the used window object
intbasea6: the intuition base

◆ dowtopoff()

void dowtopoff ( void )

◆ dowtopoff_c()

ULONG dowtopoff_c ( struct bwin * w)
static

WTopOff - the height of the used window's top border.

MOVEQ #0,d0:MOVE.b border,d0.

Errors (debugger only, wchk): "Uninitialized Window".

Parameters
wa1: the used window object
Returns
d0: BorderTop (unsigned byte)

◆ findmenuitem()

struct MenuItem * findmenuitem ( struct Menu * m,
UWORD code )
static

◆ freest()

void freest ( UBYTE * s)
static

◆ freewindow()

void freewindow ( struct Library * intbase)

CloseWindow Window# (and _free) - close a window.

Under Forbid: replies the messages of this window at the port, clears pr_WindowPtr if it is this window, ClearMenuStrip, UserPort = 0 (the port is shared), CloseWindow; then frees the events of this window and the title copies of the object (fixed, #318: the original keeps them). a3 = the window object (blitz_string); nothing happens if it is not open.

Fixed (intended deviation, #322): the original replies all messages of the port and frees the whole event list (unlinkall): the events of the other windows were lost.

Parameters
intbasea6: the intuition base

◆ gadgetevent()

void gadgetevent ( struct evnode * e)
static

◆ GFX_STMT() [1/5]

GFX_STMT ( dowbox ,
windowslib_wchk ,
"WBox" ,
" X1,
Y1 ,
X2 ,
Y2 ,
Colour" ,
BL_WORD ,
BL_WORD ,
BL_WORD ,
BL_WORD ,
BL_WORD  )

◆ GFX_STMT() [2/5]

GFX_STMT ( dowcircle ,
windowslib_wchk ,
"WCircle" ,
" X,
Y ,
Radius ,
Colour" ,
BL_WORD ,
BL_WORD ,
BL_WORD ,
BL_WORD  )

◆ GFX_STMT() [3/5]

GFX_STMT ( dowellipse ,
windowslib_wchk ,
"WEllipse" ,
" X,
Y ,
X Radius,
Y Radius,
Colour" ,
BL_WORD ,
BL_WORD ,
BL_WORD ,
BL_WORD ,
BL_WORD  )

◆ GFX_STMT() [4/5]

GFX_STMT ( dowplot ,
windowslib_wchk ,
"WPlot" ,
" X,
Y ,
Colour" ,
BL_WORD ,
BL_WORD ,
BL_WORD  )

◆ GFX_STMT() [5/5]

GFX_STMT ( dowscroll ,
windowslib_wchk ,
"WScroll" ,
" X1,
Y1 ,
X2 ,
Y2 ,
Delta X,
Delta Y" ,
BL_WORD ,
BL_WORD ,
BL_WORD ,
BL_WORD ,
BL_WORD ,
BL_WORD  )

◆ globalloc()

APTR globalloc ( ULONG size,
ULONG flags )
static

◆ globfree()

void globfree ( APTR mem,
ULONG size )
static

◆ handlers()

void handlers ( void )

◆ idcmpchk()

void idcmpchk ( void )

◆ idcmpchk_c()

void idcmpchk_c ( ULONG f)
static

◆ inputstr()

ULONG inputstr ( UBYTE * buf,
UWORD max )
static

◆ inputstr_c()

ULONG inputstr_c ( UBYTE * buf,
UWORD max )
static

◆ inputstr_h()

void inputstr_h ( void )

◆ menupart()

WORD menupart ( UWORD v,
UWORD all )
static

◆ newidcmp()

void newidcmp ( UBYTE * objs,
UWORD max,
UWORD verify,
UWORD rmbtrap,
struct Library * intbase )
static

◆ notbuttongad()

void notbuttongad ( struct Gadget * g,
struct evnode * e )
static

◆ opentags()

void opentags ( struct bwin * w,
UWORD objoff,
ULONG flags,
const UBYTE * title,
ULONG len,
struct Screen ** scr,
WORD usedoff,
struct Library * intbase )
static

◆ openwindow()

void openwindow ( struct bwin * w,
UWORD objoff,
ULONG flags,
const UBYTE * title,
UBYTE dpen,
UBYTE bpen,
ULONG * glist,
struct Screen ** scr,
WORD usedoff,
const ULONG * lens,
struct BitMap * sbm,
struct Library * intbase )
static

◆ outwin()

struct bwin * outwin ( void )
static

◆ printtext()

void printtext ( struct bwin * pw,
struct RastPort * rp,
const UBYTE * s,
UWORD n )
static

◆ rawkey()

UWORD rawkey ( UWORD code,
UWORD qual )
static

◆ readevent()

int readevent ( void )
static

◆ redrawgad()

void redrawgad ( struct Gadget * g,
struct evnode * e )
static

◆ refgada3()

void refgada3 ( struct Gadget * g,
struct evnode * e )
static

◆ scrollpen()

struct RastPort * scrollpen ( struct bwin * w,
struct Library * gfxbase )
static

◆ setpcursor()

struct RastPort * setpcursor ( struct bwin * pw)
static

◆ setpen2()

struct RastPort * setpen2 ( struct bwin * w,
UWORD pen,
struct Library * gfxbase )
static

◆ SIMPLE_FN() [1/15]

SIMPLE_FN ( BL_LONG ,
BLITZ_AMIGAONLY(doevent) ,
"Event"  )

◆ SIMPLE_FN() [2/15]

SIMPLE_FN ( BL_LONG ,
doqual ,
"Qualifier"  )

◆ SIMPLE_FN() [3/15]

SIMPLE_FN ( BL_WORD ,
BLITZ_AMIGAONLY(buttons) ,
"MButtons"  )

◆ SIMPLE_FN() [4/15]

SIMPLE_FN ( BL_WORD ,
BLITZ_AMIGAONLY(doeventcode) ,
"EventCode"  )

◆ SIMPLE_FN() [5/15]

SIMPLE_FN ( BL_WORD ,
BLITZ_AMIGAONLY(doeventqualifier) ,
"EventQualifier"  )

◆ SIMPLE_FN() [6/15]

SIMPLE_FN ( BL_WORD ,
doeditat ,
"Editat"  )

◆ SIMPLE_FN() [7/15]

SIMPLE_FN ( BL_WORD ,
doeditexit ,
"EditExit"  )

◆ SIMPLE_FN() [8/15]

SIMPLE_FN ( BL_WORD ,
doemousex ,
"EMouseX"  )

◆ SIMPLE_FN() [9/15]

SIMPLE_FN ( BL_WORD ,
doemousey ,
"EMouseY"  )

◆ SIMPLE_FN() [10/15]

SIMPLE_FN ( BL_WORD ,
doeventwindow ,
"EventWindow"  )

◆ SIMPLE_FN() [11/15]

SIMPLE_FN ( BL_WORD ,
dogadgethit ,
"GadgetHit"  )

◆ SIMPLE_FN() [12/15]

SIMPLE_FN ( BL_WORD ,
doitemhit ,
"ItemHit"  )

◆ SIMPLE_FN() [13/15]

SIMPLE_FN ( BL_WORD ,
domenuhit ,
"MenuHit"  )

◆ SIMPLE_FN() [14/15]

SIMPLE_FN ( BL_WORD ,
dorawkey ,
"RawKey"  )

◆ SIMPLE_FN() [15/15]

SIMPLE_FN ( BL_WORD ,
dosubhit ,
"SubHit"  )

◆ unlinkall()

void unlinkall ( void )
static

◆ unlinkmess()

void unlinkmess ( struct evnode ** prev,
struct evnode * e )
static

◆ unlinkwin()

void unlinkwin ( struct Window * win)
static

◆ update()

void update ( struct ed * ed)
static

◆ updateevents()

void updateevents ( void )
static

◆ USED_FN() [1/12]

USED_FN ( dogzzheight ,
"InnerHeight"  )

◆ USED_FN() [2/12]

USED_FN ( dogzzwidth ,
"InnerWidth"  )

◆ USED_FN() [3/12]

USED_FN ( dowcursx ,
"WCursX"  )

◆ USED_FN() [4/12]

USED_FN ( dowcursy ,
"WCursY"  )

◆ USED_FN() [5/12]

USED_FN ( dowindowheight ,
"WindowHeight"  )

◆ USED_FN() [6/12]

USED_FN ( dowindowwidth ,
"WindowWidth"  )

◆ USED_FN() [7/12]

USED_FN ( dowindowx ,
"WindowX"  )

◆ USED_FN() [8/12]

USED_FN ( dowindowy ,
"WindowY"  )

◆ USED_FN() [9/12]

USED_FN ( dowleftoff ,
"WLeftOff"  )

◆ USED_FN() [10/12]

USED_FN ( dowmousex ,
"WMouseX"  )

◆ USED_FN() [11/12]

USED_FN ( dowmousey ,
"WMouseY"  )

◆ USED_FN() [12/12]

USED_FN ( dowtopoff ,
"WTopOff"  )

◆ waitwin()

void waitwin ( volatile WORD * a,
volatile WORD * b,
ULONG x,
ULONG y,
WORD ox,
WORD oy )
static

◆ wblitchk()

void wblitchk ( void )

◆ wblitchk_c()

void wblitchk_c ( const ULONG * w,
const struct bb_shape * shape )
static

◆ wbtowchk()

void wbtowchk ( void )

◆ wbtowchk_c()

void wbtowchk_c ( const ULONG * w,
const UBYTE * bm )
static

◆ wchk_c()

void wchk_c ( const ULONG * w)
static

◆ wfontchk()

void wfontchk ( void )

◆ wfontchk_c()

void wfontchk_c ( const ULONG * w,
const struct bb_intuifont * font )
static

◆ windowinp()

ULONG windowinp ( void )
static

◆ windowinp_c()

ULONG windowinp_c ( void )
static

◆ windowinp_h()

void windowinp_h ( void )

◆ windowopened()

void windowopened ( struct bwin * w,
struct Window * win,
UWORD num,
struct Library * intbase )
static

◆ windowprint()

ULONG windowprint ( ULONG c)
static

◆ windowprint2()

void windowprint2 ( const UBYTE * s,
ULONG n )
static

◆ windowprint2_c()

void windowprint2_c ( const UBYTE * s,
ULONG n )
static

◆ windowprint2_h()

void windowprint2_h ( void )

◆ windowprint3()

void windowprint3 ( const UBYTE * s)
static

◆ windowprint3_c()

void windowprint3_c ( const UBYTE * s)
static

◆ windowprint3_h()

void windowprint3_h ( void )

◆ windowprint_c()

ULONG windowprint_c ( ULONG c)
static

◆ windowprint_h()

void windowprint_h ( void )

◆ windowslib_wchk()

void windowslib_wchk ( void )

◆ wlinechk()

void wlinechk ( void )

◆ wlinechk_c()

void wlinechk_c ( UWORD n,
const ULONG * w )
static

◆ wmovechk()

void wmovechk ( void )

◆ wmovechk_c()

void wmovechk_c ( UWORD x,
UWORD y,
struct Window ** w )
static

◆ WORD_FN() [1/13]

WORD_FN ( doeditat ,
doeditat_c  )

◆ WORD_FN() [2/13]

WORD_FN ( doeditexit ,
doeditexit_c  )

◆ WORD_FN() [3/13]

WORD_FN ( dogzzheight ,
dogzzheight_c  )

◆ WORD_FN() [4/13]

WORD_FN ( dogzzwidth ,
dogzzwidth_c  )

◆ WORD_FN() [5/13]

WORD_FN ( dorawkey ,
dorawkey_c  )

◆ WORD_FN() [6/13]

WORD_FN ( dowcursx ,
dowcursx_c  )

◆ WORD_FN() [7/13]

WORD_FN ( dowcursy ,
dowcursy_c  )

◆ WORD_FN() [8/13]

◆ WORD_FN() [9/13]

WORD_FN ( dowindowwidth ,
dowindowwidth_c  )

◆ WORD_FN() [10/13]

WORD_FN ( dowindowx ,
dowindowx_c  )

◆ WORD_FN() [11/13]

WORD_FN ( dowindowy ,
dowindowy_c  )

◆ WORD_FN() [12/13]

WORD_FN ( dowmousex ,
dowmousex_c  )

◆ WORD_FN() [13/13]

WORD_FN ( dowmousey ,
dowmousey_c  )

◆ wpointerchk()

void wpointerchk ( void )

◆ wpointerchk_c()

void wpointerchk_c ( const struct bb_shape * shape)
static

◆ wsizechk()

void wsizechk ( void )

◆ wsizechk_c()

void wsizechk_c ( UWORD x,
UWORD y,
struct Window ** w )
static

◆ wtagschk()

void wtagschk ( void )

◆ wtagschk_c()

void wtagschk_c ( UWORD n)
static

◆ zcursor()

void zcursor ( struct ed * ed)
static

Variable Documentation

◆ anewwindow

struct NewWindow anewwindow
static
Initial value:
= {
.MinWidth = 0x20, .MinHeight = 0x40, .MaxWidth = 0xffff, .MaxHeight = 0xffff }

◆ bpen

UWORD bpen

◆ charbuf

UWORD charbuf

◆ eat

UWORD eat

◆ eexit

UWORD eexit

◆ efrom

UWORD efrom

◆ emode

WORD emode

◆ evcode

UWORD evcode

◆ eventgnum

WORD eventgnum

◆ eventwin

struct Window* eventwin

◆ evmousex

WORD evmousex

◆ evmousey

WORD evmousey

◆ evqualifier

UWORD evqualifier

◆ firstmess

struct evnode* firstmess

◆ fpen

UWORD fpen

◆ gfxbase

struct Library* gfxbase

◆ idcmp

ULONG idcmp

◆ intbase_g

struct Library* intbase_g
static

◆ inwindow

struct bwin* inwindow

◆ itemnum

WORD itemnum

◆ kludgegad

struct Gadget* kludgegad
static

◆ kludgegnum

UWORD kludgegnum
static

◆ kqualifier

UWORD kqualifier

◆ lflgs

UWORD lflgs

◆ linw

ULONG linw

◆ lrawkey

UWORD lrawkey

◆ maxchars

UWORD maxchars
static

◆ maxh

WORD maxh

◆ maxw

WORD maxw

◆ menunum

WORD menunum

◆ mess1

const char mess1[] = "Couldn't Open Window"
static

◆ mess6

const char mess6[] = "Invalid Input Window"
static

◆ mess7

const char mess7[] = "Invalid Output Window"
static

◆ minh

WORD minh

◆ minw

WORD minw

◆ msgon

UWORD msgon

◆ mybmap

struct BitMap mybmap
static

◆ myport

struct MsgPort myport
static

◆ newlook

struct TagItem flags title screen newlook

◆ nextmess

struct evnode** nextmess

◆ oldexbits

ULONG oldexbits

◆ oldexcode

ULONG oldexcode

◆ oldwptr

APTR oldwptr
static

◆ origxy

ULONG origxy
static

◆ outkey

UWORD outkey

◆ outmouse

UWORD outmouse

◆ outmwin

struct Window* outmwin

◆ outq

UWORD outq

◆ outr

UWORD outr

◆ outwindow

struct Window* outwindow

◆ postfilter

ULONG postfilter
static

◆ prefilter

ULONG prefilter
static

◆ prwindow

struct bwin* prwindow

◆ [struct]

struct { ... } sizelimits

◆ sizelimitsok

WORD sizelimitsok = -1
static

◆ subnum

WORD subnum

◆ swallowgad

struct Gadget* swallowgad
static

◆ [struct]

struct { ... } tags
Initial value:
= {
{ WA_Flags, 0 }, { WA_Title, 0 }, { WA_CustomScreen, 0 }, { WA_NewLookMenus, (ULONG)-1 } }

◆ tjam

UWORD tjam

◆ underline

void underline

◆ user

struct TagItem user[16]

◆ [struct]

struct { ... } V
Initial value:
= { .idcmp = 0x100 + 0x200 + 0x40 + 0x20 + 0x400 + 8 + 0x40000 + 0x80000 + 2 + 4,
.nextmess = &V.firstmess, .underline = -1 }

◆ zero

ULONG zero