;
; tspr.sh
;
; Toolsprite hacking for things like border sizes
;
;  1994-1998 Straylight
;

;----- Licensing note -------------------------------------------------------
;
; This file is part of Straylight's Sapphire library.
;
; Sapphire is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2, or (at your option)
; any later version.
;
; Sapphire is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with Sapphire.  If not, write to the Free Software Foundation,
; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

;----- Overview -------------------------------------------------------------
;
; Functions provided:
;
;  tspr_getSprAddr
;  tspr_borderWidths
;  tspr_adjustBox

		[	:LNOT::DEF:tspr__dfn
		GBLL	tspr__dfn

; --- tspr_getSprAddr ---
;
; On entry:	--
;
; On exit:	R0 == pointer to tool sprites, or 0 if none
;
; Use:		Returns a pointer to the toolsprites. If the user is using
;		RISC OS 2, or there are no toolsprites defined, then
;		0 is returned.

		IMPORT	tspr_getSprAddr

; --- tspr_borderWidths ---
;
; On entry:	--
;
; On exit:	R0 == title bar height
;		R1 == vertical scroll bar width
;		R2 == horizontal scroll bar height
;
; Use:		Return the width of window tools by looking at the
;		sprites associated with them, rather than creating
;		a temporary window.

		IMPORT	tspr_borderWidths

; --- tspr_adjustBox ---
;
; On entry:	R1 == pointer to Wimp_OpenWindow block to modify
;
; On exit:	Block updated in place
;
; Use:		Updates the open block to ensure that the window is opened
;		on the screen.

		IMPORT	tspr_adjustBox

		]

;----- That's all, folks ----------------------------------------------------

		END
