|
BB2 C port
API reference: Blitz libraries in C and the shared code
|
Data Structures | |
| struct | lockflagstags |
| struct | onetag |
| struct | gltags |
| struct | rthandlerinfo |
Macros | |
| #define | LVO_rtAllocRequestA (-30) |
| #define | LVO_rtFreeRequest (-36) |
| #define | LVO_rtChangeReqAttrA (-48) |
| #define | LVO_rtFileRequestA (-54) |
| #define | LVO_rtFreeFileList (-60) |
| #define | LVO_rtEZRequestA (-66) |
| #define | LVO_rtGetStringA (-72) |
| #define | LVO_rtGetLongA (-78) |
| #define | LVO_rtFontRequestA (-96) |
| #define | LVO_rtPaletteRequestA (-102) |
| #define | LVO_rtReqHandlerA (-108) |
| #define | LVO_rtScreenModeRequestA (-144) |
| #define | LVO_rtLockWindow (-156) |
| #define | LVO_rtUnlockWindow (-162) |
| #define | RTJSR_(lvo, d0v, a0v, a1v, a2v, a3v, a4v, seta4) |
| #define | RTJSR(lvo, d0v, a0v, a1v, a2v, a3v) |
| #define | RTJSR4(lvo, d0v, a0v, a1v, a2v, a3v, a4v) |
| #define | RTJSR0(lvo, d0v, a0v, a1v) |
| #define | RTCALL(cancel, call) |
| #define | TAG_LOCKWINDOW { RT_LockWindow, (ULONG)-1 } |
| #define | TAG_CENTERSCR { RT_ReqPos, REQPOS_CENTERSCR } |
| #define | ALLOC(var, type) |
| #define | FREEREQ(var) |
Functions | |
| void | _rtrequest (void) |
| void | _rtrequestPos (void) |
| void | _rtrequestXtra (void) |
| void | _rtfreq (void) |
| void | _rtfontreq (void) |
| void | _rtsmreq (void) |
| void | _rtsmreqf (void) |
| void | _rtpalreq (void) |
| void | _rtgetlong (void) |
| void | _rtgetlongDef (void) |
| void | _rtgetlongrng (void) |
| void | _rtgetlongrngDef (void) |
| void | _rtgetstr (void) |
| void | _rtgetstrDef (void) |
| void | _rtsfreq (void) |
| void | _rtsetdefdir (void) |
| void | _rtpreq (void) |
| void | _rtlockwin (void) |
| void | _rtunlockwin (void) |
| void | _rtsetpat (void) |
| void | _rtfreepat (void) |
| void | _rtflagsrequest (void) |
| void | _rtflagsrequestPos (void) |
| void | _rtTagrequest (void) |
| void | _rtTagsfreq (void) |
| void | _rtMfreq (void) |
| void | _rtnxtentry (void) |
| void | _rtasrequest (void) |
| void | _rtcheckasreq (void) |
| void | _rtendasreq (void) |
| void | _rtver (void) |
| void | _rtrev (void) |
| void | _rtactive (void) |
| void | _rtasPrequest (void) |
| void | _rtcheckasPreq (void) |
| void | _rtendasPreq (void) |
| void | _rtreturnvalue (void) |
| void | _initreqlib (void) |
| void | _cleanupreqlib (void) |
| static ULONG | copystring (const UBYTE *s, ULONG n) |
| static ULONG | copydir (const struct rtFileRequester *req, ULONG n) |
| static UBYTE * | allocst (const UBYTE *s, ULONG len) |
| static void | freest (UBYTE *p) |
| static ULONG | allocreq (ULONG type) |
| static void | freereqs (void) |
| static ULONG | initreqlib_c (void) |
| init: opens reqtools.library V38 and allocates the seven requesters. | |
| static void | cleanupreqlib_c (void) |
| finit: frees the seven requesters and the file list of the last multi-load, closes reqtools.library. | |
| static BB_BOOL | rtactive_c (void) |
| IsReqToolsActive: whether init opened reqtools.library and allocated all its requesters. | |
| static ULONG | rtreturnvalue_c (void) |
| RTReturnValue: the result of the last reqtools call that stores it. | |
| static ULONG | rtver_c (ULONG callerd0) |
| RTVersion: reqtools.library's lib_Version. | |
| static ULONG | rtrev_c (ULONG callerd0) |
| RTRevision: reqtools.library's lib_Revision. | |
| static ULONG | rtrequest_c (STRPTR title, APTR body, STRPTR gadget, const ULONG *lens) |
| RTEZRequest(Title$,BodyText$,GadgetText$): an rtEZRequestA requester, centred on the screen. | |
| static ULONG | rtrequestPos_c (STRPTR title, APTR body, STRPTR gadget, ULONG pos, const ULONG *lens) |
| RTEZRequest(Title$,BodyText$,GadgetText$,ReqPosition): as above at the given position (for this call). | |
| static ULONG | rtrequestXtra_c (STRPTR title, APTR body, STRPTR gadget, ULONG pos, ULONG def, ULONG flags, const ULONG *lens) |
| RTEZRequest(Title$,BodyText$,GadgetText$,ReqPosition,DefaultResponse,Flags): as above with default response and EZ flags (for this call). | |
| static ULONG | rtTagrequest_c (STRPTR body, STRPTR gadget, APTR tags) |
| RTRequest(BodyText$,GadgetText$,TagList): rtEZRequestA with the caller's tag list. | |
| static ULONG | rtflagsrequest_c (STRPTR title, STRPTR body, STRPTR gadget, ULONG idcmp, const ULONG *lens) |
| RTEZFlagsRequest(Title$,BodyText$,GadgetText$,IDCMPFlags): an EZ requester that also ends on the given IDCMP events. | |
| static ULONG | rtflagsrequestPos_c (STRPTR title, STRPTR body, STRPTR gadget, ULONG idcmp, ULONG pos, const ULONG *lens) |
| RTEZFlagsRequest(Title$,BodyText$,GadgetText$,IDCMPFlags,ReqPosition): as above at the given position (for this call). | |
| static ULONG | filerequest (struct rtFileRequester *req, STRPTR title, UBYTE *name, APTR tags) |
| static ULONG | rtfreq_c (STRPTR title, const UBYTE *file) |
| RTEZLoadFile(Title$,Filename$): the load file requester; the chosen path. | |
| static ULONG | rtTagsfreq_c (STRPTR title, const UBYTE *file, APTR tags) |
| RTFileRequest(Title$,FileName$,TagList): a file requester of its own with the caller's tag list; the chosen path. | |
| static ULONG | rtsfreq_c (STRPTR title, const UBYTE *file) |
| RTEZSaveFile(Title$,Filename$): the save file requester ("Save" button); the chosen path. | |
| static ULONG | rtpreq_c (STRPTR title) |
| RTEZPathRequest(Title$): a directory requester (no files); the chosen directory. | |
| static ULONG | rtsetdefdir_c (ULONG n, STRPTR dir) |
| RTEZSetDefaultDirectory Requester#,Directory$: sets the directory of a file requester (rtChangeReqAttrA RTFI_Dir). | |
| static ULONG | rtsetpat_c (ULONG n, STRPTR pat) |
| RTEZSetPattern Requester#,Pattern$: sets the match pattern of a file requester and switches its pattern gadget on. | |
| static ULONG | rtfreepat_c (ULONG n) |
| RTEZFreePattern Requester#: switches the pattern gadget of a file requester off again (its flags back to the default). | |
| static ULONG | rtMfreq_c (STRPTR title) |
| RTEZMultiLoadFile(Title$): the multi-select file requester; the names then come from RTNextPathEntry. | |
| static ULONG | rtnxtentry_c (void) |
| RTNextPathEntry: the next path of RTEZMultiLoadFile's list. | |
| static ULONG | rtfontreq_c (STRPTR title) |
| RTEZFontRequest(Title$): the font requester (with style); the chosen font. | |
| static ULONG | rtsmreq_c (STRPTR title) |
| RTEZScreenModeRequest(Title$): the screen mode requester (size and depth gadgets); the chosen mode. | |
| static ULONG | rtsmreqf_c (STRPTR title, ULONG flags) |
| RTEZScreenModeRequest(Title$,DisplayFlags): as above with the given requester flags (RTSC_Flags; kept until a choice is made). | |
| static ULONG | rtpalreq_c (STRPTR title, ULONG first) |
| RTEZPaletteRequest(Title$,FirstColour): the palette requester. | |
| static ULONG | rtgetlong_c (STRPTR title, STRPTR body) |
| RTEZGetLong(Title$,BodyText$): asks for a number (rtGetLongA). | |
| static ULONG | rtgetlongDef_c (STRPTR title, STRPTR body, ULONG def) |
| RTEZGetLong(Title$,BodyText$,DefaultValue): as above with a default value. | |
| static ULONG | rtgetlongrng_c (STRPTR title, STRPTR body, ULONG min, ULONG max) |
| RTEZGetLongRange(Title$,BodyText$,Min,Max): asks for a number in a range (rtGetLongA with RTGL_Min/RTGL_Max). | |
| static ULONG | rtgetlongrngDef_c (STRPTR title, STRPTR body, ULONG min, ULONG max, ULONG def) |
| RTEZGetLongRange(Title$,BodyText$,Min,Max,DefaultValue): as above with a default value. | |
| static UBYTE * | gsalloc (ULONG size) |
| static ULONG | getstring (STRPTR title, STRPTR body, ULONG max) |
| static ULONG | rtgetstr_c (STRPTR title, STRPTR body, ULONG max) |
| RTEZGetString(Title$,BodyText$,MaxChars): asks for a string (rtGetStringA). | |
| static ULONG | rtgetstrDef_c (STRPTR title, STRPTR body, ULONG max, const UBYTE *def) |
| RTEZGetString(Title$,BodyText$,MaxChars,DefaultString): as above, the default string copied into the buffer first. | |
| static ULONG | rtlockwin_c (APTR *win) |
| RTLockWindow(Window#): locks a window against input (rtLockWindow). | |
| static ULONG | rtunlockwin_c (ULONG lock, APTR *win) |
| RTUnlockWindow Window#,Lock: unlocks a window locked with RTLockWindow (rtUnlockWindow). | |
| static ULONG | waitmask (const APTR handler) |
| static ULONG | rtasrequest_c (STRPTR title, STRPTR body, STRPTR gadget, const UBYTE *obj) |
| RTASyncRequest(Title$,BodyText$,GadgetText$): opens an EZ requester that runs alongside the program (RT_ReqHandler). | |
| static ULONG | rtcheckasreq_c (void) |
| RTCheckASyncRequest: polls the requester of RTASyncRequest (rtReqHandlerA). | |
| static ULONG | rtendasreq_c (void) |
| RTEndASyncRequest: ends the requester of RTASyncRequest (rtReqHandlerA with RTRH_EndRequest, the handler's WaitMask as the signals, fixed #454). | |
| static ULONG | rtasPrequest_c (STRPTR title, ULONG first, const UBYTE *obj) |
| RTASyncPaletteRequest(Title$,FirstColour): opens a palette requester that runs alongside the program (RT_ReqHandler). | |
| static BB_BOOL | rtcheckasPreq_c (void) |
| RTCheckASyncPaletteRequest: polls the requester of RTASyncPaletteRequest (rtReqHandlerA). | |
| static ULONG | rtendasPreq_c (void) |
| RTEndASyncPaletteRequest: ends the requester of RTASyncPaletteRequest (rtReqHandlerA with RTRH_EndRequest, the handler's WaitMask as the signals, fixed #454). | |
Variables | |
| static const char | version [] |
| static struct Library * | rtbase |
| static BB_BOOL | ReqToolsActive |
| static ULONG | returnvalue |
| static struct rtFileRequester * | filereq |
| static struct rtFontRequester * | fontreq |
| static struct rtScreenModeRequester * | smreq |
| static struct rtFileRequester * | Sfilereq |
| static struct rtFileRequester * | preq |
| static struct rtFileRequester * | Tfilereq |
| static struct rtFileRequester * | Mfilereq |
| static const char | rtName [] = "reqtools.library" |
| static UBYTE | fname [108] |
| struct { | |
| struct TagItem pos lockwin underscore flags defres title end | |
| } | RequestTagList |
| static STRPTR | swsFreq |
| static UBYTE * | filenamestr |
| static struct lockflagstags | freqTagList |
| static struct lockflagstags | fontTagList |
| struct { | |
| APTR name | |
| UWORD ysize | |
| UWORD styleflags | |
| } | myfont |
| static struct lockflagstags | smTagList |
| struct { | |
| ULONG DisplayID | |
| UWORD DisplayWidth | |
| UWORD DisplayHeight | |
| UWORD DisplayDepth | |
| UWORD OverscanType | |
| ULONG Autoscroll | |
| } | smRetType |
| struct { | |
| struct TagItem color lockwin end | |
| } | palreqTagList = { { RTPA_Color, 0 }, TAG_LOCKWINDOW, { TAG_END, 0 } } |
| static ULONG | glValue |
| static struct gltags | glTagList |
| static ULONG | glrValue |
| struct { | |
| struct TagItem lockwin textfmt pos flags min max end | |
| } | glrTagList |
| static UBYTE * | callerstring |
| static UBYTE * | swsPtr |
| static UBYTE * | gsBuffer |
| static ULONG | gsTxtSize |
| static ULONG | gsActual |
| static struct gltags | gsTagList |
| static const char | SaveTxt [] = "Save" |
| static STRPTR | swsSFreq |
| static UBYTE * | Sfilenamestr |
| struct { | |
| struct TagItem lockwin oktext flags end | |
| } | SfreqTagList |
| static struct onetag | sddTagList = { { RTFI_Dir, 0 }, { TAG_END, 0 } } |
| static struct onetag | spTagList = { { RTFI_MatchPat, 0 }, { TAG_END, 0 } } |
| static STRPTR | swsPreq |
| struct { | |
| struct TagItem flags lockwin end | |
| } | preqTagList = { { RTFI_Flags, FREQF_NOFILES }, TAG_LOCKWINDOW, { TAG_END, 0 } } |
| struct { | |
| struct TagItem title pos lockwin underscore idcmp end | |
| } | RequestFTagList |
| static STRPTR | swsTFreq |
| static UBYTE * | Tfilenamestr |
| static struct rtFileList * | Mfilelist |
| static struct rtFileList * | CurEntry |
| static struct lockflagstags | MfreqTagList |
| static APTR | myhandler |
| static APTR | myPhandler |
| struct { | |
| struct TagItem pos lockwin title handler end | |
| } | asRequestTagList |
| struct { | |
| struct TagItem title color handler end | |
| } | asPRequestTagList |
| static const struct onetag | endreqTL = { { RTRH_EndRequest, 0 }, { TAG_END, 0 } } |
| static const struct onetag | endPreqTL = { { RTRH_EndRequest, 0 }, { TAG_END, 0 } } |
| #define ALLOC | ( | var, | |
| type ) |
| #define FREEREQ | ( | var | ) |
| #define LVO_rtAllocRequestA (-30) |
| #define LVO_rtChangeReqAttrA (-48) |
| #define LVO_rtEZRequestA (-66) |
| #define LVO_rtFileRequestA (-54) |
| #define LVO_rtFontRequestA (-96) |
| #define LVO_rtFreeFileList (-60) |
| #define LVO_rtFreeRequest (-36) |
| #define LVO_rtGetLongA (-78) |
| #define LVO_rtGetStringA (-72) |
| #define LVO_rtLockWindow (-156) |
| #define LVO_rtPaletteRequestA (-102) |
| #define LVO_rtReqHandlerA (-108) |
| #define LVO_rtScreenModeRequestA (-144) |
| #define LVO_rtUnlockWindow (-162) |
| #define RTCALL | ( | cancel, | |
| call ) |
| #define RTJSR | ( | lvo, | |
| d0v, | |||
| a0v, | |||
| a1v, | |||
| a2v, | |||
| a3v ) |
| #define RTJSR0 | ( | lvo, | |
| d0v, | |||
| a0v, | |||
| a1v ) |
| #define RTJSR4 | ( | lvo, | |
| d0v, | |||
| a0v, | |||
| a1v, | |||
| a2v, | |||
| a3v, | |||
| a4v ) |
| #define RTJSR_ | ( | lvo, | |
| d0v, | |||
| a0v, | |||
| a1v, | |||
| a2v, | |||
| a3v, | |||
| a4v, | |||
| seta4 ) |
| #define TAG_CENTERSCR { RT_ReqPos, REQPOS_CENTERSCR } |
| #define TAG_LOCKWINDOW { RT_LockWindow, (ULONG)-1 } |
| void _cleanupreqlib | ( | void | ) |
| void _initreqlib | ( | void | ) |
| void _rtactive | ( | void | ) |
| void _rtasPrequest | ( | void | ) |
| void _rtasrequest | ( | void | ) |
| void _rtcheckasPreq | ( | void | ) |
| void _rtcheckasreq | ( | void | ) |
| void _rtendasPreq | ( | void | ) |
| void _rtendasreq | ( | void | ) |
| void _rtflagsrequest | ( | void | ) |
| void _rtflagsrequestPos | ( | void | ) |
| void _rtfontreq | ( | void | ) |
| void _rtfreepat | ( | void | ) |
| void _rtfreq | ( | void | ) |
| void _rtgetlong | ( | void | ) |
| void _rtgetlongDef | ( | void | ) |
| void _rtgetlongrng | ( | void | ) |
| void _rtgetlongrngDef | ( | void | ) |
| void _rtgetstr | ( | void | ) |
| void _rtgetstrDef | ( | void | ) |
| void _rtlockwin | ( | void | ) |
| void _rtMfreq | ( | void | ) |
| void _rtnxtentry | ( | void | ) |
| void _rtpalreq | ( | void | ) |
| void _rtpreq | ( | void | ) |
| void _rtrequest | ( | void | ) |
| void _rtrequestPos | ( | void | ) |
| void _rtrequestXtra | ( | void | ) |
| void _rtreturnvalue | ( | void | ) |
| void _rtrev | ( | void | ) |
| void _rtsetdefdir | ( | void | ) |
| void _rtsetpat | ( | void | ) |
| void _rtsfreq | ( | void | ) |
| void _rtsmreq | ( | void | ) |
| void _rtsmreqf | ( | void | ) |
| void _rtTagrequest | ( | void | ) |
| void _rtTagsfreq | ( | void | ) |
| void _rtunlockwin | ( | void | ) |
| void _rtver | ( | void | ) |
|
static |
|
static |
|
static |
finit: frees the seven requesters and the file list of the last multi-load, closes reqtools.library.
Only if init succeeded (IsReqToolsActive). Afterwards everything is cleared, IsReqToolsActive 0 (fixed, #460: the original cleared nothing).
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
init: opens reqtools.library V38 and allocates the seven requesters.
File requesters for load, save, path, RTFileRequest and multi-load, a font and a screen mode requester; IsReqToolsActive becomes -1 if all that worked, else 0. On a failure the requesters allocated so far are freed and the library closed (fixed, #460: the original kept them, and finit did nothing then); out of memory gives 0 (D-018).
|
static |
IsReqToolsActive: whether init opened reqtools.library and allocated all its requesters.
Without it the other routines return their cancel value and call nothing (fixed, #463).
|
static |
RTASyncPaletteRequest(Title$,FirstColour): opens a palette requester that runs alongside the program (RT_ReqHandler).
RTCheckASyncPaletteRequest polls it, RTEndASyncPaletteRequest ends it. The window object is not read, as in RTASyncRequest (fixed, #454). The result is stored for RTReturnValue, unconverted, as RTASyncRequest does (fixed, #464: the original did not store it).
| title | d0: Title$ |
| first | d1: FirstColour (RTPA_Color) |
| obj | a1: the used window object (not used) |
|
static |
RTASyncRequest(Title$,BodyText$,GadgetText$): opens an EZ requester that runs alongside the program (RT_ReqHandler).
RTCheckASyncRequest polls it, RTEndASyncRequest ends it. The window object is not read (fixed, #454: the original read a "user port" at 86 of it, not of the Window, for a mask nobody used).
| title | d0: Title$ |
| body | d1: BodyText$ |
| gadget | d2: GadgetText$ |
| obj | a1: the used window object (not used) |
|
static |
RTCheckASyncPaletteRequest: polls the requester of RTASyncPaletteRequest (rtReqHandlerA).
With the handler's WaitMask as the signals (fixed, #454: the original passed 0).
|
static |
RTCheckASyncRequest: polls the requester of RTASyncRequest (rtReqHandlerA).
With the handler's WaitMask as the signals (fixed, #454: the original passed 0).
|
static |
RTEndASyncPaletteRequest: ends the requester of RTASyncPaletteRequest (rtReqHandlerA with RTRH_EndRequest, the handler's WaitMask as the signals, fixed #454).
|
static |
RTEndASyncRequest: ends the requester of RTASyncRequest (rtReqHandlerA with RTRH_EndRequest, the handler's WaitMask as the signals, fixed #454).
|
static |
RTEZFlagsRequest(Title$,BodyText$,GadgetText$,IDCMPFlags): an EZ requester that also ends on the given IDCMP events.
An empty GadgetText$ means no gadgets. Afterwards the position is centred again. The title goes to this requester's tag list, an empty one as 0 (reqtools' default title) (fixed, #455: the original wrote it to RTEZRequest's list, so this requester always had the default title).
| title | d0: Title$ |
| body | d1: BodyText$ |
| gadget | d2: GadgetText$ |
| idcmp | d3: IDCMPFlags (RT_IDCMPFlags) |
| lens | a2: the argument stack, the title's length at -4(a2), the gadget text's at -12(a2) |
|
static |
RTEZFlagsRequest(Title$,BodyText$,GadgetText$,IDCMPFlags,ReqPosition): as above at the given position (for this call).
| title | d0: Title$ |
| body | d1: BodyText$ |
| gadget | d2: GadgetText$ |
| idcmp | d3: IDCMPFlags |
| pos | d4: ReqPosition |
| lens | a2: the argument stack |
|
static |
RTEZFontRequest(Title$): the font requester (with style); the chosen font.
The result is a TextAttr of the library's own (name, size, style, flags copied from the requester's Attr); the font name is not copied.
| title | d0: Title$ |
|
static |
RTEZFreePattern Requester#: switches the pattern gadget of a file requester off again (its flags back to the default).
The numbers of RTEZSetPattern (fixed, #456: the original reset the multi-load requester for 2, the path requester's number, and did nothing for 3).
| n | d0: Requester#: 0 load, 1 save, 3 multi-load (others: nothing) |
|
static |
RTEZLoadFile(Title$,Filename$): the load file requester; the chosen path.
The file name buffer is a 108-byte copy of Filename$ (maxslib); the result, directory + "/" (unless it ends in ":") + file, is built from the start of the title string on; a3 ends on the result's 0 (fixed, #461: the original left it behind the 0); on cancel a3 = the title.
| title | d0: Title$ |
| file | d1: Filename$ |
|
static |
RTEZGetLong(Title$,BodyText$): asks for a number (rtGetLongA).
The requester starts at 0; the value is returned also on cancel (then 0; RTReturnValue tells cancel from OK: rtGetLongA's result goes there). Afterwards the value is 0 again, so it does not become the default of the next call (fixed, #457: the original kept it, so a call without a default showed and on cancel returned the previous call's number).
| title | d0: Title$ |
| body | d1: BodyText$ (RTGL_TextFmt) |
|
static |
RTEZGetLong(Title$,BodyText$,DefaultValue): as above with a default value.
| title | d0: Title$ |
| body | d1: BodyText$ |
| def | d2: DefaultValue |
|
static |
RTEZGetLongRange(Title$,BodyText$,Min,Max): asks for a number in a range (rtGetLongA with RTGL_Min/RTGL_Max).
The requester starts at 0, also when 0 is outside Min..Max (reqtools shows the start value as it is and checks the range only on OK). rtGetLongA's result goes to RTReturnValue. Afterwards the value is 0 again, so it does not become the default of the next call (fixed, #1078: the original kept it, so a call without a default showed the previous call's number).
| title | d0: Title$ |
| body | d1: BodyText$ |
| min | d2: Min |
| max | d3: Max |
|
static |
RTEZGetLongRange(Title$,BodyText$,Min,Max,DefaultValue): as above with a default value.
| title | d0: Title$ |
| body | d1: BodyText$ |
| min | d2: Min |
| max | d3: Max |
| def | d4: DefaultValue |
|
static |
RTEZGetString(Title$,BodyText$,MaxChars): asks for a string (rtGetStringA).
The buffer is MaxChars bytes of memlib (MEMF_CLEAR), freed after the requester (fixed, #458: the original freed it only after a choice); the string goes from the start of the title on (no 0, a3 behind it). On cancel a3 is back at the caller's. rtGetStringA's result goes to RTReturnValue.
| title | d0: Title$ |
| body | d1: BodyText$ |
| max | d2: MaxChars |
|
static |
RTEZGetString(Title$,BodyText$,MaxChars,DefaultString): as above, the default string copied into the buffer first.
BUG(orig) (#459): the copy has no limit (MaxChars is not checked).
| title | d0: Title$ |
| body | d1: BodyText$ |
| max | d2: MaxChars |
| def | d3: DefaultString |
|
static |
RTLockWindow(Window#): locks a window against input (rtLockWindow).
| win | a1: the window object of Window# (d0), its first long the Window |
|
static |
RTEZMultiLoadFile(Title$): the multi-select file requester; the names then come from RTNextPathEntry.
The file list of the previous call is freed first. The whole list address is tested (fixed, #462: the original tested its low byte with CMP.b #0,d0 and returned a list at an address ending in $00 as such).
| title | d0: Title$ |
|
static |
RTNextPathEntry: the next path of RTEZMultiLoadFile's list.
Directory + "/" (unless it ends in ":") + the next name, a3 behind the 0; the list position moves on.
|
static |
RTEZPaletteRequest(Title$,FirstColour): the palette requester.
The result is stored for RTReturnValue (fixed, #464: the original did not store it).
| title | d0: Title$ |
| first | d1: FirstColour (RTPA_Color) |
|
static |
RTEZPathRequest(Title$): a directory requester (no files); the chosen directory.
The directory from the title on, with "/" (unless it ends in ":") but no 0; a3 behind it, on cancel a3 = the title.
| title | d0: Title$ |
|
static |
RTEZRequest(Title$,BodyText$,GadgetText$): an rtEZRequestA requester, centred on the screen.
The title tag only with a non-empty title; afterwards position (centred), flags (0), default response (1) and title are back at their defaults. The result is stored for RTReturnValue.
| title | d0: Title$ |
| body | d1: BodyText$ (any type: the address is passed on) |
| gadget | d2: GadgetText$ |
| lens | a2: the argument stack, the title's length at -4(a2) |
|
static |
RTEZRequest(Title$,BodyText$,GadgetText$,ReqPosition): as above at the given position (for this call).
| title | d0: Title$ |
| body | d1: BodyText$ |
| gadget | d2: GadgetText$ |
| pos | d3: ReqPosition (RT_ReqPos) |
| lens | a2: the argument stack, the title's length at -4(a2) |
|
static |
RTEZRequest(Title$,BodyText$,GadgetText$,ReqPosition,DefaultResponse,Flags): as above with default response and EZ flags (for this call).
| title | d0: Title$ |
| body | d1: BodyText$ |
| gadget | d2: GadgetText$ |
| pos | d3: ReqPosition (RT_ReqPos) |
| def | d4: DefaultResponse (RTEZ_DefaultResponse) |
| flags | d5: Flags (RTEZ_Flags) |
| lens | a2: the argument stack, the title's length at -4(a2) |
|
static |
RTReturnValue: the result of the last reqtools call that stores it.
Stored by the EZ, file, path, font, screen mode, palette, number and string requesters, RTRequest, RTASyncRequest and RTASyncPaletteRequest (the palette requesters: fixed, #464); not by the RTCheck.../RTEnd... and window routines.
|
static |
RTRevision: reqtools.library's lib_Revision.
Without IsReqToolsActive 0 (fixed, #463: the original read address $16).
| callerd0 | d0: the caller's d0 (its high word stays) |
|
static |
RTEZSetDefaultDirectory Requester#,Directory$: sets the directory of a file requester (rtChangeReqAttrA RTFI_Dir).
| n | d0: Requester#: 0 load, 1 save, 2 path, 3 multi-load (others: nothing) |
| dir | d1: Directory$ |
|
static |
RTEZSetPattern Requester#,Pattern$: sets the match pattern of a file requester and switches its pattern gadget on.
| n | d0: Requester#: 0 load, 1 save, 3 multi-load (others: nothing) |
| pat | d1: Pattern$ (RTFI_MatchPat) |
|
static |
RTEZSaveFile(Title$,Filename$): the save file requester ("Save" button); the chosen path.
Like RTEZLoadFile, a3 included (fixed, #465: the original restored a3 with MOVEM a3-a6, so it did not point behind the result).
| title | d0: Title$ |
| file | d1: Filename$ |
|
static |
RTEZScreenModeRequest(Title$): the screen mode requester (size and depth gadgets); the chosen mode.
The result is a block of the library's own: DisplayID.l, DisplayWidth.w, DisplayHeight.w, DisplayDepth.w, OverscanType.w, AutoScroll.l, copied from the requester. After a choice the flags are back at size and depth gadgets. Through rtScreenModeRequestA (-144) (fixed, #466: the original called rtFontRequestA, -96, which works only because reqtools has one routine behind -54, -96 and -144 and takes the kind from the requester).
| title | d0: Title$ |
|
static |
RTEZScreenModeRequest(Title$,DisplayFlags): as above with the given requester flags (RTSC_Flags; kept until a choice is made).
| title | d0: Title$ |
| flags | d1: DisplayFlags |
|
static |
RTRequest(BodyText$,GadgetText$,TagList): rtEZRequestA with the caller's tag list.
The result is stored for RTReturnValue.
| body | d0: BodyText$ |
| gadget | d1: GadgetText$ |
| tags | d2: the tag list |
|
static |
|
static |
|
static |
RTVersion: reqtools.library's lib_Version.
Without IsReqToolsActive 0 (fixed, #463: the original read address $14).
| callerd0 | d0: the caller's d0 (its high word stays) |
|
static |
| struct { ... } asPRequestTagList |
| struct { ... } asRequestTagList |
| ULONG Autoscroll |
|
static |
|
static |
| UWORD DisplayDepth |
| UWORD DisplayHeight |
| ULONG DisplayID |
| UWORD DisplayWidth |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| struct { ... } glrTagList |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| struct { ... } myfont |
|
static |
|
static |
| APTR name |
| UWORD OverscanType |
| struct { ... } palreqTagList |
|
static |
| struct { ... } preqTagList |
|
static |
| struct { ... } RequestFTagList |
| struct { ... } RequestTagList |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| struct { ... } SfreqTagList |
|
static |
| struct { ... } smRetType |
|
static |
|
static |
| UWORD styleflags |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| UWORD ysize |